var _yt_player={};(function(g){var window=this;var h,n=function(a){return void 0!==a},ba=function(a,b,c){a=a.split(".");
c=c||aa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&n(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}},q=function(a,b){for(var c=a.split("."),d=b||aa,e;e=c.shift();)if(null!=d[e])d=d[e];
else return null;return d},r=function(){},ca=function(a){a.getInstance=function(){return a.Rb?a.Rb:a.Rb=new a}},da=function(a){var b=typeof a;
if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b},ea=function(a){return"array"==da(a)},fa=function(a){var b=da(a);
return"array"==b||"object"==b&&"number"==typeof a.length},v=function(a){return"string"==typeof a},ga=function(a){return"boolean"==typeof a},ha=function(a){return"number"==typeof a},ia=function(a){return"function"==da(a)},ka=function(a){var b=typeof a;
return"object"==b&&null!=a||"function"==b},na=function(a){return a[la]||(a[la]=++ma)},oa=function(a,b,c){return a.call.apply(a.bind,arguments)},pa=function(a,b,c){if(!a)throw Error();
if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa:pa;
return w.apply(null,arguments)},qa=function(a,b){var c=Array.prototype.slice.call(arguments,1);
return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},ta=function(a,b){for(var c in b)a[c]=b[c]},y=function(a,b){function c(){}
c.prototype=b.prototype;a.L=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.zO=function(a,c,f){for(var k=Array(arguments.length-2),m=2;m<arguments.length;m++)k[m-2]=arguments[m];return b.prototype[c].apply(a,k)}},ua=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ua);
else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))},va=function(a,b){return 0==a.lastIndexOf(b,0)},wa=function(a,b){var c=a.length-b.length;
return 0<=c&&a.indexOf(b,c)==c},z=function(a){return/^[\s\xa0]*$/.test(a)},xa=function(a){return(0,window.encodeURIComponent)(String(a))},ya=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))},Ha=function(a){if(!za.test(a))return a;
-1!=a.indexOf("&")&&(a=a.replace(Ba,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ca,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Da,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ea,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Fa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ga,"&#0;"));return a},Ka=function(a){return-1!=a.indexOf("&")?"document"in aa?Ia(a):Ja(a):a},Ia=function(a){var b={"&amp;":"&",
"&lt;":"<","&gt;":">","&quot;":'"'},c;c=aa.document.createElement("div");return a.replace(La,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(f=String.fromCharCode(k))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})},Ja=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";
case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!(0,window.isNaN)(d))return String.fromCharCode(d)}return a}})},Ma=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");
return a},Na=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())},Pa=function(a,b,c){a=n(c)?a.toFixed(c):String(a);
c=a.indexOf(".");-1==c&&(c=a.length);return Oa("0",Math.max(0,b-c))+a},A=function(a){return null==a?"":String(a)},Qa=function(a){return Array.prototype.join.call(arguments,"")},Ra=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^D()).toString(36)},Ua=function(a,b){for(var c=0,d=Sa(String(a)).split("."),e=Sa(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var m=d[k]||"",l=e[k]||"",p=RegExp("(\\d*)(\\D*)","g"),t=
RegExp("(\\d*)(\\D*)","g");
do{var u=p.exec(m)||["","",""],x=t.exec(l)||["","",""];if(0==u[0].length&&0==x[0].length)break;c=Ta(0==u[1].length?0:(0,window.parseInt)(u[1],10),0==x[1].length?0:(0,window.parseInt)(x[1],10))||Ta(0==u[2].length,0==x[2].length)||Ta(u[2],x[2])}while(0==c)}return c},Ta=function(a,b){return a<b?-1:a>b?1:0},Va=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;
return b},Xa=function(){return"goog_"+Wa++},Ya=function(a){var b=Number(a);
return 0==b&&z(a)?window.NaN:b},Za=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},$a=function(a){var b=v(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";
return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})},ab=function(a){(0,window.isFinite)(a)&&(a=String(a));
return v(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN},bb=function(a,b,c){a=a.split(b);
for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d},db=function(a){return a[a.length-1]},fb=function(a,b,c){b=eb(a,b,c);
return 0>b?null:v(a)?a.charAt(b):a[b]},eb=function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;
return-1},ib=function(a,b){var c=gb(a,b,void 0);
return 0>c?null:v(a)?a.charAt(c):a[c]},gb=function(a,b,c){for(var d=v(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;
return-1},kb=function(a,b){return 0<=jb(a,b)},lb=function(a){return 0==a.length},nb=function(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];
a.length=0},ob=function(a,b){kb(a,b)||a.push(b)},qb=function(a,b){var c=jb(a,b),d;
(d=0<=c)&&pb(a,c);return d},pb=function(a,b){Array.prototype.splice.call(a,b,1)},rb=function(a,b){var c=eb(a,b,void 0);
0<=c&&pb(a,c)},sb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},tb=function(a){var b=a.length;
if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},ub=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];
if(fa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}},wb=function(a,b,c,d){Array.prototype.splice.apply(a,vb(arguments,1))},vb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},xb=function(a,b,c){function d(a){return ka(a)?"o"+na(a):(typeof a).charAt(0)+a}
b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var m=a[k++],l=c(m);Object.prototype.hasOwnProperty.call(e,l)||(e[l]=!0,b[f++]=m)}b.length=f},Ab=function(a,b,c){return yb(a,c||zb,!1,b)},Bb=function(a,b){return yb(a,b,!0,void 0,void 0)},yb=function(a,b,c,d,e){for(var f=0,k=a.length,m;f<k;){var l=f+k>>1,p;
c?p=b.call(e,a[l],l,a):p=b(d,a[l]);0<p?f=l+1:(k=l,m=!p)}return m?f:~f},Cb=function(a,b){a.sort(b||zb)},Db=function(a,b,c){var d=c||zb;
Cb(a,function(a,c){return d(b(a),b(c))})},Eb=function(a,b){Db(a,function(a){return a[b]},void 0)},Gb=function(a,b){if(!fa(a)||!fa(b)||a.length!=b.length)return!1;
for(var c=a.length,d=Fb,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0},zb=function(a,b){return a>b?1:a<b?-1:0},Fb=function(a,b){return a===b},Hb=function(a,b,c){c=Ab(a,b,c);
0>c&&wb(a,-(c+1),0,b)},Ib=function(a,b,c){var d={};
E(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d},Jb=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;
return b},Kb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];
if(ea(d))for(var e=0;e<d.length;e+=8192)for(var f=vb(d,e,e+8192),f=Kb.apply(null,f),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b},Lb=function(a){for(var b=Math.random,c=a.length-1;0<c;c--){var d=Math.floor(b()*(c+1)),e=a[c];
a[c]=a[d];a[d]=e}},F=function(){this.Sa=this.Sa;
this.Ga=this.Ga},G=function(a,b){Mb(a,qa(Nb,b))},Mb=function(a,b){a.Sa?b.call(void 0):(a.Ga||(a.Ga=[]),a.Ga.push(n(void 0)?w(b,void 0):b))},Nb=function(a){a&&"function"==typeof a.dispose&&a.dispose()},Ob=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];
fa(d)?Ob.apply(null,d):Nb(d)}},Pb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Qb=function(a,b,c){var d={},e;
for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d},Rb=function(a,b){var c={},d;
for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},Sb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;
return!1},Tb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;
return!0},Ub=function(a){var b=0,c;
for(c in a)b++;return b},Wb=function(a,b){return Vb(a,b)},Xb=function(a){var b=[],c=0,d;
for(d in a)b[c++]=a[d];return b},Yb=function(a){var b=[],c=0,d;
for(d in a)b[c++]=d;return b},Zb=function(a,b){for(var c=fa(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],n(a));c++);
return a},$b=function(a,b){return null!==a&&b in a},Vb=function(a,b){for(var c in a)if(a[c]==b)return!0;
return!1},ac=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d},bc=function(a,b){var c=ac(a,b,void 0);
return c&&a[c]},cc=function(a){for(var b in a)return!1;
return!0},dc=function(a){for(var b in a)delete a[b]},ec=function(a,b){b in a&&delete a[b]},fc=function(a,b,c){return null!==a&&b in a?a[b]:c},gc=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;
for(c in b)if(!(c in a))return!1;return!0},hc=function(a){var b={},c;
for(c in a)b[c]=a[c];return b},ic=function(a){var b=da(a);
if("object"==b||"array"==b){if(ia(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=ic(a[c]);return b}return a},kc=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];
for(c in d)a[c]=d[c];for(var f=0;f<jc.length;f++)c=jc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},mc=function(a,b){this.type=a;
this.currentTarget=this.target=b;this.g=!1;this.Br=!0},nc=function(a){a.stopPropagation()},oc=function(a){oc[" "](a);
return a},pc=function(a,b){try{return oc(a[b]),!0}catch(c){}return!1},rc=function(a){return-1!=qc.indexOf(a)},sc=function(){return(rc("Chrome")||rc("CriOS"))&&!rc("Edge")},tc=function(){return rc("iPhone")&&!rc("iPod")&&!rc("iPad")},uc=function(){var a=aa.document;
return a?a.documentMode:void 0},xc=function(a){return vc[a]||(vc[a]=0<=Ua(wc,a))},Ac=function(a){return Number(yc)>=a},Dc=function(a){return Bc?"webkit"+a:Cc?"o"+a.toLowerCase():a.toLowerCase()},Ec=function(a,b){mc.call(this,a?a.type:"");
this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.b=this.state=null;a&&this.init(a,b)},Gc=function(a){return!(!a||!a[Fc])},Ic=function(a,b,c,d,e){this.listener=a;
this.b=null;this.src=b;this.type=c;this.Df=!!d;this.pd=e;this.key=++Hc;this.kg=this.ki=!1},Jc=function(a){a.kg=!0;
a.listener=null;a.b=null;a.src=null;a.pd=null},Kc=function(a){this.src=a;
this.b={};this.g=0},Mc=function(a,b,c,d,e,f){var k=b.toString();
b=a.b[k];b||(b=a.b[k]=[],a.g++);var m=Lc(b,c,e,f);-1<m?(a=b[m],d||(a.ki=!1)):(a=new Ic(c,a.src,k,!!e,f),a.ki=d,b.push(a));return a},Nc=function(a,b){var c=b.type;
if(!(c in a.b))return!1;var d=qb(a.b[c],b);d&&(Jc(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d},Oc=function(a){var b=0,c;
for(c in a.b){for(var d=a.b[c],e=0;e<d.length;e++)++b,Jc(d[e]);delete a.b[c];a.g--}},Pc=function(a,b,c,d,e){a=a.b[b.toString()];
b=-1;a&&(b=Lc(a,c,d,e));return-1<b?a[b]:null},Lc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];
if(!f.kg&&f.listener==b&&f.Df==!!c&&f.pd==d)return e}return-1},Qc=function(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)Qc(a,b[f],c,d,e);
return null}c=Rc(c);return Gc(a)?a.N(b,c,d,e):Sc(a,b,c,!1,d,e)},Sc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");
var k=!!e,m=Tc(a);m||(a[Uc]=m=new Kc(a));c=Mc(m,b,c,d,e,f);if(c.b)return c;d=Vc();c.b=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Wc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Xc++;return c},Vc=function(){var a=Yc,b=Zc?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b},$c=function(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)$c(a,b[f],c,d,e);
return null}c=Rc(c);return Gc(a)?Mc(a.Pc,String(b),c,!0,d,e):Sc(a,b,c,!0,d,e)},ad=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)ad(a,b[f],c,d,e);
else c=Rc(c),Gc(a)?a.qa(b,c,d,e):a&&(a=Tc(a))&&(b=Pc(a,b,c,!!d,e))&&bd(b)},bd=function(a){if(ha(a)||!a||a.kg)return!1;
var b=a.src;if(Gc(b))return Nc(b.Pc,a);var c=a.type,d=a.b;b.removeEventListener?b.removeEventListener(c,d,a.Df):b.detachEvent&&b.detachEvent(Wc(c),d);Xc--;(c=Tc(b))?(Nc(c,a),0==c.g&&(c.src=null,b[Uc]=null)):Jc(a);return!0},Wc=function(a){return a in cd?cd[a]:cd[a]="on"+a},ed=function(a,b,c,d){var e=!0;
if(a=Tc(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.Df==c&&!f.kg&&(f=dd(f,d),e=e&&!1!==f)}return e},dd=function(a,b){var c=a.listener,d=a.pd||a.src;
a.ki&&bd(a);return c.call(d,b)},Yc=function(a,b){if(a.kg)return!0;
if(!Zc){var c=b||q("window.event"),d=new Ec(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;!d.g&&0<=k;k--){d.currentTarget=c[k];var m=ed(c[k],f,!0,d),e=e&&m}for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],m=ed(c[k],f,!1,d),e=e&&m}return e}return dd(a,new Ec(b,this))},Tc=function(a){a=a[Uc];
return a instanceof Kc?a:null},Rc=function(a){if(ia(a))return a;
a[fd]||(a[fd]=function(b){return a.handleEvent(b)});
return a[fd]},I=function(){F.call(this);
this.Pc=new Kc(this);this.Ja=this;this.ma=null},gd=function(a,b,c,d){b=a.Pc.b[String(b)];
if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.kg&&k.Df==c){var m=k.listener,l=k.pd||k.src;k.ki&&Nc(a.Pc,k);e=!1!==m.call(l,d)&&e}}return e&&0!=d.Br},hd=function(a,b,c){this.B=c;
this.A=a;this.o=b;this.g=0;this.b=null},id=function(a,b){a.o(b);
a.g<a.B&&(a.g++,b.next=a.b,a.b=b)},jd=function(a){return function(){return a}},kd=function(a){var b;
b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}},ld=function(a){aa.setTimeout(function(){throw a;
},0)},od=function(a,b){var c=a;
b&&(c=w(a,b));!ia(aa.setImmediate)||aa.Window&&aa.Window.prototype&&!rc("Edge")&&aa.Window.prototype.setImmediate==aa.setImmediate?(md||(md=nd()),md(c)):aa.setImmediate(c)},nd=function(){var a=aa.MessageChannel;
"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!rc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=w(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},
this);
b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});
if("undefined"!==typeof a&&!rc("Trident")&&!rc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.wo;c.wo=null;a()}};
return function(a){d.next={wo:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
window.document.documentElement.appendChild(b)}:function(a){aa.setTimeout(a,0)}},pd=function(){this.g=this.b=null},qd=function(){this.next=this.scope=this.b=null},wd=function(a,b){rd||sd();
td||(rd(),td=!0);var c=ud,d=vd.get();d.set(a,b);c.g?c.g.next=d:c.b=d;c.g=d},sd=function(){if(aa.Promise&&aa.Promise.resolve){var a=aa.Promise.resolve(void 0);
rd=function(){a.then(xd)}}else rd=function(){od(xd)}},xd=function(){for(var a;a=ud.remove();){try{a.b.call(a.scope)}catch(b){ld(b)}id(vd,a)}td=!1},yd=function(a){a.prototype.then=a.prototype.then;
a.prototype.$goog_Thenable=!0},zd=function(a){if(!a)return!1;
try{return!!a.$goog_Thenable}catch(b){return!1}},Bd=function(a,b){this.b=0;
this.D=void 0;this.o=this.g=this.A=null;this.B=this.C=!1;if(a!=r)try{var c=this;a.call(b,function(a){Ad(c,2,a)},function(a){Ad(c,3,a)})}catch(d){Ad(this,3,d)}},Cd=function(){this.next=this.context=this.g=this.o=this.b=null;
this.A=!1},Ed=function(a,b,c){var d=Dd.get();
d.o=a;d.g=b;d.context=c;return d},Gd=function(a){return new Bd(function(b,c){c(a)})},Id=function(a,b,c){Hd(a,b,c,null)||wd(qa(b,a))},Jd=function(a){return new Bd(function(b,c){var d=a.length,e=[];
if(d)for(var f=function(a,c){d--;e[a]=c;0==d&&b(e)},k=function(a){c(a)},m=0,l;m<a.length;m++)l=a[m],Id(l,qa(f,m),k);
else b(e)})},Ld=function(){var a,b,c=new Bd(function(c,e){a=c;
b=e});
return new Kd(c,a,b)},Nd=function(a,b){return Md(a,null,b,void 0)},Od=function(a,b){if(0==a.b)if(a.A){var c=a.A;
if(c.g){for(var d=0,e=null,f=null,k=c.g;k&&(k.A||(d++,k.b==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.b&&1==d?Od(c,b):(f?(d=f,d.next==c.o&&(c.o=d),d.next=d.next.next):Pd(c),Qd(c,e,3,b)))}a.A=null}else Ad(a,3,b)},Sd=function(a,b){a.g||2!=a.b&&3!=a.b||Rd(a);
a.o?a.o.next=b:a.g=b;a.o=b},Md=function(a,b,c,d){var e=Ed(null,null,null);
e.b=new Bd(function(a,k){e.o=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){k(p)}}:a;
e.g=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Td?k(b):a(e)}catch(p){k(p)}}:k});
e.b.A=a;Sd(a,e);return e.b},Ad=function(a,b,c){0==a.b&&(a==c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.b=1,Hd(c,a.G,a.H,a)||(a.D=c,a.b=b,a.A=null,Rd(a),3!=b||c instanceof Td||Ud(a,c)))},Hd=function(a,b,c,d){if(a instanceof Bd)return Sd(a,Ed(b||r,c||null,d)),!0;
if(zd(a))return a.then(b,c,d),!0;if(ka(a))try{var e=a.then;if(ia(e))return Vd(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},Vd=function(a,b,c,d,e){function f(a){m||(m=!0,d.call(e,a))}
function k(a){m||(m=!0,c.call(e,a))}
var m=!1;try{b.call(a,k,f)}catch(l){f(l)}},Rd=function(a){a.C||(a.C=!0,wd(a.F,a))},Pd=function(a){var b=null;
a.g&&(b=a.g,a.g=b.next,b.next=null);a.g||(a.o=null);return b},Qd=function(a,b,c,d){if(3==c&&b.g&&!b.A)for(;a&&a.B;a=a.A)a.B=!1;
if(b.b)b.b.A=null,Wd(b,c,d);else try{b.A?b.o.call(b.context):Wd(b,c,d)}catch(e){Xd.call(null,e)}id(Dd,b)},Wd=function(a,b,c){2==b?a.o.call(a.context,c):a.g&&a.g.call(a.context,c)},Ud=function(a,b){a.B=!0;
wd(function(){a.B&&Xd.call(null,b)})},Td=function(a){ua.call(this,a)},Kd=function(a,b,c){this.A=a;
this.g=b;this.b=c},Yd=function(a,b){I.call(this);
this.b=a||1;this.g=b||aa;this.A=w(this.Ax,this);this.o=D()},Zd=function(a,b){a.b=b;
a.Ec&&a.enabled?(a.stop(),a.start()):a.Ec&&a.stop()},$d=function(a,b,c){if(ia(a))c&&(a=w(a,c));
else if(a&&"function"==typeof a.handleEvent)a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:aa.setTimeout(a,b||0)},ae=function(a){aa.clearTimeout(a)},be=function(a,b,c){F.call(this);
this.b=a;this.o=b||0;this.g=c;this.A=w(this.fp,this)},ce=function(a){a.stop();
a.fp()},de=function(a){if(a.classList)return a.classList;
a=a.className;return v(a)&&a.match(/\S+/g)||[]},ee=function(a,b){return a.classList?a.classList.contains(b):kb(de(a),b)},J=function(a,b){a.classList?a.classList.add(b):ee(a,b)||(a.className+=0<a.className.length?" "+b:b)},fe=function(a,b){if(a.classList)E(b,function(b){J(a,b)});
else{var c={};E(de(a),function(a){c[a]=!0});
E(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}},he=function(a,b){a.classList?a.classList.remove(b):ee(a,b)&&(a.className=ge(de(a),function(a){return a!=b}).join(" "))},ie=function(a,b){a.classList?E(b,function(b){he(a,b)}):a.className=ge(de(a),function(a){return!kb(b,a)}).join(" ")},K=function(a,b,c){c?J(a,b):he(a,b)},ke=function(a,b){return b?a.replace(je,""):a},qe=function(a,b){for(var c=0,d=0,e=!1,f=ke(a,b).split(le),k=0;k<f.length;k++){var m=f[k];
me.test(ke(m,void 0))?(c++,d++):ne.test(m)?e=!0:oe.test(ke(m,void 0))?d++:pe.test(m)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1},te=function(){this.b="";
this.g=se},ue=function(a){return a instanceof te&&a.constructor===te&&a.g===se?a.b:"type_error:Const"},ve=function(a){var b=new te;
b.b=a;return b},xe=function(){this.b="";
this.g=we},ye=function(a){var b=new xe;
b.b=a;return b},Ae=function(){this.b="";
this.g=ze},Be=function(a){if(a instanceof Ae&&a.constructor===Ae&&a.g===ze)return a.b;
da(a);return"type_error:SafeUrl"},Ee=function(a){if(a instanceof Ae)return a;
a=a.hf?a.fe():String(a);Ce.test(a)||(a="about:invalid#zClosurez");return De(a)},De=function(a){var b=new Ae;
b.b=a;return b},Ge=function(){this.b="";
this.g=Fe},He=function(a){if(a instanceof Ge&&a.constructor===Ge&&a.g===Fe)return a.b;
da(a);return"type_error:TrustedResourceUrl"},Ie=function(a){var b=new Ge;
b.b=a;return b},Ke=function(){this.b="";
this.A=Je;this.g=null},Le=function(a){if(a instanceof Ke&&a.constructor===Ke&&a.A===Je)return a.b;
da(a);return"type_error:SafeHtml"},Ne=function(a){function b(a){if(ea(a))E(a,b);
else{var f;a instanceof Ke?f=a:(f=null,a.Rl&&(f=a.Kf()),a=Ha(a.hf?a.fe():String(a)),f=Me(a,f));d+=Le(f);f=f.Kf();0==c?c=f:0!=f&&c!=f&&(c=null)}}
var c=0,d="";E(arguments,b);return Me(d,c)},Me=function(a,b){var c=new Ke;
c.b=a;c.g=b;return c},Te=function(a,b,c){var d=null,e,f="";
if(b)for(e in b){if(!Oe.test(e))throw Error('Invalid attribute name "'+e+'".');var k=b[e];if(null!=k){var m,l=a;m=e;if(k instanceof te)k=ue(k);else if("style"==m.toLowerCase()){if(!ka(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof xe)){var l="",p=void 0;for(p in k){if(!/^[-_a-zA-Z0-9]+$/.test(p))throw Error("Name allows only [-_a-zA-Z0-9], got: "+p);var t=k[p];if(null!=t){if(t instanceof te)t=ue(t);else if(Pe.test(t)){for(var u=
!0,x=!0,B=0;B<t.length;B++){var C=t.charAt(B);"'"==C&&x?u=!u:'"'==C&&u&&(x=!x)}u&&x||(t="zClosurez")}else t="zClosurez";l+=p+":"+t+";"}}k=l?ye(l):Qe}k instanceof xe&&k.constructor===xe&&k.g===we?k=k.b:(da(k),k="type_error:SafeStyle")}else{if(/^on/i.test(m))throw Error('Attribute "'+m+'" requires goog.string.Const value, "'+k+'" given.');if(m.toLowerCase()in Re)if(k instanceof Ge)k=He(k);else if(k instanceof Ae)k=Be(k);else if(v(k))k=Ee(k).fe();else throw Error('Attribute "'+m+'" on tag "'+l+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+
k+'" given.');}k.hf&&(k=k.fe());m=m+'="'+Ha(String(k))+'"';f+=" "+m}}e="<"+a+f;null!=c?ea(c)||(c=[c]):c=[];!0===Se[a.toLowerCase()]?e+=">":(d=Ne(c),e+=">"+Le(d)+"</"+a+">",d=d.Kf());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return Me(e,d)},Ue=function(a,b,c){var d={},e;
for(e in a)d[e]=a[e];for(e in b)d[e]=b[e];for(e in c){var f=e.toLowerCase();if(f in a)throw Error('Cannot override "'+f+'" attribute, got "'+e+'" with value "'+c[e]+'"');f in b&&delete d[f];d[e]=c[e]}return d},Ve=function(a,b,c){return Math.min(Math.max(a,b),c)},We=function(a,b,c){return a+c*(b-a)},Ye=function(a){return Xe(arguments,function(a,c){return a+c},0)},Ze=function(a){return Ye.apply(null,arguments)/arguments.length},$e=function(a,b){this.x=n(a)?a:0;
this.y=n(b)?b:0},af=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1},bf=function(a,b){this.width=a;
this.height=b},cf=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1},df=function(a,b){var c;
c=b instanceof Ae?b:Ee(b);a.href=Be(c)},hf=function(a){return a?new ef(ff(a)):gf||(gf=new ef)},kf=function(a,b){var c=b||window.document;
return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):jf("*",a,b)},lf=function(a,b){var c=b||window.document,d=null;
c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=jf("*",a,b)[0];return d||null},jf=function(a,b,c){var d=window.document;
c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,f=0,k;k=c[f];f++)a==k.nodeName&&(d[e++]=k);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;k=c[f];f++)a=k.className,"function"==typeof a.split&&kb(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c},nf=function(a,b){Pb(b,function(b,d){"style"==d?
a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:mf.hasOwnProperty(d)?a.setAttribute(mf[d],b):va(d,"aria-")||va(d,"data-")?a.setAttribute(d,b):a[d]=b})},of=function(a){a=a.document;
a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new bf(a.clientWidth,a.clientHeight)},rf=function(a){var b=pf(a);
a=a.parentWindow||a.defaultView;return qf&&xc("10")&&a.pageYOffset!=b.scrollTop?new $e(b.scrollLeft,b.scrollTop):new $e(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)},pf=function(a){return a.scrollingElement?a.scrollingElement:Bc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement},sf=function(a){return a?a.parentWindow||a.defaultView:window},M=function(a,b,c){return tf(window.document,arguments)},tf=function(a,b){var c=b[0],d=b[1];
if(!uf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ha(d.name),'"');if(d.type){c.push(' type="',Ha(d.type),'"');var e={};kc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(v(d)?c.className=d:ea(d)?c.className=d.join(" "):nf(c,d));2<b.length&&vf(a,c,b,2);return c},vf=function(a,b,c,d){function e(c){c&&b.appendChild(v(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!fa(f)||ka(f)&&0<f.nodeType?e(f):E(wf(f)?tb(f):f,e)}},xf=function(a,b){a.appendChild(b)},yf=function(a,b){vf(ff(a),a,arguments,1)},zf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},Af=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},Bf=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},Cf=function(a,b){var c=b.parentNode;
c&&c.replaceChild(a,b)},Ef=function(a){return Df&&void 0!=a.children?a.children:ge(a.childNodes,function(a){return 1==a.nodeType})},Gf=function(a){return n(a.firstElementChild)?a.firstElementChild:Ff(a.firstChild)},Ff=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;
return a},If=function(a){var b;
if(Hf&&!(qf&&xc("9")&&!xc("10")&&aa.SVGElement&&a instanceof aa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ka(b)&&1==b.nodeType?b:null},Jf=function(a,b){if(!a||!b)return!1;
if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},ff=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},Kf=function(a){try{return a.contentWindow||(a.contentDocument?sf(a.contentDocument):null)}catch(b){}return null},Lf=function(a,b){if("textContent"in a)a.textContent=b;
else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{zf(a);var c=ff(a);a.appendChild(c.createTextNode(String(b)))}},Mf=function(a){if("outerHTML"in a)return a.outerHTML;
var b=ff(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML},Qf=function(a){var b;
if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Nf(a)||Pf(a)):Nf(a)&&Pf(a))&&qf){var c;!ia(a.getBoundingClientRect)||qf&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a},Nf=function(a){a=a.getAttributeNode("tabindex");
return null!=a&&a.specified},Pf=function(a){a=a.tabIndex;
return ha(a)&&0<=a&&32768>a},wf=function(a){if(a&&"number"==typeof a.length){if(ka(a))return"function"==typeof a.item||"string"==typeof a.item;
if(ia(a))return"function"==typeof a.item}return!1},Sf=function(a,b,c,d){if(!b&&!c)return null;
var e=b?b.toUpperCase():null;return Rf(a,function(a){return(!e||a.nodeName==e)&&(!c||v(a.className)&&kb(a.className.split(/\s+/),c))},d)},Tf=function(a,b){return Sf(a,null,b,void 0)},Rf=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;
a=a.parentNode;d++}return null},ef=function(a){this.b=a||aa.document||window.document},Uf=function(a){a=a.b;
return a.parentWindow||a.defaultView},Vf=function(a){a=String(a);
if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},Wf=function(a){return eval("("+a+")")},Zf=function(a){return Xf(new Yf(void 0),a)},Yf=function(a){this.b=a},Xf=function(a,b){var c=[];
$f(a,b,c);return c.join("")},$f=function(a,b,c){if(null==b)c.push("null");
else{if("object"==typeof b){if(ea(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],$f(a,a.b?a.b.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),bg(d,c),c.push(":"),$f(a,a.b?a.b.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":bg(b,c);break;case "number":c.push((0,window.isFinite)(b)&&
!(0,window.isNaN)(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},bg=function(a,b){b.push('"',a.replace(cg,function(a){var b=dg[a];
b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),dg[a]=b);return b}),'"')},eg=function(a,b,c,d){this.top=a;
this.right=b;this.bottom=c;this.left=d},fg=function(a,b,c,d){this.left=a;
this.top=b;this.width=c;this.height=d},gg=function(a){return new eg(a.top,a.left+a.width,a.top+a.height,a.left)},hg=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1},ig=function(a){return new bf(a.width,a.height)},jg=function(a){return new $e(a.left,a.top)},kg=function(a){F.call(this);
this.bc=1;this.A=[];this.o=0;this.b=[];this.g={};this.B=!!a},lg=function(a,b,c,d){if(b=a.g[b]){var e=a.b;
if(b=fb(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.yc(b)}return!1},mg=function(a,b,c){wd(function(){a.apply(b,c)})},ng=function(){},pg=function(a){if(a instanceof ng)return a;
if("function"==typeof a.kc)return a.kc(!1);if(fa(a)){var b=0,c=new ng;c.next=function(){for(;;){if(b>=a.length)throw og;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");},qg=function(a,b,c){if(fa(a))try{E(a,b,c)}catch(d){if(d!==og)throw d;
}else{a=pg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==og)throw d;}}},rg=function(a){if(fa(a))return tb(a);
a=pg(a);var b=[];qg(a,function(a){b.push(a)});
return b},sg=function(a,b){this.g={};
this.b=[];this.Ae=this.pa=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof sg?(c=a.La(),d=a.Ha()):(c=Yb(a),d=Xb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}},ug=function(a,b){return tg(a.g,b)},vg=function(a,b){return a===b},wg=function(a){if(a.pa!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];
tg(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.pa!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],tg(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}},tg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},xg=function(a){return a.cb&&"function"==typeof a.cb?a.cb():fa(a)||v(a)?a.length:Ub(a)},yg=function(a){if(a.Ha&&"function"==typeof a.Ha)return a.Ha();
if(v(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Xb(a)},zg=function(a){if(a.La&&"function"==typeof a.La)return a.La();
if(!a.Ha||"function"!=typeof a.Ha){if(fa(a)||v(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Yb(a)}},Ag=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);
else if(fa(a)||v(a))E(a,b,void 0);else for(var c=zg(a),d=yg(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)},Cg=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);
if(fa(a)||v(a))return Bg(a,b,c);for(var d=zg(a),e=yg(a),f=e.length,k=0;k<f;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0},Dg=function(a,b,c,d,e,f,k){var m="";
a&&(m+=a+":");c&&(m+="//",b&&(m+=b+"@"),m+=c,d&&(m+=":"+d));e&&(m+=e);f&&(m+="?"+f);k&&(m+="#"+k);return m},Fg=function(a){return a.match(Eg)},Gg=function(a){return a?(0,window.decodeURI)(a):a},Hg=function(a){return Gg(Fg(a)[3]||null)},Ig=function(a){return Number(Fg(a)[4]||null)||null},Jg=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f,k=null;
0<=e?(f=c[d].substring(0,e),k=c[d].substring(e+1)):f=c[d];b(f,k?ya(k):"")}},Kg=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");
0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")},Lg=function(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Lg(a,String(b[d]),c);
else null!=b&&c.push("&",a,""===b?"":"=",xa(b))},Mg=function(a,b,c){for(c=c||0;c<b.length;c+=2)Lg(b[c],b[c+1],a);
return a},Ng=function(a,b){for(var c in b)Lg(c,b[c],a);
return a},Og=function(a){a=Ng([],a);
a[0]="";return a.join("")},Pg=function(a,b){return Kg(2==arguments.length?Mg([a],arguments[1],0):Mg([a],arguments,1))},Qg=function(a,b){return Kg(Ng([a],b))},Rg=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);
if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1},Tg=function(a,b){return 0<=Rg(a,0,b,a.search(Sg))},Ug=function(a,b){var c=a.search(Sg),d=Rg(a,0,b,c);
if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return ya(a.substr(d,e-d))},Wg=function(a,b){for(var c=a.search(Sg),d=0,e,f=[];0<=(e=Rg(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);
f.push(a.substr(d));return f.join("").replace(Vg,"$1")},Xg=function(a,b,c){a=[Wg(a,b),
"&",b];null!=c&&a.push("=",xa(c));return Kg(a)},N=function(a,b){this.g=this.H=this.o="";
this.D=null;this.G=this.A="";this.B=!1;var c;a instanceof N?(this.B=n(b)?b:a.B,Yg(this,a.o),this.H=a.H,Zg(this,a.g),$g(this,a.D),ah(this,a.A),bh(this,a.b.clone()),this.G=a.F()):a&&(c=Fg(String(a)))?(this.B=!!b,Yg(this,c[1]||"",!0),this.H=ch(c[2]||""),Zg(this,c[3]||"",!0),$g(this,c[4]),ah(this,c[5]||"",!0),bh(this,c[6]||"",!0),this.G=ch(c[7]||"")):(this.B=!!b,this.b=new dh(null,0,this.B))},Yg=function(a,b,c){a.o=c?ch(b,!0):b;
a.o&&(a.o=a.o.replace(/:$/,""))},Zg=function(a,b,c){a.g=c?ch(b,!0):b;
return a},$g=function(a,b){if(b){b=Number(b);
if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null;return a},ah=function(a,b,c){a.A=c?ch(b,!0):b},bh=function(a,b,c){b instanceof dh?(a.b=b,eh(a.b,a.B)):(c||(b=fh(b,gh)),a.b=new dh(b,0,a.B));
return a},hh=function(a,b,c){a.b.set(b,c);
return a},jh=function(a,b,c){ea(c)||(c=[String(c)]);
ih(a.b,b,c)},kh=function(a){hh(a,"zx",Ra());
return a},lh=function(a){return a instanceof N?a.clone():new N(a,void 0)},mh=function(a,b,c,d){var e=new N(null,void 0);
a&&Yg(e,a);b&&Zg(e,b);c&&$g(e,c);d&&ah(e,d);return e},ch=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""},fh=function(a,b,c){return v(a)?(a=(0,window.encodeURI)(a).replace(b,nh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},nh=function(a){a=a.charCodeAt(0);
return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},dh=function(a,b,c){this.pa=this.b=null;
this.g=a||null;this.A=!!c},ph=function(a){a.b||(a.b=new sg,a.pa=0,a.g&&Jg(a.g,function(b,c){oh(a,ya(b),c)}))},oh=function(a,b,c){ph(a);
a.g=null;b=qh(a,b);var d=a.b.get(b);d||a.b.set(b,d=[]);d.push(c);a.pa=a.pa+1},rh=function(a,b){ph(a);
b=qh(a,b);return ug(a.b,b)},ih=function(a,b,c){a.remove(b);
0<c.length&&(a.g=null,a.b.set(qh(a,b),tb(c)),a.pa=a.pa+c.length)},qh=function(a,b){var c=String(b);
a.A&&(c=c.toLowerCase());return c},eh=function(a,b){b&&!a.A&&(ph(a),a.g=null,a.b.forEach(function(a,b){var e=b.toLowerCase();
b!=e&&(this.remove(b),ih(this,e,a))},a));
a.A=b},sh=function(a,b){b.match(/\sstyle\s*=/);
a.innerHTML=b},uh=function(){return th?'<div class="ytp-icon ytp-icon-cast-desktop-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-4" /><path d="M 8,23.33 8,26 10.66,26 C 10.66,24.52 9.47,23.33 8,23.33 l 0,0 z m 0,-3.55 0,1.77 c 2.45,0 4.44,1.99 4.44,4.44 l 1.77,0 C 14.22,22.56 11.44,19.77 8,19.77 l 0,0 z m 16,-6.22 -12.44,0 0,1.44 c 3.52,1.13 6.30,3.92 7.44,7.44 l 5.00,0 0,-8.88 0,0 z M 8,16.22 8,18 c 4.41,0 8,3.58 8,8 l 1.77,0 c 0,-5.40 -4.38,-9.77 -9.77,-9.77 l 0,0 z M 25.77,10 9.77,10 C 8.8,10 8,10.8 8,11.77 l 0,2.66 1.77,0 0,-2.66 16.00,0 0,12.44 -6.22,0 0,1.77 6.22,0 c .97,0 1.77,-0.8 1.77,-1.77 l 0,-12.44 C 27.55,10.8 26.75,10 25.77,10 l 0,0 z" fill="#fff" id="ytp-svg-4" /></svg>'},
vh=function(){return th?'<div class="ytp-icon ytp-icon-clip-clear"></div>':'<svg height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><path d="M14,14 L14,0 L0,0 L0,14 L14,14 Z" /><path d="M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z" fill="#fff" /></svg>'},wh=function(){return th?'<div class="ytp-icon ytp-icon-clip-end"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-5" /><path d="M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z" fill="#eaeaea" id="ytp-svg-5" /></svg>'},
xh=function(){return th?'<div class="ytp-icon ytp-icon-clip-start"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-6" /><path d="M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z" fill="#eaeaea" id="ytp-svg-6" /></svg>'},yh=function(){return th?'<div class="ytp-icon ytp-icon-close"></div>':'<svg height="100%" viewBox="0 0 24 24" width="100%"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="#fff" /></svg>'},
zh=function(){return th?'<div class="ytp-icon ytp-icon-link"></div>':'<svg height="100%" viewBox="0 0 36 36" width="100%"><path d="M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z" fill="#fff" /></svg>'},Ah=function(){return th?'<div class="ytp-icon ytp-icon-next"></div>':
'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-29" /><path class="ytp-svg-fill" d="M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z" id="ytp-svg-29" /></svg>'},Bh=function(){return th?'<div class="ytp-icon ytp-icon-pause"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-30" /><path class="ytp-svg-fill" d="M 12,26 16.33,26 16.33,10 12,10 z M 20.66,26 25,26 25,10 20.66,10 z" id="ytp-svg-30" /></svg>'},
Ch=function(){return th?'<div class="ytp-icon ytp-icon-play"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-32" /><path class="ytp-svg-fill" d="M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z" id="ytp-svg-32" /></svg>'},Dh=function(){return th?'<div class="ytp-icon ytp-icon-playlist"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-33" /><path d="m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z" fill="#fff" id="ytp-svg-33" /></svg>'},
Eh=function(){return th?'<div class="ytp-icon ytp-icon-prev"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-34" /><path class="ytp-svg-fill" d="m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z" id="ytp-svg-34" /></svg>'},Fh=function(){return th?'<div class="ytp-icon ytp-icon-replay"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-35" /><path class="ytp-svg-fill" d="M 24.68,20.43 29,15.63 l -3.03,0 C 25.07,11.27 21.21,8 16.58,8 11.28,8 7,12.27 7,17.53 c 0,5.26 4.28,9.53 9.58,9.53 3.04,0 5.75,-1.42 7.51,-3.62 l -1.75,-1.75 c -1.29,1.77 -3.38,2.92 -5.75,2.92 -3.92,0 -7.11,-3.17 -7.11,-7.08 0,-3.91 3.18,-7.08 7.11,-7.08 3.26,0 6.00,2.19 6.84,5.17 l -3.04,0 4.31,4.80" id="ytp-svg-35" /></svg>'},
Gh=function(){return th?'<div class="ytp-icon ytp-icon-settings"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-38" /><path d="m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z" fill="#fff" id="ytp-svg-38" /></svg>'},
Hh=function(){return'<svg height="100%" version="1.1" viewBox="0 0 22 22" width="100%"><svg x="7" y="1"><circle class="ytp-spinner-dot ytp-spinner-dot-0" cx="4" cy="4" r="2" /></svg><svg x="11" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-1" cx="4" cy="4" r="2" /></svg><svg x="13" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-2" cx="4" cy="4" r="2" /></svg><svg x="11" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-3" cx="4" cy="4" r="2" /></svg><svg x="7" y="13"><circle class="ytp-spinner-dot ytp-spinner-dot-4" cx="4" cy="4" r="2" /></svg><svg x="3" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-5" cx="4" cy="4" r="2" /></svg><svg x="1" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-6" cx="4" cy="4" r="2" /></svg><svg x="3" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-7" cx="4" cy="4" r="2" /></svg></svg>'},
Ih=function(){return th?'<div class="ytp-icon ytp-icon-stop"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-42" /><path class="ytp-svg-fill" d="M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z" id="ytp-svg-42" /></svg>'},Jh=function(){return th?'<div class="ytp-icon ytp-icon-subtitles"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-43" /><path d="M 25.2,11 10.8,11 C 9.81,11 9,11.78 9,12.75 l 0,10.5 C 9,24.21 9.81,25 10.8,25 l 14.4,0 c .99,0 1.8,-0.78 1.8,-1.75 l 0,-10.5 C 27,11.78 26.19,11 25.2,11 l 0,0 z m -14.4,7 3.6,0 0,1.75 -3.6,0 0,-1.75 0,0 z m 9,5.25 -9,0 0,-1.75 9,0 0,1.75 0,0 z m 5.4,0 -3.6,0 0,-1.75 3.6,0 0,1.75 0,0 z m 0,-3.5 -9,0 0,-1.75 9,0 0,1.75 0,0 z" fill="#fff" id="ytp-svg-43" /></svg>'},
Kh=function(){return th?'<div class="ytp-icon ytp-icon-volume-high"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><path d="m 18.77,10.20 0,1.83 c 2.56,.76 4.44,3.14 4.44,5.96 0,2.81 -1.87,5.2 -4.44,5.96 l 0,1.83 C 22.34,24.98 25,21.80 25,18.00 25,14.19 22.34,11.01 18.77,10.20 z m 0,4.21 0,7.15 C 20.09,20.92 21,19.57 21,18.00 21,16.42 20.09,15.07 18.77,14.41 z M 9,15.33 l 0,5.33 3.55,0 L 17,25.11 17,10.88 12.55,15.33 9,15.33 z" fill="#fff" id="ytp-svg-46" /></svg>'},
Lh=function(){return th?'<div class="ytp-icon ytp-icon-volume-low"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><path d="m 9,15.37 0,5.25 3.58,0 4.48,4.37 0,-14 -4.48,4.37 L 9,15.37 z m 9.86,-0.90 0,7.04 c 1.32,-0.63 2.24,-1.96 2.24,-3.51 0,-1.54 -0.91,-2.87 -2.24,-3.52 z" fill="#fff" id="ytp-svg-46" /></svg>'},Mh=function(){return th?'<div class="ytp-icon ytp-icon-volume-muted"></div>':
'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-47" /><path class="ytp-svg-fill" d="m 9,15.37 0,5.25 3.58,0 4.48,4.37 0,-14 -4.48,4.37 -3.58,0 0,0 z" id="ytp-svg-47" /><svg class="ytp-svg-sound-mute-group"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-48" /><path class="ytp-svg-fill" d="M 26.11,15.73 24.85,14.5 22.52,16.76 20.20,14.5 18.94,15.73 21.26,18 18.94,20.26 20.20,21.5 22.52,19.23 24.85,21.5 26.11,20.26 23.79,18 l 2.32,-2.26 0,0 z" id="ytp-svg-48" /></svg></svg>'},
Oh=function(a,b){if(a in b)return b[a];
var c=Nh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]},Qh=function(a,b){var c;
Ph(a,function(a){c=b[a];return!!c});
return c},Rh=function(a){return fb(["fullscreenchange",
"webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})},Sh=function(){var a=window.document;
return fb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})},Th=function(){return!!Qh(["fullscreenEnabled",
"webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],window.document)},Uh=function(){var a=Qh(["fullscreenElement",
"webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],window.document);return a?a:null},$h=function(a){a=a||{};
this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||hc(Xh);this.assets=a.assets||{};this.attrs=a.attrs||hc(Yh);this.params=a.params||hc(Zh);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}},ai=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);
return a?50<=(0,window.parseInt)(a[1],10):!1},bi=function(a,b){var c=new window.XMLHttpRequest;
c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};
c.onerror=function(){b(!1)};
try{c.open("GET",a,!0),c.send()}catch(d){b(!1)}},hi=function(a){if(a>=ci.length)di();
else{var b=ci[a],c="chrome-extension://"+b+ei;0<=fi.indexOf(b)?bi(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,gi(c,di)):hi(a+1)}):gi(c,function(){hi(a+1)})}},gi=function(a,b){var c=window.document.createElement("script");
c.onerror=b;c.src=a;(window.document.head||window.document.documentElement).appendChild(c)},di=function(){var a=window.__onGCastApiAvailable;
a&&"function"==typeof a&&a(!1,"No cast extension found")},ii=function(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;
if(a){a({command:"cast.sender.init"});return}}window.chrome?(a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation?(a=ai()?"50":"",gi("//www.gstatic.com/eureka/clank"+a+ei,di)):hi(0)):di()},ni=function(){var a=ji;
ki();li.push(a);mi(li)},qi=function(a,b){ki();
var c=li,d=oi(a,String(b));lb(c)?pi(d):(mi(c),E(c,function(a){a(d)}))},ki=function(){li||(li=q("yt.mdx.remote.debug.handlers_")||[],ba("yt.mdx.remote.debug.handlers_",li,void 0))},pi=function(a){var b=(ri+1)%50;
ri=b;si[b]=a;ti||(ti=49==b)},mi=function(a){var b=si;
if(b[0]){var c=ri,d=ti?c:-1;do{var d=(d+1)%50,e=b[d];E(a,function(a){a(e)})}while(d!=c);
si=Array(50);ri=-1;ti=!1}},oi=function(a,b){var c=(D()-ui)/1E3;
c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")},vi=function(a){a=a||{};
this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""},wi=function(a,b){return!!b&&(a.id==b||a.uuid==b)},xi=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid}},yi=function(a){return new vi(a)},Ai=function(a){return ea(a)?zi(a,yi):[]},Bi=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"},Ci=function(a){return ea(a)?"["+zi(a,Bi).join(",")+"]":"null"},Ei=function(a,b,c){a&&(a.dataset?a.dataset[Di(b)]=c:a.setAttribute("data-"+b,c))},Fi=function(a){return a?a.dataset?a.dataset[Di("loaded")]:a.getAttribute("data-loaded"):
null},Di=function(a){return Gi[a]||(Gi[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))},Ji=function(a){Hi(Ii,arguments)},Ki=function(a,b){return a in Ii?Ii[a]:b},Mi=function(a,b){ia(a)&&(a=Li(a));
return window.setTimeout(a,b)},Ni=function(a,b){ia(a)&&(a=Li(a));
return window.setInterval(a,b)},O=function(a){window.clearTimeout(a)},Oi=function(a){window.clearInterval(a)},Li=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Pi(b),b;
}}:a},Pi=function(a,b){var c=q("yt.logging.errors.log");
c?c(a,b,void 0,void 0,void 0):(c=Ki("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),Ji("ERRORS",c))},Ri=function(a){Hi(Qi,arguments)},P=function(a,b,c){var d=b||{};
if(a=a in Qi?Qi[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a},Hi=function(a,b){if(1<b.length){var c=b[0];
a[c]=b[1]}else{var d=b[0];for(c in d)a[c]=d[c]}},Xi=function(a,b,c){var d=Si();
if(d){var e=d.subscribe(a,function(){if(!Ti||Ti!=e){var d=arguments,k;k=function(){Ui[e]&&b.apply(c||window,d)};
try{Vi[a]?k():Mi(k,0)}catch(m){Pi(m)}}},c);
Ui[e]=!0;Wi[a]||(Wi[a]=[]);Wi[a].push(e);return e}return 0},Zi=function(a){var b=Xi("init",function(c){a.apply(void 0,arguments);
Yi(b)},void 0)},Yi=function(a){var b=Si();
b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),E(a,function(a){b.unsubscribeByKey(a);delete Ui[a]}))},$i=function(a,b){var c=Si();
c&&c.publish.apply(c,arguments)},aj=function(a,b){Vi[a]=!0;
var c=Si();c&&c.publish.apply(c,arguments);Vi[a]=!1},bj=function(a){Wi[a]&&(a=Wi[a],E(a,function(a){Ui[a]&&delete Ui[a]}),a.length=0)},cj=function(a){var b=Si();
if(b)if(b.clear(a),a)bj(a);else for(var c in Wi)bj(c)},Si=function(){return q("yt.pubsub.instance_")},fj=function(){var a=dj(),b=window.document.getElementById(a),c=b&&Fi(b);
c||b&&!c||(b=ej(a,function(){Fi(b)||(Ei(b,"loaded","true"),$i(a),Mi(qa(cj,a),0))}))},ej=function(a,b){var c=window.document.createElement("script");
c.id=a;c.onload=function(){b&&(0,window.setTimeout)(b,0)};
c.onreadystatechange=function(){switch(c.readyState){case "loaded":case "complete":c.onload()}};
c.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js";var d=window.document.getElementsByTagName("head")[0]||window.document.body;d.insertBefore(c,d.firstChild);return c},dj=function(){var a=window.document.createElement("a");
df(a,"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js");a=a.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Va(a)},gj=function(){},hj=function(){},ij=function(a){this.b=a},jj=function(){var a=null;
try{a=window.localStorage||null}catch(b){}this.b=a},kj=function(){var a=null;
try{a=window.sessionStorage||null}catch(b){}this.b=a},lj=function(a){this.b=a},mj=function(a){this.b=a},nj=function(a){this.data=a},oj=function(a){return!n(a)||a instanceof nj?a:new nj(a)},pj=function(a){this.b=a},qj=function(a){var b=a.creation;
a=a.expiration;return!!a&&a<D()||!!b&&b>D()},rj=function(a){this.b=a},sj=function(a,b){var c=[];
qg(b,function(a){var b;try{b=rj.prototype.g.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}n(b)?qj(b)&&c.push(a):c.push(a)},a);
return c},tj=function(a,b){var c=sj(a,b);
E(c,function(a){rj.prototype.remove.call(this,a)},a)},vj=function(){var a=uj;
tj(a,a.b.kc(!0))},xj=function(a,b,c){var d=c&&0<c?c:0;
c=d?D()+1E3*d:0;if((d=d?uj:wj)&&window.JSON){v(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}},yj=function(a){if(!wj&&!uj||!window.JSON)return null;
var b;try{b=wj.get(a)}catch(c){}if(!v(b))try{b=uj.get(a)}catch(c){}if(!v(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b},Bj=function(a){wj&&wj.remove(a);
uj&&uj.remove(a)},Cj=function(a,b){ue(a);
ue(a);return Me(b,null)},Dj=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var k=c[e].split("=");
if(1==k.length&&k[0]||2==k.length){var m=ya(k[0]||""),k=ya(k[1]||"");m in d?ea(d[m])?ub(d[m],k):d[m]=[d[m],k]:d[m]=k}}return d},Ej=function(a,b){var c=[];
Pb(a,function(a,b){var f=xa(b),k;ea(a)?k=a:k=[a];E(k,function(a){""==a?c.push(f):c.push(f+"="+xa(a))})});
return c.join(b)},Fj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));
return Dj(a,"&")},Gj=function(a){a=a.split(",");
return a=a.map(function(a){return Fj(a)})},Hj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Fj(1<a.length?a[1]:a[0])):{}},Jj=function(a,b){return Ij(a,b||{},!0)},Kj=function(a,b){return Ij(a,b||{},!1)},Ij=function(a,b,c){var d=a.split("#",2);
a=d[0];var d=1<d.length?"#"+d[1]:"",e=a.split("?",2);a=e[0];var e=Fj(e[1]||""),f;for(f in b)if(c||!$b(e,f))e[f]=b[f];return Qg(a,e)+d},Lj=function(a){var b;
b||(b=window.location.href);var c=Fg(a)[1]||null,d=Hg(a);c&&d?(a=Fg(a),b=Fg(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Hg(b)==d&&Ig(b)==Ig(a):!0;return a},Mj=function(){var a;
a||(a=window.document.location.href);a=Fg(a)[1]||null;return null!==a&&"https"==a},Nj=function(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;
default:return!1}},Qj=function(a,b,c,d,e,f,k){function m(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Li(b)(l)}
var l=Oj&&Oj();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",m,!1):l.onreadystatechange=m;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);f&&(l.responseType=f);k&&(l.withCredentials=!0);f="POST"==c;if(e=Pj(a,e))for(var p in e)l.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(f=!1);f&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l},Pj=function(a,b){b=b||{};
var c=Lj(a),d;for(d in Rj){var e=Ki(Rj[d]),f;if((f=e)&&!(f=c)){f=d;var k=Ki("CORS_HEADER_WHITELIST")||{},m=Hg(a);f=m?(k=k[m])?kb(k,f):!1:!0}f&&(b[d]=e)}return b},Tj=function(a,b){b.method="POST";
b.Hb||(b.Hb={});Sj(a,b)},Uj=function(a,b){var c=Ki("XSRF_FIELD_NAME",void 0),d;
b.headers&&(d=b.headers["Content-Type"]);return!b.BO&&(!Hg(a)||b.withCredentials||Hg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Hb&&b.Hb[c])},Sj=function(a,b){var c=b.format||"JSON";
b.FO&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=Ki("XSRF_FIELD_NAME",void 0),e=Ki("XSRF_TOKEN",void 0),f=b.dd;f&&(f[d]&&delete f[d],a=Jj(a,f));var k=b.postBody||"",f=b.Hb;Uj(a,b)&&(f||(f={}),f[d]=e);f&&v(k)&&(d=Fj(k),kc(d,f),k=b.rr&&"JSON"==b.rr?JSON.stringify(d):Og(d));var m=!1,l,p=Qj(a,function(a){if(!m){m=!0;l&&O(l);var d=Nj(a),e=null;if(d||400<=a.status&&500>a.status)e=Vj(c,a,b.Vw);
if(d)a:{switch(c){case "XML":d=0==(0,window.parseInt)(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||aa;d?b.ab&&b.ab.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.gc&&b.gc.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.wc&&0<b.timeout&&(l=Mi(function(){m||(m=!0,p.abort(),O(l),b.wc.call(b.context||aa,p))},b.timeout));
return p},Vj=function(a,b,c){var d=null;
switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=Wf(a));break;case "XML":if(b=(b=b.responseXML)?Wj(b):null)d={},E(b.getElementsByTagName("*"),function(a){d[a.tagName]=Xj(a)})}c&&Yj(d);
return d},Yj=function(a){if(ka(a))for(var b in a)"html_content"==b||wa(b,"_html")?a[b]=Cj(ve("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Yj(a[b])},Wj=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null},Xj=function(a){var b="";
E(a.childNodes,function(a){b+=a.nodeValue});
return b},Zj=function(a){this.o=this.A="";
this.b="/api/lounge";this.g=!0;a=a||window.document.location.href;var b=Ig(a)||"";b&&(this.o=":"+b);this.A=Hg(a)||"";a=qc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ua(a,"10.0")&&(this.g=!1))},ak=function(a,b,c,d){var e=a.b;
if(n(d)?d:a.g)e="https://"+a.A+a.o+a.b;return Qg(e+b,c||{})},fk=function(a,b,c,d,e){a={format:"JSON",
method:"POST",context:a,timeout:5E3,withCredentials:!1,ab:qa(a.C,d,!0),onError:qa(a.B,e),wc:qa(a.D,e)};c&&(a.Hb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Sj(b,a)},gk=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;
return("x"==a?b:b&3|8).toString(16)})},hk=function(a){return zi(a,function(a){return{key:a.id,
name:a.name}})},ik=function(a,b){return fb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})},jk=function(a,b){return fb(a,function(a){return wi(a,b)})},kk=function(){F.call(this);
this.X=new kg;G(this,this.X)},lk=function(a){kk.call(this);
this.C=a;this.screens=[]},mk=function(a,b){var c=a.get(b.uuid)||a.get(b.id);
if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.screens.push(b);return!0},nk=function(a,b){var c=a.screens.length!=b.length;
a.screens=ge(a.screens,function(a){return!!ik(b,a)});
for(var d=0,e=b.length;d<e;d++)c=mk(a,b[d])||c;return c},ok=function(a,b){var c=a.screens.length;
a.screens=ge(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c},pk=function(a,b,c,d){kk.call(this);
this.D=a;this.C=b;this.o=c;this.B=d;this.A=0;this.b=null;this.g=window.NaN},qk=function(a,b){this.g=a;
this.b=b+"::"},rk=function(a){var b=new jj;
return b.isAvailable()?a?new qk(b,a):b:null},tk=function(a){this.b=new sg;
a&&sk(this,a)},uk=function(a){var b=typeof a;
return"object"==b&&a||"function"==b?"o"+na(a):b.substr(0,1)+a},vk=function(a,b){a.b.set(uk(b),b)},sk=function(a,b){for(var c=yg(b),d=c.length,e=0;e<d;e++)vk(a,c[e])},wk=function(a,b){var c=xg(b);
if(a.cb()>c)return!1;!(b instanceof tk)&&5<c&&(b=new tk(b));return Cg(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.$e&&"function"==typeof c.$e?c.$e(a):fa(c)||v(c)?kb(c,a):Vb(c,a)})},yk=function(a){this.app=this.name=this.id="";
this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new tk;this.experiments=new tk;this.theme="u";if(a){this.id=a.id||a.name;this.name=a.name;this.app=a.app;this.type=a.type||"REMOTE_CONTROL";this.username=a.user||"";this.avatar=a.userAvatarUri||"";this.theme=a.theme||"u";var b=a.capabilities||"";this.capabilities.clear();sk(this.capabilities,ge(b.split(","),qa(Wb,xk)));a=a.experiments||"";this.experiments.clear();sk(this.experiments,a.split(","))}},zk=function(a){this.b=a||
{cookie:""}},Bk=function(a){a=(a.b.cookie||"").split(Ak);
for(var b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}},Hk=function(){var a=Ck(),b=Dk();
kb(a,b);Ek()&&Hb(a,b);a=Fk(a);if(lb(a))try{Gk.remove("remote_sid","/","youtube.com")}catch(c){}else try{Gk.set("remote_sid",a.join(","),-1,"/","youtube.com")}catch(c){}},Ck=function(){var a=yj("yt-remote-connected-devices")||[];
Cb(a);return a},Fk=function(a){if(lb(a))return[];
var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return zi(a,function(a,b){return 0==b?a:a.substring(c.length)})},Ik=function(a){xj("yt-remote-connected-devices",a,86400)},Dk=function(){if(Jk)return Jk;
var a=yj("yt-remote-device-id");a||(a=gk(),xj("yt-remote-device-id",a,31536E3));for(var b=Ck(),c=1,d=a;kb(b,d);)c++,d=a+"#"+c;return Jk=d},Kk=function(){return yj("yt-remote-session-browser-channel")},Ek=function(){return yj("yt-remote-session-screen-id")},Nk=function(a){5<a.length&&(a=a.slice(a.length-5));
var b=zi(Lk(),function(a){return a.loungeToken}),c=zi(a,function(a){return a.loungeToken});
Bg(c,function(a){return!kb(b,a)})&&Mk();
xj("yt-remote-local-screens",a,31536E3)},Lk=function(){return yj("yt-remote-local-screens")||[]},Mk=function(){xj("yt-remote-lounge-token-expiration",!0,86400)},Ok=function(a,b){xj("yt-remote-session-browser-channel",a);
xj("yt-remote-session-screen-id",b);var c=Ck(),d=Dk();kb(c,d)||c.push(d);Ik(c);Hk()},Pk=function(a){a||(Bj("yt-remote-session-screen-id"),Bj("yt-remote-session-video-id"));
Hk();a=Ck();qb(a,Dk());Ik(a)},Rk=function(){if(!Qk){var a=rk();
a&&(Qk=new lj(a))}return Qk?!!Qk.get("yt-remote-use-staging-server"):!1},Tk=function(a){lk.call(this,"LocalScreenService");
this.g=a;this.b=window.NaN;Sk(this);this.info("Initializing with "+Ci(this.screens))},Uk=function(a){if(a.screens.length){var b=zi(a.screens,function(a){return a.id}),c=ak(a.g,"/pairing/get_lounge_token_batch");
fk(a.g,c,{screen_ids:b.join(",")},w(a.Mx,a),w(a.Lx,a))}},Sk=function(a){var b=Ai(Lk()),b=ge(b,function(a){return!a.uuid});
return nk(a,b)},Vk=function(a,b){Nk(zi(a.screens,xi));
b&&Mk()},Xk=function(a,b){kk.call(this);
this.C=b;for(var c=yj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.C(),f=0,k=e.length;f<k;++f){var m=e[f].id;d[m]=kb(c,m)}this.b=d;this.B=a;this.A=this.o=window.NaN;this.g=null;Wk("Initialized with "+Zf(this.b))},Yk=function(a,b,c){var d=ak(a.B,"/pairing/get_screen_availability");
fk(a.B,d,{lounge_token:b.token},w(function(a){a=a.screens||[];for(var d=0,k=a.length;d<k;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),w(function(){c(!1)},a))},$k=function(a,b){var c;
a:if(Ub(b)!=Ub(a.b))c=!1;else{c=Yb(b);for(var d=0,e=c.length;d<e;++d)if(!a.b[c[d]]){c=!1;break a}c=!0}c||(Wk("Updated online screens: "+Zf(a.b)),a.b=b,a.R("screenChange"));Zk(a)},al=function(a){(0,window.isNaN)(a.A)||O(a.A);
a.A=Mi(w(a.Am,a),0<a.o&&a.o<D()?2E4:1E4)},Wk=function(a){qi("OnlineScreenService",a)},bl=function(a){var b={};
E(a.C(),function(a){a.token?b[a.token]=a.id:this.bb("Requesting availability of screen w/o lounge token.")});
return b},Zk=function(a){a=Yb(Qb(a.b,function(a){return a}));
Cb(a);a.length?xj("yt-remote-online-screen-ids",a.join(","),60):Bj("yt-remote-online-screen-ids")},dl=function(a){lk.call(this,"ScreenService");
this.B=a;this.b=this.g=null;this.A=[];this.o={};cl(this)},gl=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);
c||(c=a.o[b]);var k=a.zc();if(k=(c?jk(k,c):null)||jk(k,b)){k.uuid=b;var m=el(a,k);Yk(a.b,m,function(a){e(a?m:null)})}else c?fl(a,c,w(function(a){var f=el(this,new vi({name:d,
screenId:c,loungeToken:a,dialId:b||""}));Yk(this.b,f,function(a){e(a?f:null)})},a),f):e(null)},hl=function(a,b){for(var c=0,d=a.screens.length;c<d;++c)if(a.screens[c].name==b)return a.screens[c];
return null},fl=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);
var e={Hb:{screen_ids:b},method:"POST",context:a,ab:function(a,e){var m=e&&e.screens||[];m[0]&&m[0].screenId==b?c(m[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
Sj(ak(a.B,"/pairing/get_lounge_token_batch"),e)},il=function(a){a.screens=a.g.zc();
var b=a.o,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+Ci(a.screens))},cl=function(a){jl(a);
a.g=new Tk(a.B);a.g.subscribe("screenChange",w(a.Yx,a));il(a);a.A=Ai(yj("yt-remote-automatic-screen-cache")||[]);jl(a);a.info("Initializing automatic screens: "+Ci(a.A));a.b=new Xk(a.B,w(a.zc,a,!0));a.b.subscribe("screenChange",w(function(){this.R("onlineScreenChange")},a))},el=function(a,b){var c=a.get(b.id);
c?(c.uuid=b.uuid,b=c):((c=jk(a.A,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.A.push(b),xj("yt-remote-automatic-screen-cache",zi(a.A,xi)));jl(a);a.o[b.uuid]=b.id;xj("yt-remote-device-id-map",a.o,31536E3);return b},jl=function(a){a.o=yj("yt-remote-device-id-map")||{}},kl=function(a,b,c){kk.call(this);
this.J=c;this.G=a;this.g=b;this.A=null},ll=function(a,b){qi(a.J,b)},nl=function(a,b){kl.call(this,a,b,"CastSession");
this.b=null;this.B=0;this.o=null;this.D=w(this.RE,this);this.C=w(this.BD,this);this.B=Mi(w(function(){ml(this,null)},this),12E4)},pl=function(a){var b=a.o.videoId;
b&&ol(a,"flingVideo",{videoId:b,currentTime:a.o.currentTime||0});a.o=null},ol=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+Zf(c));
var d={};d.type=b;c&&(d.data=c);a.b?a.b.sendMessage("urn:x-cast:com.google.youtube.mdx",d,r,w(function(){ll(this,"Failed to send message: "+b+".")},a)):ll(a,"Sending yt message without session: "+Zf(d))},ml=function(a,b){O(a.B);
if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.A||a.A.id!=b){var c=w(a.fj,a),d=w(a.uc,a);a.$o(b,c,d,5)}}else a.uc(Error("Waiting for session status timed out."))},ql=function(a,b){kl.call(this,a,b,"DialSession");
this.o=this.F=null;this.H="";this.B=null;this.D=r;this.C=window.NaN;this.I=w(this.UE,this);this.b=r},rl=function(a){a.b=a.G.Cs(a.H,a.g.label,a.g.friendlyName,w(function(a){this.b=r;
this.fj(a)},a),w(function(a){this.b=r;
this.uc(a)},a))},sl=function(a){var b={};
b.pairingCode=a.H;if(a.B){var c=a.B.currentTime||0;b.v=a.B.videoId;b.t=c}Rk()&&(b.env_useStageMdx=1);return Og(b)},tl=function(a,b){kl.call(this,a,b,"ManualSession");
this.b=Mi(w(this.dg,this,null),150)},ul=function(a){kk.call(this);
this.g=a;this.b=null;this.B=!1;this.A=[];this.o=w(this.uC,this)},wl=function(a,b){return b?fb(a.A,function(a){return wi(b,a.label)},a):null},yl=function(a){qi("Controller",a)},ji=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)},zl=function(a){return a.B||!!a.A.length||!!a.b},Al=function(a,b,c){Nb(a.b);
(a.b=b)?(c?a.R("yt-remote-cast2-receiver-resumed",b.g):a.R("yt-remote-cast2-receiver-selected",b.g),b.subscribe("sessionScreen",w(a.ar,a,b)),b.A?a.R("yt-remote-cast2-session-change",b.A):c&&a.b.dg(null)):a.R("yt-remote-cast2-session-change",null)},Bl=function(a){var b=a.g.Bs(),c=a.b&&a.b.g;
a=zi(b,function(a){c&&wi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,f=wl(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new window.chrome.cast.Receiver(b,a.name),f.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return f},a);
c&&(c.receiverType!=window.chrome.cast.ReceiverType.CUSTOM&&(c=new window.chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=window.chrome.cast.ReceiverType.CUSTOM),a.push(c));return a},Kl=function(a,b,c,d){Cl()?El(b)&&(Fl(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?Gl(a,c):(window.__onGCastApiAvailable=function(b,d){b?Gl(a,c):(Hl("Failed to load cast API: "+d),Il(!1),Fl(!1),Bj("yt-remote-cast-available"),Bj("yt-remote-cast-receiver"),Jl(),c(!1))},d?window.spf?window.spf.script.load("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js",
"",void 0):fj():ii())):Dl("Cannot initialize because not running Chrome")},Jl=function(){Dl("dispose");
var a=Ll();a&&a.dispose();Ml=null;ba("yt.mdx.remote.cloudview.instance_",null,void 0);Nl(!1);Yi(Ol);Ol.length=0},Pl=function(){return!!yj("yt-remote-cast-installed")},Ql=function(){var a=yj("yt-remote-cast-receiver");
return a?Ka(a.friendlyName):null},Rl=function(){Dl("clearCurrentReciever");
Bj("yt-remote-cast-receiver")},Sl=function(){return Pl()?Ll()?Ml.getCastSession():(Hl("getCastSelector: Cast is not initialized."),null):(Hl("getCastSelector: Cast API is not installed!"),null)},Ul=function(){Pl()?Ll()?Tl()?(Dl("Requesting cast selector."),Ml.requestSession()):(Dl("Wait for cast API to be ready to request the session."),Ol.push(Xi("yt-remote-cast2-api-ready",Ul))):Hl("requestCastSelector: Cast is not initialized."):Hl("requestCastSelector: Cast API is not installed!")},Vl=function(a){Tl()?
Ll().setLaunchParams(a):Hl("setLaunchParams called before ready.")},Wl=function(a,b){Tl()?Ll().setConnectedScreenStatus(a,b):Hl("setConnectedScreenStatus called before ready.")},Cl=function(){var a=0<=qc.search(/\ (CrMo|Chrome|CriOS)\//);
return Xl||a},Yl=function(a,b){Ml.init(a,b)},El=function(a){var b=!1;
if(!Ml){var c=q("yt.mdx.remote.cloudview.instance_");c||(c=new ul(a),c.subscribe("yt-remote-cast2-availability-change",function(a){xj("yt-remote-cast-available",a);$i("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){Dl("onReceiverSelected: "+a.friendlyName);
xj("yt-remote-cast-receiver",a);$i("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){Dl("onReceiverResumed: "+a.friendlyName);
xj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){Dl("onSessionChange: "+Bi(a));
a||Bj("yt-remote-cast-receiver");$i("yt-remote-cast2-session-change",a)}),ba("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
Ml=c}Dl("cloudview.createSingleton_: "+b);return b},Ll=function(){Ml||(Ml=q("yt.mdx.remote.cloudview.instance_"));
return Ml},Gl=function(a,b){Il(!0);
Fl(!1);Yl(a,function(a){a?(Nl(!0),$i("yt-remote-cast2-api-ready")):(Hl("Failed to initialize cast API."),Il(!1),Bj("yt-remote-cast-available"),Bj("yt-remote-cast-receiver"),Jl());b(a)})},Dl=function(a){qi("cloudview",a)},Hl=function(a){qi("cloudview",a)},Il=function(a){Dl("setCastInstalled_ "+a);
xj("yt-remote-cast-installed",a)},Tl=function(){return!!q("yt.mdx.remote.cloudview.apiReady_")},Nl=function(a){Dl("setApiReady_ "+a);
ba("yt.mdx.remote.cloudview.apiReady_",a,void 0)},Fl=function(a){ba("yt.mdx.remote.cloudview.initializing_",a,void 0)},Zl=function(){},am=function(a){this.type="";
this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;if(a=a||window.event){this.event=a;for(var b in a)b in $l||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?b:null}catch(c){b=null}else"mouseover"==
this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.b=a.pageX;this.g=a.pageY}},bm=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+
window.document.documentElement.scrollTop;
a.b=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.g=a.clientY+b}},dm=function(a,b,c,d){a.addEventListener&&("mouseenter"!=b||"onmouseenter"in window.document?"mouseleave"!=b||"onmouseenter"in window.document?"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");
return ac(cm,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})},fm=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";
d=!!d;var e=dm(a,b,c,d);if(e)return e;var e=++em.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new am(d);if(!Rf(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new am(b);
b.currentTarget=a;return c.call(a,b)};
k=Li(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"),a.addEventListener(b,k,d)):a.attachEvent("on"+b,k);cm[e]=[a,b,c,k,d];return e},hm=function(a,b,c){var d;
return d=fm(a,b,function(){gm(d);c.apply(a,arguments)},void 0)},jm=function(a,b){return im(a,b,function(a){return ee(a,"iv-card-poll-choice-input")})},im=function(a,b,c){var d=a||window.document;
return fm(d,"change",function(a){var f=Rf(a.target,function(a){return a===d||c(a)});
f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})},gm=function(a){a&&("string"==typeof a&&(a=[a]),E(a,function(a){if(a in cm){var c=cm[a],d=c[0],e=c[1],f=c[3],c=c[4];
d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete cm[a]}}))},km=function(a){a=a||window.event;
a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a},lm=function(a){a=a||window.event;
return a.path&&a.path.length?a.path[0]:km(a)},mm=function(a){a=a||window.event;
var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b},nm=function(a){a=a||window.event;
var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(b||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),c||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new $e(b,c)},om=function(a){a=a||window.event;
a.returnValue=!1;a.preventDefault&&a.preventDefault()},pm=function(a){a=a||window.event;
return!1===a.returnValue||a.Rp&&a.Rp()},qm=function(a){a=a||window.event;
return a.keyCode?a.keyCode:a.which},rm=function(a,b){this.action=a;
this.params=b||null},sm=function(){this.b=D()},tm=function(a,b){this.g=new Yf(a);
this.b=b?Wf:Vf},um=function(a){this.g=0;
this.A=a||100;this.b=[]},vm=function(a,b){if(b>=a.b.length)throw Error("Out of bounds exception");
return a.b.length<a.A?b:(a.g+Number(b))%a.A},wm=function(a,b,c){F.call(this);
this.o=null!=c?w(a,c):a;this.A=b;this.g=w(this.UC,this);this.b=[]},xm=function(a){a.df=$d(a.g,a.A);
a.o.apply(null,a.b)},ym=function(a){F.call(this);
this.o=a;this.g={}},Am=function(a,b,c,d,e){zm(a,b,c,d,!1,e)},zm=function(a,b,c,d,e,f){ea(c)||(c&&(Bm[0]=c.toString()),c=Bm);
for(var k=0;k<c.length;k++){var m=Qc(b,c[k],d||a.handleEvent,e||!1,f||a.o||a);if(!m)break;a.g[m.key]=m}return a},Em=function(a,b,c,d){Cm(a,b,c,d,void 0)},Fm=function(a,b,c,d,e){Cm(a,b,c,d,!1,e)},Cm=function(a,b,c,d,e,f){if(ea(c))for(var k=0;k<c.length;k++)Cm(a,b,c[k],d,e,f);
else(b=$c(b,c,d||a.handleEvent,e,f||a.o||a))&&(a.g[b.key]=b)},Gm=function(a){Pb(a.g,function(a,c){this.g.hasOwnProperty(c)&&bd(a)},a);
a.g={}},Hm=function(a){switch(a){case 0:return"No Error";
case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}},Im=function(){},Km=function(a){var b;
(b=a.b)||(b={},Jm(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b},Lm=function(){},Mm=function(a){return(a=Jm(a))?new window.ActiveXObject(a):new window.XMLHttpRequest},Jm=function(a){if(!a.g&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0",
"MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new window.ActiveXObject(d),a.g=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.g},Nm=function(a,b,c,d,e){this.b=a;
this.A=c;this.F=d;this.D=e||1;this.B=45E3;this.o=new ym(this);this.g=new Yd;Zd(this.g,250)},Pm=function(a,b,c){a.Pf=1;
a.ge=kh(b.clone());a.lf=c;a.C=!0;Om(a,null)},Qm=function(a,b,c,d,e){a.Pf=1;
a.ge=kh(b.clone());a.lf=null;a.C=c;e&&(a.Gr=!1);Om(a,d)},Om=function(a,b){a.ph=D();
Rm(a);a.ve=a.ge.clone();jh(a.ve,"t",a.D);a.Dh=0;a.Cb=a.b.Nk(a.b.wh()?b:null);0<a.vl&&(a.jj=new wm(w(a.us,a,a.Cb),a.vl));a.o.N(a.Cb,"readystatechange",a.ND);var c=a.ef?hc(a.ef):{};a.lf?(a.Dj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Cb.send(a.ve,a.Dj,a.lf,c)):(a.Dj="GET",a.Gr&&!Bc&&(c.Connection="close"),a.Cb.send(a.ve,a.Dj,null,c));a.b.Yc(1)},Zm=function(a,b,c){for(var d=!0;!a.Xe&&a.Dh<c.length;){var e=Sm(a,c);
if(e==Tm){4==b&&(a.ff=4,Um(),d=!1);break}else if(e==Vm){a.ff=4;Um();d=!1;break}else Wm(a,e)}4==b&&0==c.length&&(a.ff=1,Um(),d=!1);a.ad=a.ad&&d;d||(Xm(a),Ym(a))},Sm=function(a,b){var c=a.Dh,d=b.indexOf("\n",c);
if(-1==d)return Tm;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Vm;d+=1;if(d+c>b.length)return Tm;var e=b.substr(d,c);a.Dh=d+c;return e},bn=function(a,b){a.ph=D();
Rm(a);var c=b?window.location.hostname:"";a.ve=a.ge.clone();hh(a.ve,"DOMAIN",c);hh(a.ve,"t",a.D);try{a.bd=new window.ActiveXObject("htmlfile")}catch(p){Xm(a);a.ff=7;Um();Ym(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var k=c.charAt(f);if("<"==k)e+="\\x3c";else if(">"==k)e+="\\x3e";else{if(k in $m)k=$m[k];else if(k in an)k=$m[k]=an[k];else{var m,l=k.charCodeAt(0);if(31<l&&127>l)m=k;else{if(256>l){if(m="\\x",16>l||256<l)m+="0"}else m="\\u",4096>l&&(m+="0");m+=l.toString(16).toUpperCase()}k=
$m[k]=m}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=Cj(ve("b/12014412"),d);a.bd.open();a.bd.write(Le(c));a.bd.close();a.bd.parentWindow.m=w(a.dD,a);a.bd.parentWindow.d=w(a.kr,a,!0);a.bd.parentWindow.rpcClose=w(a.kr,a,!1);c=a.bd.createElement("DIV");a.bd.parentWindow.document.body.appendChild(c);d=Ee(a.ve.toString());d=Ha(Be(d));d=Cj(ve("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Le(d);a.b.Yc(1)},Rm=function(a){a.Zm=D()+a.B;
cn(a,a.B)},cn=function(a,b){if(null!=a.yg)throw Error("WatchDog timer not null");
a.yg=dn(w(a.tD,a),b)},en=function(a){a.yg&&(aa.clearTimeout(a.yg),a.yg=null)},Ym=function(a){a.b.gp()||a.Xe||a.b.ej(a)},Xm=function(a){en(a);
Nb(a.jj);a.jj=null;a.g.stop();Gm(a.o);if(a.Cb){var b=a.Cb;a.Cb=null;fn(b);b.dispose()}a.bd&&(a.bd=null)},Wm=function(a,b){try{a.b.Wq(a,b),a.b.Yc(4)}catch(c){}},hn=function(a,b,c,d,e){if(0==d)c(!1);
else{var f=e||0;d--;gn(a,b,function(e){e?c(!0):aa.setTimeout(function(){hn(a,b,c,d,f)},f)})}},gn=function(a,b,c){var d=new window.Image;
d.onload=function(){try{jn(d),c(!0)}catch(a){}};
d.onerror=function(){try{jn(d),c(!1)}catch(a){}};
d.onabort=function(){try{jn(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{jn(d),c(!1)}catch(a){}};
aa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a},jn=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null},kn=function(a){this.b=a;
this.g=new tm(null,!0)},mn=function(a){var b=ln(a.b,a.Ng,"/mail/images/cleardot.gif");
kh(b);hn(b.toString(),5E3,w(a.Ow,a),3,2E3);a.Yc(1)},on=function(a){var b=a.b.G;
if(null!=b)Um(),b?(Um(),nn(a.b,a,!1)):(Um(),nn(a.b,a,!0));else if(a.xc=new Nm(a,0,void 0,void 0,void 0),a.xc.ef=a.sl,b=a.b,b=ln(b,b.wh()?a.Yg:null,a.ul),Um(),!qf||Ac(10))jh(b,"TYPE","xmlhttp"),Qm(a.xc,b,!1,a.Yg,!1);else{jh(b,"TYPE","html");var c=a.xc;a=!!a.Yg;c.Pf=3;c.ge=kh(b.clone());bn(c,a)}},pn=function(a){I.call(this);
this.headers=new sg;this.J=a||null;this.A=!1;this.I=this.b=null;this.U=this.G="";this.g=0;this.C="";this.o=this.M=this.F=this.K=!1;this.B=0;this.D=null;this.X="";this.H=this.P=!1},qn=function(a,b){a.B=Math.max(0,b)},rn=function(a){return qf&&xc(9)&&ha(a.timeout)&&n(a.ontimeout)},sn=function(a){return"content-type"==a.toLowerCase()},vn=function(a,b){a.A=!1;
a.b&&(a.o=!0,a.b.abort(),a.o=!1);a.C=b;a.g=5;tn(a);un(a)},tn=function(a){a.K||(a.K=!0,a.V("complete"),a.V("error"))},fn=function(a,b){a.b&&a.A&&(wn(a,"Aborting"),a.A=!1,a.o=!0,a.b.abort(),a.o=!1,a.g=b||7,a.V("complete"),a.V("abort"),un(a))},An=function(a){if(a.A&&"undefined"!=typeof xn)if(a.I[1]&&4==yn(a)&&2==a.getStatus())wn(a,"Local request error detected and ignored");
else if(a.F&&4==yn(a))$d(a.ip,0,a);else if(a.V("readystatechange"),4==yn(a)){wn(a,"Request complete");a.A=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=Fg(String(a.G))[1]||null;if(!f&&aa.self&&aa.self.location)var k=aa.self.location.protocol,f=k.substr(0,k.length-1);e=!zn.test(f?f.toLowerCase():"")}d=e}if(d)a.V("complete"),a.V("success");else{a.g=6;var m;try{m=2<yn(a)?a.b.statusText:
""}catch(l){m=""}a.C=m+" ["+a.getStatus()+"]";tn(a)}}finally{un(a)}}},un=function(a,b){if(a.b){Bn(a);
var c=a.b,d=a.I[0]?r:null;a.b=null;a.I=null;b||a.V("ready");try{c.onreadystatechange=d}catch(e){}}},Bn=function(a){a.b&&a.H&&(a.b.ontimeout=null);
ha(a.D)&&(ae(a.D),a.D=null)},yn=function(a){return a.b?a.b.readyState:0},Cn=function(a){try{return a.b?a.b.responseText:""}catch(b){return""}},wn=function(a,b){return b+" ["+a.U+" "+a.G+" "+a.getStatus()+"]"},Dn=function(a,b,c){this.D=a||null;
this.b=1;this.g=[];this.o=[];this.B=new tm(null,!0);this.F=b||null;this.G=null!=c?c:null},En=function(a,b){this.b=a;
this.map=b;this.context=null},Fn=function(a){mc.call(this,"statevent",a)},Gn=function(a,b){mc.call(this,"timingevent",a);
this.size=b},Hn=function(a){mc.call(this,"serverreachability",a)},Ln=function(a){In(a);
if(3==a.b){var b=a.fh++,c=a.Ci.clone();hh(c,"SID",a.A);hh(c,"RID",b);hh(c,"TYPE","terminate");Jn(a,c);b=new Nm(a,0,a.A,b,void 0);b.Pf=2;b.ge=kh(c.clone());(new window.Image).src=b.ge;b.ph=D();Rm(b)}Kn(a)},In=function(a){if(a.$d){var b=a.$d;
b.xc&&(b.xc.cancel(),b.xc=null);b.Id=-1;a.$d=null}a.sb&&(a.sb.cancel(),a.sb=null);a.Dd&&(aa.clearTimeout(a.Dd),a.Dd=null);Mn(a);a.$b&&(a.$b.cancel(),a.$b=null);a.ce&&(aa.clearTimeout(a.ce),a.ce=null)},On=function(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");
a.g.push(new En(a.Nz++,b));2!=a.b&&3!=a.b||Nn(a)},Nn=function(a){a.$b||a.ce||(a.ce=dn(w(a.gr,a),0),a.Ug=0)},Rn=function(a,b){if(1==a.b){if(!b){a.fh=Math.floor(1E5*Math.random());
var c=a.fh++,d=new Nm(a,0,"",c,void 0);d.ef=null;var e=Pn(a),f=a.Ci.clone();hh(f,"RID",c);a.D&&hh(f,"CVER",a.D);Jn(a,f);Pm(d,f,e);a.$b=d;a.b=2}}else 3==a.b&&(b?Qn(a,b):0!=a.g.length&&(a.$b||Qn(a)))},Qn=function(a,b){var c,d;
b?6<a.Ze?(a.g=a.o.concat(a.g),a.o.length=0,c=a.fh-1,d=Pn(a)):(c=b.F,d=b.lf):(c=a.fh++,d=Pn(a));var e=a.Ci.clone();hh(e,"SID",a.A);hh(e,"RID",c);hh(e,"AID",a.cg);Jn(a,e);c=new Nm(a,0,a.A,c,a.Ug+1);c.ef=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.$b=c;Pm(c,e,d)},Jn=function(a,b){if(a.Qb){var c=a.Qb.To(a);
c&&Pb(c,function(a,c){hh(b,c,a)})}},Pn=function(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;
6<a.Ze&&0<b?(d=a.g[0].b,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.g[e].b,k=a.g[e].map,f=6>=a.Ze?e:f-d;try{Ag(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(m){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.o=a.o.concat(a.g.splice(0,b));
return c.join("&")},Sn=function(a){a.sb||a.Dd||(a.C=1,a.Dd=dn(w(a.fr,a),0),a.zf=0)},Un=function(a){if(a.sb||a.Dd||3<=a.zf)return!1;
a.C++;a.Dd=dn(w(a.fr,a),Tn(a,a.zf));a.zf++;return!0},nn=function(a,b,c){a.Cj=c;
a.Rc=b.Id;a.ix(1,0);a.Ci=ln(a,null,a.rl);Nn(a)},Mn=function(a){null!=a.af&&(aa.clearTimeout(a.af),a.af=null)},Tn=function(a,b){var c=5E3+Math.floor(1E4*Math.random());
a.isActive()||(c*=2);return c*b},Wn=function(a,b){if(2==b||9==b){var c=null;
a.Qb&&(c=null);var d=w(a.oE,a);c||(c=new N("//www.google.com/images/cleardot.gif"),kh(c));gn(c.toString(),1E4,d)}else Um();Vn(a,b)},Vn=function(a,b){a.b=0;
a.Qb&&a.Qb.xo(a,b);Kn(a);In(a)},Kn=function(a){a.b=0;
a.Rc=-1;if(a.Qb)if(0==a.o.length&&0==a.g.length)a.Qb.Ek(a);else{var b=tb(a.o),c=tb(a.g);a.o.length=0;a.g.length=0;a.Qb.Ek(a,b,c)}},ln=function(a,b,c){var d=lh(c);
if(""!=d.g)b&&Zg(d,b+"."+d.g),$g(d,d.D);else var e=window.location,d=mh(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Tg&&Pb(a.Tg,function(a,b){hh(d,b,a)});
hh(d,"VER",a.Ze);Jn(a,d);return d},dn=function(a,b){if(!ia(a))throw Error("Fn must not be null and must be a function");
return aa.setTimeout(function(){a()},b)},Um=function(){Xn.V(new Fn(Xn))},Yn=function(){},$n=function(a,b){Yd.call(this);
this.B=0;if(ia(a))b&&(a=w(a,b));else if(a&&ia(a.handleEvent))a=w(a.handleEvent,a);else throw Error("Invalid listener argument");this.D=a;Qc(this,"tick",w(this.C,this));Zn(this)},Zn=function(a){a.stop();
Zd(a,5E3+2E4*Math.random())},ao=function(a,b){this.I=a;
this.C=b;this.A=new kg;this.g=new $n(this.LE,this);this.b=null;this.H=!1;this.B=null;this.G="";this.F=this.o=0;this.D=[]},bo=function(a){return{firstTestResults:[""],
secondTestResults:!a.b.Cj,sessionId:a.b.A,arrayId:a.b.cg}},co=function(a,b){a.F=b||0;
a.g.stop();a.b&&(3==a.b.b&&Rn(a.b),Ln(a.b));a.F=0},eo=function(a){return!!a.b&&3==a.b.b},fo=function(a,b){(a.C.loungeIdToken=b)||a.g.stop()},go=function(){this.b=[];
this.g=[]},ho=function(a){lb(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])},io=function(a,b){a.g.push(b)},jo=function(a){ho(a);
return a.b.pop()},ko=function(a){ho(a);
return db(a.b)},lo=function(a){this.index=-1;
this.videoId=this.A="";this.volume=this.b=-1;this.muted=!1;this.audioTrackId=null;this.B=this.o=0;this.g=null;this.reset(a)},mo=function(a){a.audioTrackId=null;
a.g=null;a.b=-1;a.o=0;a.B=D()},no=function(a){a.index=-1;
a.videoId="";mo(a)},oo=function(a,b){a.o=b;
a.B=D()},po=function(a){switch(a.b){case 1:return(D()-a.B)/1E3+a.o;
case -1E3:return 0}return a.o},qo=function(a,b,c){var d=a.videoId;
a.videoId=b;a.index=c;b!=d&&mo(a)},ro=function(a){var b={};
b.index=a.index;b.listId=a.A;b.videoId=a.videoId;b.playerState=a.b;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=ic(a.g);b.playerTime=a.o;b.playerTimeAt=a.B;return b},uo=function(a,b){kk.call(this);
this.g=0;this.o=a;this.D=[];this.C=new go;this.B=window.NaN;this.A=this.b=null;this.H=w(this.tA,this);this.F=w(this.gh,this);this.G=w(this.sA,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.hn,this),so(this))):c=3;0!=c&&(b?this.hn(c):Mi(w(function(){this.hn(c)},this),0));
to(this,Sl())},vo=function(a){return new lo(a.o.getPlayerContextData())},yo=function(a,b,c,d,e){var f=vo(a),k=e||f.A;
d=d||0;var m={videoId:b,currentIndex:d};qo(f,b,d);n(c)&&(oo(f,c),m.currentTime=c);n(k)&&(m.listId=k);wo(a,"setPlaylist",m);e||xo(a,f)},so=function(a){E(["remotePlayerChange",
"remoteQueueChange"],function(a){this.D.push(this.o.subscribe(a,qa(this.kC,a),this))},a)},zo=function(a){E(a.D,function(a){this.o.unsubscribeByKey(a)},a);
a.D.length=0},Ao=function(a,b){50>a.C.cb()&&io(a.C,b)},Bo=function(a,b,c){var d=vo(a);
oo(d,c);-1E3!=d.b&&(d.b=b);xo(a,d)},wo=function(a,b,c){a.o.sendMessage(b,c)},xo=function(a,b){zo(a);
a.o.setPlayerContextData(ro(b));so(a)},Co=function(a){O(a.B);
a.B=Mi(w(function(){this.R("remotePlayerChange");this.B=window.NaN},a),2E3)},to=function(a,b){a.A&&(a.A.removeUpdateListener(a.H),a.A.removeMediaListener(a.F),a.gh(null));
a.A=b;a.A&&(Do("Setting cast session: "+a.A.sessionId),a.A.addUpdateListener(a.H),a.A.addMediaListener(a.F),a.A.media.length&&a.gh(a.A.media[0]))},Eo=function(a){var b=a.b.customData;
if(a.b.media){var c=a.b.media,d=vo(a);c.contentId!=d.videoId&&Do("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.b=b.playerState;oo(d,a.b.getEstimatedTime());xo(a,d)}else Do("No cast media video. Ignoring state update.")},Do=function(a){qi("CP",a)},Go=function(a,b,c){kk.call(this);
this.o=window.NaN;this.I=!1;this.F=this.D=this.G=this.H=window.NaN;this.J=[];this.A=this.Ka=this.b=null;this.aa=a;this.J.push(fm(window,"beforeunload",w(this.Fx,this)));this.g=[];this.Ka=new lo;this.M=b.id;this.b=Fo(this,c);this.b.subscribe("handlerOpened",this.xA,this);this.b.subscribe("handlerClosed",this.uA,this);this.b.subscribe("handlerError",this.vA,this);this.b.subscribe("handlerMessage",this.wA,this);fo(this.b,b.token);this.subscribe("remoteQueueChange",function(){var a=this.Ka.videoId;Ek()&&
xj("yt-remote-session-video-id",a)},this)},Ho=function(a){qi("conn",a)},Fo=function(a,b){return new ao(ak(a.aa,"/bc",void 0,!1),b)},Io=function(a,b){a.R("proxyStateChange",b)},Jo=function(a){a.o=Mi(w(function(){Ho("Connecting timeout");
this.B(1)},a),2E4)},Ko=function(a){O(a.o);
a.o=window.NaN},Lo=function(a){O(a.H);
a.H=window.NaN},Oo=function(a){Mo(a);
a.G=Mi(w(function(){No(this,"getNowPlaying")},a),2E4)},Mo=function(a){O(a.G);
a.G=window.NaN},Qo=function(a,b){b&&(Ko(a),Lo(a));
b==(eo(a.b)&&(0,window.isNaN)(a.o))?b&&(Io(a,1),No(a,"getSubtitlesTrack")):b?(a.K()&&a.Ka.reset(),Io(a,1),No(a,"getNowPlaying"),Po(a)):a.B(1)},Ro=function(a,b){var c=b.params.videoId;
delete b.params.videoId;c==a.Ka.videoId&&(cc(b.params)?a.Ka.g=null:a.Ka.g=b.params,a.R("remotePlayerChange"))},So=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);
a.Ka.A=b.params.listId||a.Ka.A;qo(a.Ka,c,d);a.R("remoteQueueChange")},Uo=function(a,b){b.params=b.params||{};
So(a,b);To(a,b)},To=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);
oo(a.Ka,(0,window.isNaN)(c)?0:c);c=(0,window.parseInt)(b.params.state,10);c=(0,window.isNaN)(c)?-1:c;-1==c&&-1E3==a.Ka.b&&(c=-1E3);a.Ka.b=c;1==a.Ka.b?Oo(a):Mo(a);a.R("remotePlayerChange")},Vo=function(a,b){var c="true"==b.params.muted;
a.Ka.volume=(0,window.parseInt)(b.params.volume,10);a.Ka.muted=c;a.R("remotePlayerChange")},Po=function(a){O(a.F);
a.F=Mi(w(a.B,a,1),864E5)},No=function(a,b,c){c?Ho("Sending: action="+b+", params="+Zf(c)):Ho("Sending: action="+b);
a.b.sendMessage(b,c)},Wo=function(a){lk.call(this,"ScreenServiceProxy");
this.Rb=a;this.b=[];this.b.push(this.Rb.$_s("screenChange",w(this.PE,this)));this.b.push(this.Rb.$_s("onlineScreenChange",w(this.YB,this)))},np=function(a,b){uj&&vj();
Hk();Xo||(Xo=new Zj,Rk()&&(Xo.b="/api/loungedev"));Yo||(Yo=q("yt.mdx.remote.deferredProxies_")||[],ba("yt.mdx.remote.deferredProxies_",Yo,void 0));Zo();var c=$o();if(!c){var d=new dl(Xo);ba("yt.mdx.remote.screenService_",d,void 0);c=$o();Kl(a,d,function(a){a?ap()&&Wl(ap(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){$i("yt-remote-receiver-availability-change")})},!(!b||!b.loadCastApiSetupScript))}if(b&&!q("yt.mdx.remote.initialized_")){ba("yt.mdx.remote.initialized_",!0,void 0);
bp("Initializing: "+Zf(b));cp.push(Xi("yt-remote-cast2-availability-change",function(){$i("yt-remote-receiver-availability-change")}));
cp.push(Xi("yt-remote-cast2-receiver-selected",function(){dp(null);$i("yt-remote-auto-connect","cast-selector-receiver")}));
cp.push(Xi("yt-remote-cast2-session-change",ep));cp.push(Xi("yt-remote-connection-change",function(a){a?Wl(ap(),"YouTube TV"):ip()||(Wl(null,null),Rl())}));
var e=kp();b.isAuto&&(e.id+="#dial");e.name=b.device;e.app=b.app;bp(" -- with channel params: "+Zf(e));lp(e);c.start();ap()||mp()}},pp=function(){Yi(cp);
cp.length=0;Nb(op);op=null;Yo&&(E(Yo,function(a){a(null)}),Yo.length=0,Yo=null,ba("yt.mdx.remote.deferredProxies_",null,void 0));
Xo=null},tp=function(){if(Pl()){var a=[];
if(yj("yt-remote-cast-available")||q("yt.mdx.remote.cloudview.castButtonShown_")||qp())a.push({key:"cast-selector-receiver",name:rp()}),ba("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return q("yt.mdx.remote.cloudview.initializing_")?[]:sp()},sp=function(){var a;
a=$o().Rb.$_gos();var b=up();b&&qp()&&(ik(a,b)||a.push(b));return hk(a)},wp=function(){if(Pl()){var a=Ql();
return a?{key:"cast-selector-receiver",name:a}:null}return vp()},vp=function(){var a=sp(),b=up();
b||(b=ip());return fb(a,function(a){return b&&wi(b,a.key)?!0:!1})},rp=function(){if(Pl())return Ql();
var a=up();return a?a.name:null},up=function(){var a=ap();
if(!a)return null;var b=$o().zc();return jk(b,a)},ep=function(a){bp("remote.onCastSessionChange_: "+Bi(a));
if(a){var b=up();b&&b.id==a.id?Wl(b.id,"YouTube TV"):(b&&xp(),yp(a,1))}else xp()},Ap=function(a,b){bp("Connecting to: "+Zf(a));
if("cast-selector-receiver"==a.key)dp(b||null),Vl(b||null);else{xp();dp(b||null);var c=$o().zc();(c=jk(c,a.key))?yp(c,1):Mi(function(){zp(null)},0)}},xp=function(){Tl()?Ll().stopSession():Hl("stopSession called before API ready.");
var a=qp();a?a.disconnect(1):(aj("yt-remote-before-disconnect",1),aj("yt-remote-connection-change",!1));zp(null)},Dp=function(){var a=Bp(),a=a?a.currentTime:0,b=Cp();
0==a&&b&&(a=po(vo(b)));return a},Cp=function(){var a=qp();
return a&&3!=a.getProxyState()?new uo(a,void 0):null},bp=function(a){qi("remote",a)},$o=function(){if(!op){var a=q("yt.mdx.remote.screenService_");
op=a?new Wo(a):null}return op},ap=function(){return q("yt.mdx.remote.currentScreenId_")},Ep=function(a){ba("yt.mdx.remote.currentScreenId_",a,void 0)},Bp=function(){return q("yt.mdx.remote.connectData_")},dp=function(a){ba("yt.mdx.remote.connectData_",a,void 0)},qp=function(){return q("yt.mdx.remote.connection_")},zp=function(a){var b=qp();
dp(null);a?qp():Ep("");ba("yt.mdx.remote.connection_",a,void 0);Yo&&(E(Yo,function(b){b(a)}),Yo.length=0);
b&&!a?aj("yt-remote-connection-change",!1):!b&&a&&$i("yt-remote-connection-change",!0)},ip=function(){var a=Ek();
if(!a)return null;var b=$o().zc();return jk(b,a)},yp=function(a,b){ap();
Ep(a.id);var c=new Go(Xo,a,kp());c.connect(b,Bp());c.subscribe("beforeDisconnect",function(a){aj("yt-remote-before-disconnect",a)});
c.subscribe("beforeDispose",function(){qp()&&(qp(),zp(null))});
zp(c)},mp=function(){var a=ip();
a?(bp("Resume connection to: "+Bi(a)),yp(a,0)):(Pk(),Rl(),bp("Skipping connecting because no session screen found."))},Zo=function(){var a=kp();
if(cc(a)){var a=Dk(),b=yj("yt-remote-session-name")||"",c=yj("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};ba("yt.mdx.remote.channelParams_",a,void 0)}},kp=function(){return q("yt.mdx.remote.channelParams_")||{}},lp=function(a){a?(xj("yt-remote-session-app",a.app),xj("yt-remote-session-name",a.name)):(Bj("yt-remote-session-app"),Bj("yt-remote-session-name"));
ba("yt.mdx.remote.channelParams_",a,void 0)},Gp=function(a){return(a=Fp.exec(a))?a[0]:""},Jp=function(a){var b=Hp.test(a),c;
c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Ip.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Pi(a,"WARNING"));return b||c},Kp=function(a){a=new N(a);
Yg(a,window.document.location.protocol);Zg(a,window.document.location.hostname);window.document.location.port&&$g(a,window.document.location.port);return a.toString()},Lp=function(a){a=new N(a);
Yg(a,window.document.location.protocol);return a.toString()},Np=function(){return Mp("android")&&Mp("chrome")&&!(Mp("trident/")||Mp("edge/"))},Op=function(){return Mp("cobalt")},Pp=function(){return Mp("(ps3; leanback shell)")||Mp("ps3")&&Op()},Qp=function(){return Mp("(ps4; leanback shell)")||Mp("ps4")&&Op()},Rp=function(){var a=/WebKit\/([0-9]+)/.exec(qc);
return!!(a&&600<=a[1])},Sp=function(){return Xl&&Mp("crkey")},Tp=function(){return Mp("nintendo wiiu")},Up=function(){return Mp("iemobile")||Mp("windows phone")&&Mp("edge")},Mp=function(a){var b=qc;
return b?0<=b.toLowerCase().indexOf(a):!1},Wp=function(a,b,c){a&&(c&&!Op()?a&&(a=M("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',
style:"display:none"}),ff(a).body.appendChild(a)):Vp(a,b))},Zp=function(a){return z(A(a))?!1:Xp.test(a)||Yp.test(a)},Vp=function(a,b){var c=new window.Image,d=""+$p++;
aq[d]=c;c.onload=c.onerror=function(){b&&aq[d]&&b();delete aq[d]};
c.src=a},cq=function(a,b){this.start=a;
this.end=b;this.B=bq++},dq=function(a,b,c){cq.call(this,a,b);
a=c||{};this.oa=a.id||"";this.C=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.b=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.A=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start},eq=function(a){return a.A||(a.A=new kg)},fq=function(a,b){return a.start-b.start||a.C-b.C||a.B-b.B},gq=function(a,b){kk.call(this);
this.logEvent=this.Ea="";this.ka=b||"";this.aa=this.loaded=this.D=!1;this.K=this.F=null;this.b=a;if(this.ka){var c=rk("yt-html5-player-modules::"+this.ka);c&&(this.K=new lj(c))}},jq=function(a){var b=a.b,c=b.app;
a=a.Ea;var b=b.playerType,d=hq(c,b);if(d){for(var d=d.C,e=[],f=d.b.b,k=f.length-1;0<=k;k--){var m=f[k];if(m.b==a){var l=d.g.indexOf(m);0<=l&&d.g.splice(l,1);var p=d.b,l=p.b,p=Ab(l,m,p.g);0<=p&&pb(l,p);e.push(m)}}d.Qd();b&&c.getPresentingPlayerType()!=b||iq(c,"cuerangesremoved",e)}},kq=function(a){a.b.qj(a.Ea)},lq=function(a,b,c){var d={},e;
for(e in b)d[a.Ea+"_"+e]=b[e];b={};for(var f in c)b[a.Ea+"_"+f]=c[f];a=a.b.app.B;ta(a.o,d||null);ta(a.A,b||null)},mq=function(a,b){if(!a.K)return null;
var c;try{c=a.K.get(b)}catch(d){a.K&&a.K.remove(b)}return c},nq=function(a,b,c){if(a.K)try{a.K.set(b,c)}catch(d){}},oq=function(a){a.R("command_stop_redirect_controls")},pq=function(a){a.R("command_play",!1,a.b.playerType)},rq=function(a){F.call(this);
this.la={};this.ia={};this.element=qq(this,a)},qq=function(a,b){if(ea(b)){var c=0,d=window.document.createElement(b[c++]);
if(v(b[c])){var e=b[c++];if(e=sq(a,d,"className",e))tq(a,d,"className",e),a.la[e]=d}else if(ea(b[c])){for(var f=b[c++],e=0;e<f.length;e++)a.la[f[e]]=d;tq(a,d,"className",f.join(" "))}for(;c<b.length;c++)f=b[c],ea(f)?(e=qq(a,f),d.appendChild(e)):ka(f)?f.element?d.appendChild(f.element):uq(a,d,f):v(f)&&(f=sq(a,d,"child",f),null!=f&&d.appendChild(window.document.createTextNode(String(f))))}else{d=window.document.createElement(b.tagName);if(e=b.className){if(e=sq(a,d,"className",e))tq(a,d,"className",
e),a.la[e]=d}else if(c=b.b){for(e=0;e<c.length;e++)a.la[c[e]]=d;tq(a,d,"className",c.join(" "))}if(c=b.children)for(e=0;e<c.length;e++)f=c[e],v(f)?(f=sq(a,d,"child",f),null!=f&&d.appendChild(window.document.createTextNode(String(f)))):(f=qq(a,f),d.appendChild(f));(e=b.attributes)&&uq(a,d,e)}return d},vq=function(a){Bf(a.element)},sq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.ia[d]=[b,
c],null):d},wq=function(a){return ea(a)&&v(a[0])||ka(a)&&v(a.tagName)},tq=function(a,b,c,d){if("child"==c){zf(b);
if(!ea(d)||wq(d))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];if(null!=f)if(!f.nodeType||1!=f.nodeType&&3!=f.nodeType)if(wq(f))c.push(qq(a,f));else if(f.element)c.push(f.element);else if(v(f)&&-1!=f.indexOf("\n"))for(var f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(window.document.createElement("br")),c.push(window.document.createTextNode(String(f[k])));else c.push(window.document.createTextNode(String(f)));else c.push(f)}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=
d:"style"==c?b.style.cssText=d?d:"":null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())},uq=function(a,b,c){for(var d in c){var e=c[d];
null!=e&&tq(a,b,d,v(e)?sq(a,b,d,e):e)}},xq=function(a,b){a&&(a.style.display=b)},yq=function(a,b){var c=Oh("requestAnimationFrame",window);
return Mi(function(){c?c.call(window,a):a()},b||0)},zq=function(a){if(window.document.createRange){var b=window.document.createRange();
b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}},Q=function(a){rq.call(this,a);
this.A=!0;this.ba=[]},Aq=function(a){Q.call(this,a);
this.X=new kk;G(this,this.X)},Bq=function(a,b){Aq.call(this,["div",
["html5-endscreen","ytp-player-content",b||"base-endscreen"]]);this.o=a;this.J=!1},Cq=function(){Q.call(this,["div",
"ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])},Eq=function(){return Bc?"Webkit":Dq?"Moz":qf?"ms":Cc?"O":null},Gq=function(a,b,c){if(v(b))(b=Fq(a,b))&&(a.style[b]=c);
else for(var d in b){c=a;var e=b[d],f=Fq(c,d);f&&(c.style[f]=e)}},Fq=function(a,b){var c=Hq[b];
if(!c){var d=Za(b),c=d;void 0===a.style[d]&&(d=Eq()+$a(d),void 0!==a.style[d]&&(c=d));Hq[b]=c}return c},Iq=function(a,b){var c=a.style[Za(b)];
return"undefined"!==typeof c?c:a.style[Fq(a,b)]||""},Jq=function(a,b){var c=ff(a);
return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""},Kq=function(a,b){return Jq(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Mq=function(a,b,c){var d;
b instanceof $e?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Lq(d,!1);a.style.top=Lq(b,!1)},Nq=function(a){return new $e(a.offsetLeft,a.offsetTop)},Oq=function(a){var b;
try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}qf&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},Pq=function(a){if(qf&&!Ac(8))return a.offsetParent;
var b=ff(a),c=Kq(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Kq(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},Rq=function(a){for(var b=new eg(0,window.Infinity,window.Infinity,0),c=hf(a),d=c.b.body,e=c.b.documentElement,f=pf(c.b);a=Pq(a);)if(!(qf&&0==a.clientWidth||Bc&&0==a.clientHeight&&
a==d)&&a!=d&&a!=e&&"visible"!=Kq(a,"overflow")){var k=Qq(a),m=new $e(a.clientLeft,a.clientTop);
k.x+=m.x;k.y+=m.y;b.top=Math.max(b.top,k.y);b.right=Math.min(b.right,k.x+a.clientWidth);b.bottom=Math.min(b.bottom,k.y+a.clientHeight);b.left=Math.max(b.left,k.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=of(Uf(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},Qq=function(a){var b=ff(a),c=new $e(0,0),d;
d=b?ff(b):window.document;d=!qf||Ac(9)||"CSS1Compat"==hf(d).b.compatMode?d.documentElement:d.body;if(a==d)return c;a=Oq(a);b=rf(hf(b).b);c.x=a.left+b.x;c.y=a.top+b.y;return c},Tq=function(a,b){var c=new $e(0,0),d=sf(ff(a));
if(!pc(d,"parent"))return c;var e=a;do{var f=d==b?Qq(e):Sq(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c},Vq=function(a,b){var c=Uq(a),d=Uq(b);
return new $e(c.x-d.x,c.y-d.y)},Sq=function(a){a=Oq(a);
return new $e(a.left,a.top)},Uq=function(a){if(1==a.nodeType)return Sq(a);
a=a.changedTouches?a.changedTouches[0]:a;return new $e(a.clientX,a.clientY)},Xq=function(a,b,c){if(b instanceof bf)c=b.height,b=b.width;
else if(void 0==c)throw Error("missing height argument");Wq(a,b);a.style.height=Lq(c,!0)},Lq=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");
return a},Wq=function(a,b){a.style.width=Lq(b,!0)},Zq=function(a){var b=Yq;
if("none"!=Kq(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a},Yq=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=Bc&&!b&&!c;
return n(b)&&!d||!a.getBoundingClientRect?new bf(b,c):(a=Oq(a),new bf(a.right-a.left,a.bottom-a.top))},$q=function(a){var b=Qq(a);
a=Zq(a);return new fg(b.x,b.y,a.width,a.height)},ar=function(a,b){var c=a.style;
"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")},S=function(a,b){a.style.display=b?"":"none"},br=function(a){return"none"!=a.style.display},cr=function(a,b){if(/^\d+px?$/.test(b))return(0,window.parseInt)(b,10);
var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e},gr=function(a){var b=Kq(a,"fontSize"),c;
c=(c=b.match(dr))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(qf){if(String(c)in er)return cr(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in fr)return a=a.parentNode,c=Kq(a,"fontSize"),cr(a,b==c?"1em":b)}c=M("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;Bf(c);return b},hr=function(a,b){ea(b)||(b=[b]);
var c=zi(b,function(a){return v(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
Gq(a,"transition",c.join(","))},ir=function(a,b,c,d){F.call(this);
this.A=a;c||a.da();this.o=null==d?b:d;this.b=null;this.g=new be(this.Aj,0,this);G(this,this.g)},jr=function(a,b){var c=a.A.element;
b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")},kr=function(a,b){Q.call(this,b||["div",
"ytp-thumbnail-overlay"]);this.B=new ir(this,250);G(this,this.B);this.o=a},lr=function(a){kr.call(this,a,["div",
["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])},nr=function(a){Bq.call(this,a,"subscribecard-endscreen");
this.B=new lr(a);G(this,this.B);mr(this.o,this.B.element,4);this.C=new Cq;G(this,this.C);this.da()},or=function(a){F.call(this);
this.J=[];this.ra=a||this},pr=function(a,b,c,d){for(var e=0;e<c.length;e++)a.S(b,c[e],d)},qr=function(a){for(;a.J.length;){var b=a.J.pop();
b.target.removeEventListener(b.name,b.li)}},rr=function(a,b){this.type=a||"";
this.id=b||""},sr=function(a){return new rr(a.substr(0,2),a.substr(2))},ur=function(a){a=a.split("");
tr.nT(a,25);tr.Qr(a,2);tr.WO(a,25);return a.join("")},vr=function(a,b){return new Bd(function(c,d){b.ab=function(a){Nj(a)?c(a):d(a)};
b.onError=d;b.wc=d;Sj(a,b)})},wr=function(a){function b(e,f,k){return Nd(e,function(e){return 0>=f||403===e.status?Gd(e):c(k).then(function(){return b(vr(a,d),f-1,Math.pow(2,4-f+1)*k)})})}
function c(a){return new Bd(function(b){(0,window.setTimeout)(b,a)})}
var d={format:"RAW",method:"GET"};return b(vr(a,d),3,1E3)},xr=function(a){this.b=a||0},Ar=function(a,b,c,d,e,f,k,m){this.id=""+a;
this.g=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.b=k||0;this.o=m||0;this.audio=c||null;this.video=d||null;this.Lb=e||null;this.He=f||null;this.A=yr[zr(this)]||""},zr=function(a){return a.id.split(";",1)[0]},Br=function(a){return"9"==a.A||"("==a.A},Cr=function(a){return!(a.audio&&a.video)},Dr=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")},Er=function(a){return 0<=a.indexOf("vp9")||0<=
a.indexOf("vp8")||0<=a.indexOf("avc1")},Fr=function(a,b,c){this.name=a;
this.id=b;this.isDefault=c},Ir=function(a,b,c,d,e,f,k,m,l,p){this.width=a;
this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);for(b=0;b<Gr.length;b++){var t=Gr[b],u=Hr[t];if(f>=Math.floor(16*u/9)||a>=u){f=t;break a}}f="tiny"}this.quality=f;this.KD=Hr[this.quality];this.isAccelerated=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;(c=m)||(c=this.fps,d=Hr[this.quality],c=0==d?P("YTP_AUTO"):d+"p"+(55<c?"60":49<c?"50":39<c?"48":""));this.qualityLabel=c;this.b=l||"";this.g=!1!==p},Jr=function(a){this.A=a;
this.B=this.o=this.C="";this.b={};this.g=""},Lr=function(a){a.g||(a.g=Kr(a));
return a.g},Nr=function(a){Mr(a);
return a.B},Or=function(a){Mr(a);
return Sb(a.b,function(a){return null!==a})},Mr=function(a){if(a.A){if(!Pr.test(a.A))throw Error("Untrusted URL: "+a.A);
var b=lh(a.A);a.C=b.o;a.B=b.g+(null!=b.D?":"+b.D:"");var c=b.A;if(0==c.indexOf("/videoplayback"))a.o="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.o=c.substr(0,d),c=c.substr(d+1)):(a.o=c,c="")}d=a.b;a.b=Qr(c);ta(a.b,Rr(b.I()));ta(a.b,d);a.A="";a.g=""}},Kr=function(a){Mr(a);
var b=a.C+(a.C?"://":"//")+a.B+a.o;if(Or(a)){var c=[];Pb(a.b,function(a,b){null!==a&&c.push(b+"="+a)});
b+="?"+c.join("&")}return b},Qr=function(a){a=a.split("/");
var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Sr(c,a[b],a[b+1]);return c},Rr=function(a){a=a.split("&");
for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Sr(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b},Sr=function(a,b,c){if("cmo"==b){var d;
0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c},Tr=function(a,b){this.start=a;
this.end=b;this.length=b-a+1},Ur=function(a){a=a.split("-");
return 2==a.length&&(a=new Tr((0,window.parseInt)(a[0],10),(0,window.parseInt)(a[1],10)),!(0,window.isNaN)(a.start)&&!(0,window.isNaN)(a.end)&&!(0,window.isNaN)(a.length)&&0<a.length)?a:null},Vr=function(a,b){return new Tr(a,a+b-1)},Wr=function(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];
if(d)return d.value}return""},Xr=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);
if(0<d.length)return d[0]}return null},Yr=function(a){if(!a)return 0;
var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(0,window.parseFloat)(b[2]||0)+60*(0,window.parseFloat)(b[4]||0)+(0,window.parseFloat)(b[6]||0):(0,window.parseFloat)(a)},Zr=function(a,b,c,d,e,f){this.duration=c;
this.endTime=b+c;this.g=d;this.b=a;this.sourceURL=e;this.startTime=b;this.range=f||null},$r=function(){this.na=[]},as=function(a,b){var c=Ab(a.na,new Zr(b,0,0,0,""),function(a,b){return a.b-b.b});
return 0<=c?a.na[c]:null},bs=function(a,b){var c=Ab(a.na,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.na[c]:a.na[Math.max(0,-c-2)]},cs=function(a,b){var c=eb(a.na,function(a){return a.b>=b},a);
0<c&&a.na.splice(0,c)},ds=function(a){this.b=a;
this.g={};this.A=""},es=function(a,b){var c=b.indexOf("?");
if(0<c){var d=Rr(b.substr(c+1));Pb(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=Qr(b);Pb(d,function(a,b){this.set(b,a)},a)},gs=function(a){a.A||(a.A=fs(a));
return a.A},fs=function(a){var b=Lr(a.b),c=[];
Pb(a.g,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=Or(a.b)?"&":"?";return b+a+d},hs=function(a,b){var c=new Jr(b);
Pb(a.g,function(a,b){c.set(b,null)});
return c},is=function(a){this.b=a;
this.o=a.clone();this.g=0;this.A=-1},js=function(a,b,c){this.index=null;
this.info=b;this.initRange=c||null;this.b=null;this.o=this.A=!1;this.C=new is(a)},ks=function(a,b,c,d,e,f,k,m,l){this.b=b;
this.range=c;this.type=a;this.o=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.A=k||0;this.g=0<=m?m:this.range?this.range.length:window.NaN;this.F=!!l;this.range?(this.C=this.A+this.g==this.range.length,this.B=this.startTime+this.duration*this.A/this.range.length,this.G=this.duration*this.g/this.range.length):(this.C=0!=this.g,this.B=this.startTime,this.G=this.duration);this.D=this.B+this.G},ls=function(a,b){return!(!b||b.b!=a.b||b.type!=a.type||(a.range&&b.range?b.range.end!=a.range.end:b.range!=
a.range)||b.o!=a.o||b.A+b.g!=a.A+a.g)},ms=function(a){return 1==a.type||2==a.type},ns=function(a,b){return a.b==b.b&&a.range.start+a.A+a.g==b.range.start+b.A},os=function(a){1==a.length||Bg(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Tr(a[0].range.start+a[0].A,b.range.start+b.A+b.g-1)},qs=function(a){var b="";
Pb(ps(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)},ps=function(a){var b={};
b.itag=zr(a.b.info);b.seg=a.o;a.range&&(b.range=""+(a.range.start+a.A)+"-"+(a.range.start+a.A+a.g-1));b.time=""+a.B.toFixed(1)+"-"+(a.B+a.G).toFixed(1);return b},rs=function(a,b,c){this.A=a[0].b.C;
this.g=b||"";this.b=a;this.range=this.b[0].range&&0<this.b[0].g?os(this.b):null;this.o=!!c},ts=function(a,b){var c;
/http[s]?:\/\//.test(a.g)?c=new ds(new Jr(a.g)):(c=new ds(a.A.b),a.g&&es(c,a.g));var d=b||a.range;d&&c.set("range",d.toString());return c},us=function(a){if(a.range)return a.range.length;
a=a.b[0];return Math.round(a.G*a.b.info.b)},vs=function(a,b,c,d,e,f){js.call(this,a,b,d);
this.index=e||new $r;this.F=c;this.D=!0;this.g=!!f;if(this.B=!c)this.A=!0},xs=function(a,b){a.Nh(b);
return ws(a,b.C?b.o+1:b.o,!1)},ws=function(a,b,c){if(a.g&&0==a.index.Ee(b))return a=new ks(3,a,null,b),b=0<=b?"sq/"+b:"",new rs([a],b,!!b);
var d=a.index.ap(b),e=a.index.Fe(b),f=a.index.Ee(b);c?f=c=0:c=0<a.info.b?a.info.b*f:1E3;a=new ks(3,a,null,b,e,f,0,c,b==a.index.Jb()&&!a.D&&0<c);return new rs([a],d)},ys=function(a,b,c){this.zd=a;
this.durationSecs=b;this.context=c},zs=function(a,b,c,d){this.b=a;
this.zd=b;this.durationSecs=c;this.g=d||window.NaN},As=function(){this.b=[];
this.g=null;this.o=0;this.A=[]},Bs=function(a){var b=a.A;
a.A=[];return b},Cs=function(){this.o=[];
this.b=null;this.g={};this.A={}},Gs=function(a,b,c){var d=[];
b=b.getElementsByTagName("SegmentTimeline");for(var e=0;e<b.length;e++){var f=b[e].parentNode.parentNode,k=null;"Period"==f.nodeName?k=Ds(a):"AdaptationSet"==f.nodeName?k=Es(a,f.attributes.mimeType.value):"Representation"==f.nodeName&&(k=Fs(a,f.attributes.id.value));if(null==k)return;k.update(b[e],c);ub(d,Bs(k))}Db(d,function(a){return a.zd});
ub(a.o,d)},Hs=function(a){a.b&&(a.b.b=[]);
Pb(a.g,function(a){a.b=[]});
Pb(a.A,function(a){a.b=[]})},Ds=function(a){a.b||(a.b=new As);
return a.b},Es=function(a,b){a.g[b]||(a.g[b]=new As);
return a.g[b]},Fs=function(a,b){a.A[b]||(a.A[b]=new As);
return a.A[b]},Is=function(a){var b={};
a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0==a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null},Js=function(a){this.b=a;
this.g=(0,window.parseInt)(this.b["Sequence-Number"],10)||0;this.A=((0,window.parseInt)(this.b["Ingestion-Walltime-Us"],10)||0)/1E6;this.B="T"==this.b["Overlayed-With-Slate"];this.o="T"==this.b["Stream-Finished"]},Qs=function(a,b){var c=Ks(a,0,1836019558);
if(!c)return null;var d=Ks(a,c.offset+8,1835427940),e=Ks(a,c.offset+8,1953653094);if(!d||!e)return null;var f=Ks(a,e.offset+8,1952868452),k=Ks(a,e.offset+8,1953658222),m=Ks(a,e.offset+8,1952867444);if(!f||!k||!m)return null;var l=Ks(a,e.offset+8,1935763823),e=Ks(a,e.offset+8,1935763834);if(l){var p=Ls(l),t=Ls(l);if(0!=p||1!=t)return null;p=Ls(l)}for(var u=Ls(f),x=Ls(f),B=u&2,C=u&1?Ms(f):0,H=B?Ls(f):0,L=u&8?Ls(f):0,t=u&16?Ls(f):0,R=u&32?Ls(f):0,u=Ls(k),ra=u&1,sa=u&4,Aa=u&256,f=u&512,cb=u&1024,re=u&
2048,u=Ls(k),bk=ra?Ls(k):0,ck=sa?Ls(k):0,ra=[],Dm=[],dk=[],ek=[],Fv=0,ag=0,lc=0;lc<u;lc++){var fD=Aa?Ls(k):L;f&&ra.push(Ls(k));var Fd=R;sa&&0==lc?Fd=ck:cb&&(Fd=Ls(k));Dm.push(Fd);Fd=re?Ls(k):0;0==lc&&(Fv=Fd);dk.push(ag+Fd);ek.push(lc);ag+=fD}Cb(ek,function(a,b){return dk[a]-dk[b]});
k=[];for(lc=0;lc<u;lc++)k[ek[lc]]=lc;ag=B?4:0;lc=16*u;Fd=68+ag+m.size+lc+(l?l.size:0)+(e?e.size:0);c=Fd-c.size;L=new Ns(Fd);Os(L,Fd);Os(L,1836019558);Ps(L,d);Os(L,Fd-24);Os(L,1953653094);Os(L,16+ag);Os(L,1952868452);Os(L,131072|(B?2:0));Os(L,x);B&&Os(L,H);Ps(L,m);Os(L,20+lc);Os(L,1953658222);Os(L,16781057);Os(L,u);Os(L,C+bk+c);for(lc=ag=0;lc<u;lc++)m=k[lc],d=Math.round(b*m/u),m=Math.round(b*(m+1)/u)-d,Fd=d-ag+Fv,Os(L,m),Os(L,f?ra[lc]:t),Os(L,Dm[lc]),Os(L,Fd),ag+=m;l&&(Os(L,l.size),Os(L,1935763823),
Os(L,0),Os(L,1),Os(L,p+c));e&&Ps(L,e);return L.data.buffer},Ts=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);
return(a=Rs(a,1836476516))?Ss(a):window.NaN},Ks=function(a,b,c){for(;Us(a,b);){var d=Vs(a,b);
if(d.type==c)return d;b+=d.size}return null},Rs=function(a,b){for(var c=0;Us(a,c);){var d=Vs(a,c);
if(d.type==b)return d;c=Ws(d.type)?c+8:c+d.size}return null},Vs=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);
return new Xs(a,b,c,d)},Ss=function(a){var b=a.data.getUint8(a.offset+8)?28:20;
return a.data.getUint32(a.offset+b)},Ys=function(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)},Us=function(a,b){if(8>a.byteLength-b)return!1;
var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c},Ws=function(a){return 1836019558==a||1836019574==a||1953653094==a},Xs=function(a,b,c,d){this.data=a;
this.offset=b;this.size=c;this.type=d;this.b=8},Ls=function(a){var b=a.data.getInt32(a.offset+a.b);
a.b+=4;return b},Zs=function(a){var b=a.data.getUint32(a.offset+a.b);
a.b+=4;return b},Ms=function(a){var b=Ys(a.data,a.offset+a.b);
a.b+=8;return b},$s=function(a){var b,c=[];
do b=a.data.getUint8(a.offset+a.b),c.push(b),a.b++;while(0!=b);c.pop()},Ns=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));
this.b=0},Os=function(a,b){a.data.setInt32(a.b,b);
a.b+=4},Ps=function(a,b){for(var c=0;c+4<=b.size;)Os(a,b.data.getUint32(b.offset+c)),c+=4;
for(;c<b.size;)a.data.setUint8(a.b++,b.data.getUint8(b.offset+c++))},at=function(a){return(a=Ks(a,0,1836019558))?a.offset+a.size:null},bt=function(a,b){for(var c=Ks(a,0,b);c;)a.setUint32(c.offset+4,1936419184),c=Ks(a,c.offset+c.size,b)},ct=function(a,b){this.g=a;
this.b=0;this.A=b||0},ft=function(a){for(var b=dt(a,!1);236==b;)et(a),b=dt(a,!1);
return b},gt=function(a){var b=dt(a,!0),c=a.g.byteOffset+a.b,c=new window.DataView(a.g.buffer,c,Math.min(b,a.g.buffer.byteLength-c)),c=new ct(c,a.A+a.b);
a.b+=b;return c},it=function(a){for(var b=dt(a,!0),c=ht(a),d=1;d<b;d++)c=256*c+ht(a);
return c},et=function(a){var b=dt(a,!0);
a.b+=b},kt=function(a){var b=a.b;
a.b=0;var c=!1;jt(a,440786851)&&(a.b=0,jt(a,408125543)&&(c=!0));a.b=b;return c},lt=function(a){var b=a.b;
a.b=0;var c=1E6;jt(a,408125543)&&(dt(a,!0),jt(a,357149030)&&(dt(a,!0),jt(a,2807729)&&(c=it(a))));a.b=b;return c},nt=function(a,b){var c=a.b;
a.b=0;if(!mt(a)||!jt(a,160))return a.b=c,window.NaN;dt(a,!0);if(!jt(a,161))return a.b=c,window.NaN;var d=dt(a,!0);ht(a);var e=ht(a)<<8|ht(a);a.b+=d-3;if(!jt(a,155))return a.b=c,window.NaN;d=it(a);a.b=c;return(e+d)*b/1E9},mt=function(a){if(kt(a)){if(!jt(a,408125543))return!1;
dt(a,!0)}if(!jt(a,524531317))return!1;dt(a,!0);return!0},jt=function(a,b){for(;ft(a)!=b;)if(et(a),a.b>=a.g.byteLength)return!1;
return!0},dt=function(a,b){var c=ht(a);
if(1==c){for(var d=c=0;7>d;d++)c=256*c+ht(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+ht(a),e*=128;return b?c-e:c},ht=function(a){return a.g.getUint8(a.b++)},ot=function(a,b,c,d,e){this.info=a;
this.b=b;this.range=c;this.g=null;this.A=d;this.B=e},pt=function(a){return a.range?new window.DataView(a.b,a.range.start,a.range.length):new window.DataView(a.b)},qt=function(a){if(a.info.g!=a.range.length)return!1;
if(1==a.info.b.info.g){if(8>a.info.g||4==a.info.type)return!0;var b=pt(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.g&&1936286840==b;if(3==a.info.type&&0==a.info.A)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==a.info.b.info.g){if(4>a.info.g||4==a.info.type)return!0;b=pt(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.A)return 524531317==c||440786851==c}return!0},rt=function(a,b){if(1==a.info.b.info.g){for(var c=
a.info.b.b,d=new window.DataView(a.b),e=window.NaN,f=window.NaN,k=0;Us(d,k);){var m=Vs(d,k);
(0,window.isNaN)(e)&&(1936286840==m.type?e=m.data.getUint32(m.offset+16):1836476516==m.type&&(e=Ss(m)));if(1952867444==m.type){!e&&c&&(e=Ts(c));var l,p=m;l=p.data.getUint8(p.offset+8)?Ys(p.data,p.offset+12):p.data.getUint32(p.offset+12);(0,window.isNaN)(f)&&(f=b*e-l);p=m;l+=f;if(p.data.getUint8(p.offset+8)){var t=p.data,p=p.offset+12;t.setUint32(p,Math.floor(l/4294967296));t.setUint32(p+4,l&4294967295)}else p.data.setUint32(p.offset+12,l)}k=Ws(m.type)?k+8:k+m.size}return!0}e=new ct(new window.DataView(a.info.b.b.buffer));
c=new ct(new window.DataView(a.b));d=b;f=lt(e);e=c.b;c.b=0;if(mt(c)&&jt(c,231))if(k=dt(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>k)c=!1;else{for(f=k-1;0<=f;f--)c.g.setUint8(c.b+f,d&255),d>>>=8;c.b=e;c=!0}else c=!1;return c},tt=function(a){var b;
if(1==a.info.b.info.g){for(var c=b=0,d=new window.DataView(a.b);Us(d,b);){var e=Vs(d,b);if(1936286840==e.type){var f=e.data.getUint32(e.offset+16),k;k=e;var m=k.data.getUint8(k.offset+8);k.data.getUint16(k.offset+(0==m?30:38));k=k.data.getUint32(k.offset+(0==m?36:42));c+=k/f}b=Ws(e.type)?b+8:b+e.size}b=c||window.NaN;if(!(0<=b))a:{b=a.info.b.b;for(var c=0,d=new window.DataView(a.b),l,f=0;Us(d,c);){e=Vs(d,c);if(1836476516==e.type)l=Ss(e);else if(1836019558==e.type){!l&&b&&(l=Ts(b));if(!l){b=window.NaN;
break a}m=e;k=l;var p=Ks(m.data,m.offset+8,1953653094),t=Ks(m.data,p.offset+8,1952868452),m=Ks(m.data,p.offset+8,1953658222),p=Ls(t);Ls(t);p&2&&Ls(t);var t=p&8?Ls(t):0,u=Ls(m),x=u&1,p=u&4,B=u&256,C=u&512,H=u&1024,u=u&2048,L=Zs(m);x&&Ls(m);p&&Ls(m);for(var R=x=0;R<L;R++){var ra=B?Ls(m):t;C&&Ls(m);p&&0==R||!H||Ls(m);u&&Ls(m);x+=ra}f+=x/k}c=Ws(e.type)?c+8:c+e.size}b=f||window.NaN}}else l=new ct(new window.DataView(a.info.b.b.buffer)),b=nt(new ct(new window.DataView(a.b)),lt(l));return b||a.info.G},ut=
function(a){return 1==a.info.b.info.g?a.g?a.g.B&&!!Ks(new window.DataView(a.b),0,1718909296):!1:kt(new ct(new window.DataView(a.b)))},vt=function(){this.pa=0;
this.b=new window.Float64Array(128);this.g=new window.Float64Array(128);this.o=1;this.A=!1},wt=function(a){if(a.b.length<a.pa+1){var b=2*a.b.length,b=b+2,c=a.b;
a.b=new window.Float64Array(b+1);var d=a.g;a.g=new window.Float64Array(b+1);for(b=0;b<a.pa+1;b++)a.b[b]=c[b],a.g[b]=d[b]}},xt=function(a,b,c,d,e,f){js.call(this,a,b,c||void 0);
this.indexRange=d;this.B=null;this.index=new vt;this.g=e;this.lastModified=f},zt=function(a,b,c,d){for(var e=[];b<=a.index.Jb();b++){var f;
f=a.index;var k=b;f=Vr(f.Wj(k),k+1<f.pa||f.A?f.b[k+1]-f.b[k]:-1);var k=a.index.Fe(b),m=a.index.Ee(b),l=Math.max(0,c-f.start),p=Math.min(f.end+1,c+d)-(f.start+l);e.push(new ks(3,a,f,b,k,m,l,p,b==a.index.Jb()&&l+p==f.length));if(f.start+l+p>=c+d)break}return new rs(e)},At=function(a,b,c){a.Nh(b);
if(!a.Xc())return c=Vr(b.range.end+1,c),c.end+1>a.g&&(c=new Tr(c.start,a.g-1)),a=[new ks(4,b.b,c)],new rs(a);4==b.type&&(b=a.nj(b),b=b[b.length-1]);var d=0,e=b.range.start+b.A+b.g;3==b.type&&(d=b.o,e==b.range.end+1&&(d+=1));return zt(a,d,e,c)},Ct=function(a,b){kk.call(this);
this.H=this.duration=0;this.isLive=this.A=!1;this.D=Bt();this.B=window.Infinity;this.b={};this.I=a||"";this.C=this.G=0;this.o=null;this.P=!!b&&b.$("html5_live_nonzero_first_segment_start_time");this.g=!1;this.F=[];this.ba=!!b&&b.$("html5_live_self_init_segments")},Dt=function(a){return Sb(a.b,function(a){return!!a.info.He},a)},Gt=function(a,b,c,d){return d?Et(a):Ft(a,b,c)},Ft=function(a,b,c){var d=new Ct;
d.duration=c||0;E(a,function(a){var c=Ht(a,b,d.duration),k=Ur(a.init),m=Ur(a.index),l=(0,window.parseInt)(a.clen,10),p=It(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);p&&(c=new xt(p,c,k,m,l,a),d.b[c.info.id]=c)});
return d},Et=function(a){var b=new Ct;
E(a,function(a){var d=Ht(a);if(a=It(a.url,d,a.s))d=new vs(a,d,"",void 0,void 0,!0),b.b[d.info.id]=d});
b.A=!0;b.g=!0;b.isLive=!0;return b},Ht=function(a,b,c){var d=a.type,e=Jt(a),f=null;
Er(d)&&(f=(a.size||"640x360").split("x"),f=new Ir(+f[0],+f[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isAccelerated,a.quality_label,a.eotf,!!a.isAcceleratedUiEnabled));var k=null,m=null;Dr(d)&&(k=new xr,a.name&&(m=new Fr(a.name,a.audio_track_id,"1"==a.isDefault)));var l=(0,window.parseInt)(a.bitrate,10)/8,p=(0,window.parseInt)(a.clen,10);c=c&&p?p/c:0;var t=null;b&&a.drm_families&&(t={},E(a.drm_families.split(","),function(a){t[a]=b[a]}));
return new Ar(e,d,k,f,m,t,l,c)},Jt=function(a){var b=a.itag;
a.xtags&&(b=a.itag+";"+a.xtags);return b},It=function(a,b,c){a=new Jr(a);
a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",(0,window.encodeURIComponent)(b.mimeType.split(";")[0]));c&&a.set("signature",ur(c));return a},Lt=function(a,b){var c=Wr(b,"id"),c=c.replace(":",";");
"captions"==c&&(c=Wr(b,"lang"));var d=Wr(b,"mimeType"),e=Wr(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Wr(b,"bandwidth"),10)/8,f=(0,window.parseInt)(Xr(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(Er(d)){var k=(0,window.parseInt)(Wr(b,"width"),10),m=(0,window.parseInt)(Wr(b,"height"),10),l=(0,window.parseInt)(Wr(b,"frameRate"),10),p=Wr(b,"yt:stereoLayout"),t="equirectangular"==Wr(b,"yt:projectionType"),u,x;t&&"layout_top_bottom"==p?u=
3:t&&!p?u=2:"layout_left_right"==p&&(x=1);k=new Ir(k,m,l,u,x)}x=u=null;Dr(d)&&(u=new xr((0,window.parseInt)(Wr(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),x=Wr(b,"lang")||"",(m=Xr(b,"Role"))?(m=Wr(m,"value")||"",x=x&&$b(Kt,m)?new Fr(Wr(b,"yt:langName")||x+" - "+m,x+"."+Kt[m],"main"==m):null):x=null);l=null;if(m=Xr(b,"ContentProtection"))if((l=m.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},m=m.firstChild;null!=m;m=m.nextSibling)"yt:SystemURL"==
m.nodeName&&(l[m.attributes.type.textContent]=m.textContent.trim());else l=null;return new Ar(c,d,u,k,x,l,e,f)},Mt=function(a,b){a.C=1;
a.D=Bt();return Nd(wr(b||a.I).then(w(a.K,a)),w(a.M,a))},Nt=function(a,b,c){var d=a.getAttribute("media"),e=null;
c||(a=a.getAttribute("mediaRange"),null!=a&&(0<=(0,window.parseInt)(a.split("-")[1],10)?e=Ur(a):d=d+"?range="+a));return new Zr(b.b,b.zd,b.durationSecs,b.g,d,e)},Ot=function(a){a=a.b;
for(var b in a){var c=a[b].index;if(c&&c.sf())return c.Eg()}return window.NaN},Pt=function(a){a=a.b;
for(var b in a){var c=a[b].index;if(c&&c.sf())return c.Us()}return 0},Qt=function(a){var b=a.b,c;
for(c in b)if((a=b[c].index)&&a.sf()){c=0;for(b=a.Lf();b<=a.Jb();b++)c+=a.Ee(b);c/=a.kl();return.5*Math.round(c/.5)}return window.NaN},Rt=function(a,b){Pb(a.b,function(a){Pb(b,function(b,e){var f=a.C;
f.b.set(e,b);f.o.set(e,b)})})},Vt=function(a,b){if(!a.b["0"]){var c=new Ir(0,0,0,void 0,void 0,"auto"),c=new Ar("0","",void 0,c);
a.b["0"]=b?new vs(new Jr("http://www.youtube.com/videoplayback"),c,""):new xt(new Jr("http://www.youtube.com/videoplayback"),c,new Tr(0,0),new Tr(0,0),0,window.NaN)}},Wt=function(){var a=q("yt.player.utils.videoElement_");
a||(a=window.document.createElement("video"),ba("yt.player.utils.videoElement_",a,void 0));return a},Zt=function(a){var b=Wt();
try{if(b.canPlayType){a=a?Xt:Yt;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}},$t=function(a){a=M("div",{"class":a});
window.document.body.appendChild(a);var b="none"==Jq(a,"display");Bf(a);return b},au=function(a,b,c){this.b=a;
this.A=b;this.B=c;this.o={};this.g=null;this.fairPlayCert=""},cu=function(a){return!a.g&&bu()&&"com.microsoft.playready"==a.A},du=function(a){return!a.g&&bu()&&"com.apple.fps.1_0"==a.A},bu=function(){var a=window.MSMediaKeys;
eu&&xc("8")&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null},iu=function(a){var b=Xl&&fu("45"),c=gu&&a.$("edge_nonprefixed_eme");
a=hu&&fu("47")&&a.$("firefox_eme");return window.navigator.requestMediaKeySystemAccess&&(b||c||a)},ku=function(a,b){this.g=[];
this.b={};this.A={};this.o=null;this.F=b;ju(this,a)},ju=function(a,b){Pb(b,function(a){a.forEach(function(a){a.He&&Pb(a.He,function(b,c){lu[c]&&Pb(lu[c],function(b){this.b[b]=this.b[b]||new au(c,b,a.He[c]);
this.A[c]=this.A[c]||{};this.A[c][a.mimeType]=!0},this)},this)},this)},a);
a.g=mu.filter(function(a){return!!this.b[a]},a)},ou=function(a){var b=a.g.shift(),c=a.b[b],d=nu(a.A[c.b]);
window.navigator.requestMediaKeySystemAccess(b,d).then(Li(w(a.D,a,c)),Li(w(a.C,a,c)))},nu=function(a){var b={initDataTypes:["cenc",
"webm"],audioCapabilities:[],videoCapabilities:[]};Pb(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
return[b]},pu=function(a){var b=bu(),c=Wt();
if(b){if(eu){a.o(new au("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=w(c.canPlayType,c):d=function(){return!1};
c=(c=fb(a.g,function(a){var b=this.b[a],c,m;Pb(this.A[b.b],function(l,p){d(p,a)&&(b.o[p]=!0,c|=0==p.indexOf("audio/"),m|=0==p.indexOf("video/"))},this);
return c&&m},a))?a.b[c]:null;
a.g=[];a.o(c)},qu=function(a){this.languageCode=a.languageCode;
this.languageName=a.languageName||null;this.b=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1},ru=function(a){a=a||{};
this.H=a.formats||"";this.o=a.format||1;if(1==this.o)for(var b=this.H.split(","),c=0;c<b.length;c++){var d=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.o=Math.max(d,this.o))}this.g=a.languageCode||"";this.C=a.languageName;this.A=a.kind||"";this.B=a.name;this.oa=a.id;this.I=a.is_servable;this.isDefault=a.is_default;this.F=a.is_translateable;this.G=a.url||null;this.D=a.vss_id||"";this.b=null;a.translationLanguage&&(this.b=new qu(a.translationLanguage))},uu=function(a){var b={format:a.o,
languageCode:a.g,languageName:a.C,displayName:tu(a),kind:a.A,name:a.B,id:a.oa,is_servable:a.I,is_default:a.isDefault,is_translateable:a.F,vss_id:a.D};a.b&&(a=a.b,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.b,id:a.id,is_default:a.isDefault});return b},tu=function(a){var b=a.C||"",c=[b];
"asr"==a.A&&-1==b.indexOf("(")&&c.push(" (",P("YTP_ASR_SETTINGS_LABEL"),")");a.B&&c.push(" - ",a.B);a.b&&c.push(" >> ",a.b.languageName);return c.join("")},vu=function(a,b){var c=new ru;
c.g=a.g;c.C=a.C;c.B=a.B;c.A=a.A;c.isDefault=!1;c.F=a.F;c.D=a.D;c.G=a.G;c.b=b;return c},wu=function(a,b){this.id=a;
this.Lb=b;this.captionTracks=[];this.Bi=this.Rk=null;this.uo=0},xu=function(a,b,c){this.g=a||0;
this.b=b||0;this.A=c},yu=function(a,b,c){return new xu(Hr[a]||0,Hr[b]||0,c)},zu=function(a){var b=Hr.auto;
return a.g==b&&a.b==b},Bu=function(a,b){if(b.A&&zu(b))return Au;
if(b.A||zu(a))return b;if(a.A||zu(b))return a;var c=a.g&&b.g?Math.max(a.g,b.g):a.g||b.g,d=a.b&&b.b?Math.min(a.b,b.b):a.b||b.b,c=Math.min(c,d);return c==a.g&&d==a.b?a:new xu(c,d,!1)},Du=function(a){var b=a.b||a.g;
return bc(Cu,function(a){return Hr[a]==b})||"auto"},Eu=function(a,b,c){this.videoInfos=a;
this.b=b||null;this.audioTracks=[];this.g=c||null;if(this.b){var d={};E(this.b,w(function(a){if(a.Lb&&!d[a.id]){var b=new wu(a.id,a.Lb);d[a.id]=b;this.audioTracks.push(b)}},this))}},Fu=function(a,b){this.bc=a;
this.b=b},Gu=function(a){this.b=[];
if(a)a:{var b;if(a instanceof Gu){if(b=a.La(),a=a.Ha(),0>=this.cb()){for(var c=this.b,d=0;d<b.length;d++)c.push(new Fu(b[d],a[d]));break a}}else b=Yb(a),a=Xb(a);for(d=0;d<b.length;d++)Hu(this,b[d],a[d])}},Hu=function(a,b,c){var d=a.b;
d.push(new Fu(b,c));b=d.length-1;a=a.b;for(c=a[b];0<b;)if(d=b-1>>1,a[d].bc>c.bc)a[b]=a[d],b=d;else break;a[b]=c},Iu=function(){Gu.call(this)},Ju=function(a){kk.call(this);
this.o=new Iu;this.g=null;this.F={};this.D=a||""},Mu=function(a,b,c){for(c=Ku(a,c);0<=c;){var d=a.b[c];
if(d.A[Math.floor(b/(d.Ob*d.rows))]&&(d=Lu(d,b)))return d;c--}return Lu(a.b[0],b)},Ou=function(a,b,c){c=Ku(a,c);
for(var d,e;0<=c;c--)if(d=a.b[c],e=Math.floor(b/(d.Ob*d.rows)),!d.A[e]){d=a;var f=c,k=f+"-"+e;d.F[k]||(d.F[k]=!0,Hu(d.o,f,{aq:f,jq:e}))}Nu(a)},Nu=function(a){if(!a.g&&!a.o.isEmpty()){var b=a.o.remove(),c=new window.Image;
a.D&&(c.crossOrigin=a.D);c.src=Pu(a.b[b.aq],b.jq);c.onload=w(a.H,a,b.aq,b.jq);a.g=c}},Qu=function(a,b,c,d){this.A={};
this.J=a;this.H=b;a=c.split("#");this.F=(0,window.parseInt)(a[0],10);this.D=(0,window.parseInt)(a[1],10);this.g=(0,window.parseInt)(a[2],10);this.Ob=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.B=(0,window.parseInt)(a[5],10);this.o=a[6];this.C=a[7];this.I=d},Pu=function(a,b){var c=a.H,c=c.replace("$N",a.o),c=c.replace("$L",a.J.toString()),c=c.replace("$M",b.toString());
a.C&&(c=Qg(c,{sigh:a.C}));return Lp(c)},Lu=function(a,b){var c=Math.floor(b/(a.Ob*a.rows)),d=a.Ob*a.rows,e=b%d,f=e%a.Ob,e=Math.floor(e/a.Ob),k,m=a.xn()+1-d*c;
m<a.Ob?(k=m,d=1):(k=a.Ob,d=m<d?Math.ceil(m/a.Ob):a.rows);return{url:Pu(a,c),Sw:f,Ob:k,VD:e,rows:d,kq:a.F*k,iq:a.D*d}},Ru=function(a,b,c){Ju.call(this,c);
this.b=this.A(a,b);this.B={};1<this.b.length&&this.b[0].isDefault()&&this.b.splice(0,1)},Ku=function(a,b){var c=a.B[b];
if(c)return c;for(var c=a.b.length,d=0;d<c;d++)if(a.b[d].Ta()>=b)return a.B[b]=d;a.B[b]=c-1;return c-1},Su=function(a,b,c,d){c=c.split("#");
c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");Qu.call(this,a,b,c,0);this.b=null;this.G=d?3:0},Tu=function(a,b){this.I=b;
Ru.call(this,a,0)},Uu=function(a,b){return void 0==b?a:"1"==b?!0:!1},Vu=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];
return a},Wu=function(a,b){return void 0==b?a:Number(b)},Xu=function(a,b){return void 0==b?a:b.toString()},Zu=function(a){if(a&&(a=a.match(Yu))){var b=(0,window.parseFloat)(a[2]);
if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN},$u=function(a,b){var c=Hr.auto,d=Hr[b];
return d>Hr.medium?new xu(d,c,!1):d>=c?new xu(c,d,!1):a},av=function(a){return Ki("EXPERIMENT_FLAGS",{})[a]},bv=function(){this.b={apiaryHost:Ki("APIARY_HOST",void 0),
Bw:Ki("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:Ki("GAPI_HINT_OVERRIDE"),gapiHintParams:Ki("GAPI_HINT_PARAMS",void 0),innertubeApiKey:Ki("INNERTUBE_API_KEY",void 0),innertubeApiVersion:Ki("INNERTUBE_API_VERSION",void 0),Tl:Ki("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:Ki("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Vl:Ki("INNERTUBE_CONTEXT_HL",void 0),Ul:Ki("INNERTUBE_CONTEXT_GL",void 0),HE:Ki("XHR_APIARY_HOST",void 0)}},cv=function(){},jv=function(){O(dv);
if(!cc(ev)){for(var a in ev){var b=fv[a];if(!b){b=gv[a];if(!b)continue;b=new b;fv[a]=b}var c=b.b,c={client:{hl:c.Vl,gl:c.Ul,clientName:c.Tl,clientVersion:c.innertubeContextClientVersion}};Ki("DELEGATED_SESSION_ID")&&(c.user={onBehalfOfUser:Ki("DELEGATED_SESSION_ID")});c={context:c};c.requestTimeMs=Math.round(Bt());c[hv[a]]=ev[a];var d={};Tj("//"+b.b.HE+("/youtubei/"+b.b.innertubeApiVersion+"/"+a)+"?alt=json&key="+b.b.innertubeApiKey,{headers:{"Content-Type":"application/json","X-Goog-Visitor-Id":Ki("VISITOR_DATA")},
Hb:c,rr:"JSON",wc:d.wc,ab:d.ab,onError:d.onError,timeout:d.timeout});delete ev[a]}cc(ev)||iv()}},iv=function(){O(dv);
dv=Mi(jv,Ki("VISIBILITY_TIMEOUT",1E4))},kv=function(a,b,c){var d={};
d.eventTimeMs=Math.round(c||Bt());d[a]=b;ev.log_event=ev.log_event||[];a=ev.log_event;a.push(d);gv.log_event=bv;20<=a.length?jv():iv()},lv=function(){return!!q("yt.scheduler.instance")},mv=function(a,b){(0,window.isNaN)(b)&&(b=void 0);
var c=q("yt.scheduler.instance.addJob");return c?c(a,1,b):void 0===b?(a(),window.NaN):Mi(a,b||0)},nv=function(a){if(!(0,window.isNaN)(a)){var b=q("yt.scheduler.instance.cancelJob");
b?b(a):O(a)}},pv=function(){var a=q("yt.scheduler.instance.start");
a&&(O(ov),a())},qv=function(){var a=q("yt.scheduler.instance.pause");
a&&(a(),O(ov),ov=Mi(pv,800))},rv=function(a,b){this.version=a;
this.args=b},tv=function(a){if(!a.Ae){var b={};
a.call(b);a.Ae=b.version}return a.Ae},uv=function(a,b){function c(){a.apply(this,b.args)}
if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=tv(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}},vv=function(a,b){this.topic=a;
this.b=b},Bv=function(a,b){var c=wv,d=xv();
if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var m=function(){if(yv[e])try{if(k&&c instanceof vv&&c!=d)try{k=uv(c.b,k)}catch(l){throw l.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+l.message,l;}a.call(b||window,k)}catch(l){Pi(l)}};
zv[c.toString()]?lv()?mv(m,void 0):Mi(m,0):m()}});
yv[e]=!0;Av[c.toString()]||(Av[c.toString()]=[]);Av[c.toString()].push(e);return e},Dv=function(a,b){var c=Bv(function(d){a.apply(b,arguments);
Cv(c)},b);
return c},Cv=function(a){var b=xv();
b&&(ha(a)&&(a=[a]),E(a,function(a){b.unsubscribeByKey(a);delete yv[a]}))},xv=function(){return q("yt.pubsub2.instance_")},Gv=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new window.Uint8Array(16);
window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){for(var c=D(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=Ev)for(c=1,d=0;d<b.length;d++)a[c%16]=a[c%16]^a[(c-1)%16]/4^b.charCodeAt(d),c++;return a},Hv=function(){for(var a=Gv(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));
return b.join("")},Iv=function(){return zi(Gv(),function(a){return(a&15).toString(16)}).join("")},Jv=function(a){rv.call(this,1,arguments);
this.b=a},Qv=function(a,b,c){b||"_"==a[0]||Kv(a);
Lv(c)[a]=b||Bt();Mv(c)["tick_"+a]=b;if(av("csi_on_gel")){var d=Nv(c);"_start"==a?kv("latencyActionBaselined",{clientActionNonce:d},b):kv("latencyActionTicked",{tickName:a,clientActionNonce:d},b);a=!0}else a=!1;if(!(a||av("navigation_only_csi_reset")&&q("yt.timing.pingSent_")&&!c)&&(b=Ki("TIMING_ACTION",void 0),a=Lv(c),q("yt.timing.ready_")&&b&&a._start&&Ov(c))){b=!0;d=Ki("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&Pv(c)}},Rv=function(a,b){var c=
Lv(b);
return a in c},Vv=function(a,b,c){var d=Sv(c).info[a]=b;
Mv(c)["info_"+a]=d;av("csi_on_gel")&&(a in Tv?(b={},a=Tv[a],a in Uv&&(d=!!d),b[a]=d,c=Nv(c),b.clientActionNonce=c,kv("latencyActionInfo",b)):Pi(Error("Unknown label "+a+" logged with GEL CSI.")))},Ov=function(a){a=Lv(a);
if(a.aft)return a.aft;for(var b=Ki("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return window.NaN},Pv=function(a){var b=Lv(a),c=Sv(a).span,d=Sv(a).info,e=q("yt.timing.reportbuilder_");
if(e){if(e=e(b,c,d,a))Wv(e),Xv(a),Yv(),Zv(!1)}else{var f=Ki("CSI_SERVICE_NAME","youtube"),e={v:2,s:f,action:Ki("TIMING_ACTION",void 0)},k=d.srt;delete d.srt;void 0===b.srt&&(k||0===k||(k=$v.timing||{},k=Math.max(0,k.responseStart-k.navigationStart),(0,window.isNaN)(k)&&d.pt&&(k=d.pt)),k||0===k)&&(d.srt=Math.round(k));if(d.h5jse){var m=window.location.protocol+q("ytplayer.config.assets.js");(m=$v.getEntriesByName?$v.getEntriesByName(m)[0]:null)?d.h5jse=Math.round(d.h5jse-m.responseEnd):delete d.h5jse}b.aft=
Ov(a);var m=b._start,l=Lv(a),p=l.pbr,t=l.vc,l=l.pbs;p&&t&&l&&p<t&&t<l&&1==Sv(a).info.yt_vis&&"youtube"==f&&(Vv("yt_lt","hot_bg",a),f=b.vc,p=b.pbs,delete b.aft,d.aft=Math.round(p-f));for(var u in d)"_"!=u.charAt(0)&&(e[u]=d[u]);b.ps=Bt();d={};u=[];for(var x in b)"_"!=x.charAt(0)&&(f=Math.round(b[x]-m),av("enable_negative_ticks")||(f=Math.max(f,0)),d[x]=f,u.push(x+"."+f));e.rt=u.join(",");b=e;x=[];for(var B in c)"_"!=B.charAt(0)&&x.push(B+"."+Math.round(c[B]));b.it=x.join(",");(B=q("ytdebug.logTiming"))&&
B(e,d,c);av("navigation_only_csi_reset")||(Xv(a),Yv(),Zv(!1));Ki("EXP_DEFER_CSI_PING")?(aw(),ba("yt.timing.deferredPingArgs_",e,void 0),a=Mi(aw,0),ba("yt.timing.deferredPingTimer_",a,void 0)):Wv(e);a=new Jv(d.aft+(k||0));c=wv;(e=xv())&&e.publish.call(e,c.toString(),c,a)}},Wv=function(a){if(Ki("DEBUG_CSI_DATA")){var b=q("yt.timing.csiData");
b||(b=[],ba("yt.timing.csiData",b,void 0));b.push({page:window.location.href,time:new Date,args:a})}Ki("EXP_DEFER_CSI_PING")&&(O(q("yt.timing.deferredPingTimer_")),ba("yt.timing.deferredPingArgs_",null,void 0));var b="",c;for(c in a)b+="&"+c+"="+a[c];a="/csi_204?"+b.substring(1);if(window.navigator&&window.navigator.sendBeacon)try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||Wp(a,void 0)}catch(d){Wp(a,void 0)}else Wp(a);Zv(!0)},aw=function(a){if(Ki("EXP_DEFER_CSI_PING")){var b=
q("yt.timing.deferredPingArgs_");
b&&(a&&(b.yt_fss=a),Wv(b))}},Nv=function(a){var b=Sv(a).nonce;
b||(b=Hv(),Sv(a).nonce=b);return b},Lv=function(a){return Sv(a).tick},Mv=function(a){a=Sv(a);
"gel"in a||(a.gel={});return a.gel},Sv=function(a){return q("ytcsi."+(a||"")+"data_")||Xv(a)},Xv=function(a){var b={tick:{},
span:{},info:{}};ba("ytcsi."+(a||"")+"data_",b,void 0);return b},Zv=function(a){ba("yt.timing.pingSent_",a,void 0)},bw=function(a,b,c){this.errorCode=a;
this.b=b;this.details=c||{}},cw=function(a){var b,c;
for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""},dw=function(a){return(a=a.exec(qc))?a[1]:""},fu=function(a){return 0<=Ua(ew,a)},fw=function(){},gw=function(){this.buffered=new fw},hw=function(a,b){this.o=a;
this.b=!!b;this.A=!1;this.g={}},iw=function(a){return a.b?a.o:Qg(a.o,a.g)},jw=function(a,b){this.g=a;
this.A=b;this.o=0;Object.defineProperty(this,"timestampOffset",{get:this.CE,set:this.GE});Object.defineProperty(this,"buffered",{get:this.AE})},kw=function(){this.length=0},lw=function(a){this.activeSourceBuffers=this.sourceBuffers=[];
this.b=a;this.g=window.NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.BE,set:this.FE});Object.defineProperty(this,"readyState",{get:this.DE});this.b.addEventListener("webkitsourceclose",w(this.EE,this),!0)},mw=function(a,b,c,d,e){or.call(this);
this.g=this.b=null;this.o=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new lw(a);this.C=this.B=this.D=null;this.F=d;this.I=c;this.K=e;pr(this,this.A,["sourceopen","webkitsourceopen"],this.H);pr(this,this.A,["sourceclose","webkitsourceclose"],this.G)},nw=function(a,b){a.B=b},ow=function(a,b){a.C=b},pw=function(a){if(!a.D){var b;
b=a.A;b=b.MG?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.D=new hw(b,!0)}return a.D},qw=function(a){try{return"open"==a.A.readyState}catch(b){return!1}},rw=function(a){try{return"closed"==a.A.readyState}catch(b){return!0}},tw=function(a){return a.b.updating||a.g.updating},uw=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)},vw=function(a){return a.b?!!a.b.appendBuffer:uw()},ww=function(a){if(/opus/.test(a)&&(Xl&&!fu("38")||Sp()))return!1;
if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Qp())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Wt().canPlayType(a)},xw=function(a){this.Dc=a},yw=function(a,b,c){this.o=a;
this.g=b;this.B=c;this.A={};this.b=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null},Cw=function(a,b){if(2.2!=zw&&Zt(a.g))return[];
for(var c={},d=Wt(),e=0;e<b.length;e++){var f=b[e];if(zr(f.Dc)in Aw||"5"==zr(f.Dc)?0:Bw(d,f.Dc.mimeType)){var k=f.Dc.video.quality;c[k]&&2!=c[k].Dc.g||(c[k]=f)}}var m=[];c.auto&&m.push(c.auto);E(Gr,function(a){(f=c[a])&&m.push(f)});
return m},Bw=function(a,b){var c=a.canPlayType(b);
Dw?c=c||Ew[b]:2.2==zw?c=c||Fw[b]:Np()&&(c=c||Gw[b]);return!!c},Iw=function(){return!(!Bw(Wt(),"application/x-mpegURL")&&!Hw())},Hw=function(){var a=Np()&&!fu(29),b=Mp("google tv")&&Mp("chrome")&&!fu(30);
return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)},Rw=function(a,b){var c={},d;
for(d in b.b){var e=b.b[d],f;if(f="304"!=zr(e.info)||b.A)a:{f=a;var k=e.info;if("0"!=zr(k)||f.g){var m=k.mimeType,l={};k.video&&(k.video.width&&(l[Jw.name]=k.video.width),k.video.height&&(l[Kw.name]=k.video.height),k.video.fps&&(l[Lw.name]=k.video.fps),k.video.b&&(l[Mw.name]=k.video.b),k.b&&(l[Nw.name]=8*k.b));k.audio&&k.audio.b&&(l[Ow.name]=k.audio.b);k=l;l=void 0;for(l in Pw){var p=Pw[l];if(k[p.name]&&Qw(f,p))if(f.b){if(f.b[p.name]<k[p.name]){f=!1;break a}}else m=m+"; "+p.name+"="+k[p.name]}f=ww(m)}else f=
!0}f&&(c[e.info.A]=c[e.info.A]||[],c[e.info.A].push(e.info))}return c},Sw=function(a,b,c){var d={},e;
Pb(b,function(a,b){var m=a.filter(function(a){return a.He?c&&a.He[c.b]&&c.o[a.mimeType]?"261"==zr(a)?(e||(e=Wt()),!1):!0:!1:!0},this);
m.length&&(d[b]=m)},a);
return d},bx=function(a,b,c,d){function e(a){return!!f[a]}
var f=Rw(a,b);Dt(b)&&(f=Sw(a,f,c));c=Tw;a.g?!Mp("windows nt 5.1")||hu&&!a.o.$("html5_prefer_h264_on_xp")||(c=Uw):c=Vw;b=Ww;d&&(a.g&&(c=Uw),b=Xw);a.o.$("html5_enable_aac_51_clear")&&(b=Yw);d=fb(c,e);b=fb(b,e);if(!d||!b)return null;if("9"==d&&f.h){c=function(a,b){return Math.max(a,b.video.height)};
var k=Xe(f["9"],c,0);Xe(f.h,c,0)>1.5*k&&(d="h")}c=f[d];k=f[b];c=Zw(a,c);$w(c,k);return new Eu(c,k,ax(a,f,d,b))},ax=function(a,b,c,d){var e=b.h;
b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=Zw(a,e),$w(e,b),new Eu(e,b)):null},$w=function(a,b){Cb(a,function(a,b){return b.video.width-a.video.width||b.b-a.b});
Cb(b,function(a,b){return b.b-a.b})},Zw=function(a,b){var c=Ph(b,function(a){return 32<a.video.fps});
c&&(b=a.B||Qw(a,Lw)?ge(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):ge(b,function(a){return!(32<a.video.fps)}));
c&&Pp()&&(b=ge(b,function(a){return"299"!=zr(a)}));
return b},Qw=function(a,b){if(!(b.name in a.A)){var c=a.A,d=b.name,e;
a.b?e=!!a.b[b.name]:(b.video?(e='video/webm; codecs="vp9"',ww(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',ww(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=ww(e+"; "+b.name+"="+b.valid)&&!ww(e+"; "+b.name+"="+b.$f));c[d]=e}return a.A[b.name]},cx=function(a,b){this.g=a;
this.b=b;this.A=0},dx=function(a){for(var b=[],c=[],d=0,e=a.b.length;d<e;++d){var f=a.b[d];
f.bitrate<=a.A?b.push(f):c.push(f)}b.sort(function(a,b){return b.bitrate-a.bitrate});
c.sort(function(a,b){return a.bitrate-b.bitrate});
a.b=b.concat(c)},ex=function(a,b,c,d,e,f,k,m,l){this.itag=a;
this.url=b;this.Go=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=m||null;this.b=l||""},fx=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e;
e=a[c];var f=e.type.match(/codecs="([^"]*)"/);e=new ex(e.itag,e.url,f?f[1]:"",+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families);b[e.itag]=e}return b},gx=function(a,b){this.Dc=a;
this.A=b;this.b=null},hx=function(a,b,c,d,e,f,k,m,l){var p=new xr;
d=new Ir(d,e,f,null,void 0,k);c=new Ar(c,"application/x-mpegURL",p,d,void 0,l);a=new cx(a,b);a.A=m?m:1369843;return new gx(c,a)},ix=function(a,b,c){if(!Dw&&!Rp())return[];
b=fx(b);if(!b)return[];var d={DO:"https://youtube.com/api/drm/fps?ek=uninitialized"},e,f=[],k=[],m=[],l;for(l in b){var p=b[l];if(p.width){var t=b[p.audioItag];t&&(f.push(p),e="fairplay"==p.b?d:null,m.push(hx([t],[p],p.itag,p.width,p.height,p.fps,void 0,void 0,e)))}else k.push(p)}e=m.reduce(function(a,b){return!!b.Dc.He&&a},!0)?d:null;
m.push(hx(k,f,"93",0,0,0,"auto",c,e));return Cw(a.F,m)},jx=function(a,b){this.Dc=a;
this.b=b},kx=function(a,b,c,d,e,f,k,m){var l=new xr;
c in Hr||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=Hr[c],e=Math.round(16*f/9));c=new Ir(e,f,0,null,void 0,c,k,void 0,void 0,m);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new jx(new Ar(d,b,l,c),a)},lx=function(a){var b=[];
E(a,function(a){a.url&&b.push(kx(a.url,a.type,"medium","0"))});
return b},mx=function(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d];
if(e.sig||e.s){var f=e.sig||ur(e.s);e.url=Jj(e.url,{signature:f})}e.url&&c.push(kx(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isAccelerated,!!e.isAcceleratedUiEnabled))}return Cw(a.F,c)},ox=function(a){kk.call(this);
this.Re=new bf(0,0);this.Ua=this.M=this.U=!1;this.hd="";this.Ub=this.yb=!1;this.ib={};this.Xd="";this.captionTracks=[];this.Aa=[];this.Bb=0;this.captionTranslationLanguages=[];this.wa=!1;this.ba=new wu("und",new Fr("Default","und",!0));this.Fa=0;this.Qe=this.Oe=!1;this.F=null;this.J=[];this.Mc=!1;this.$a=null;this.Pe=new be(this.Hr,5E3,this);G(this,this.Pe);this.G=[];this.o={};this.keywords={};this.B={};nx(this,a)},tx=function(a,b){var c=b||{};
c.iv_invideo_url&&(a.yf=Lp(c.iv_invideo_url));c.iv_ads_only&&(a.no="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.qb=c.cta_conversion_urls);a.isPharma=Uu(a.isPharma,c.is_pharma);a.author=Xu(a.author,c.author);a.mi=Uu(a.mi,c.cc_asr);var d=c.ttsurl;px.test(d)?a.ni=d:d&&(d=Kp(d),px.test(d)&&(a.ni=d));c.caption_tracks&&c.caption_audio_tracks&&(qx(a,c.caption_tracks),a.Aa=Gj(c.caption_audio_tracks),c.default_audio_track_index&&(a.Bb=(0,window.parseInt)(c.default_audio_track_index,10)||0),c.caption_translation_languages&&
rx(a,c.caption_translation_languages));a.wa=Uu(a.wa,c.cc_contribute);a.clientPlaybackNonce=Xu(a.clientPlaybackNonce,c.cpn);a.subscribed=Xu(a.subscribed,c.subscribed);a.shortViewCount=Xu(a.shortViewCount,c.short_view_count_text);a.title=Xu(a.title,c.title);a.ypcPreview=Xu(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Xu(a.ypcOrigin,c.ypc_origin);a.paygated=Uu(a.paygated,c.paygated);a.requiresPurchase=Uu(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=sx(c.keywords));c.rvs&&(a.H=Gj(c.rvs));
a.contentCheckOk=Uu(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=Uu(a.racyCheckOk,"1"==c.rco);a.oauthToken=Xu(a.oauthToken,c.oauth_token);a.visitorData=Xu(a.visitorData,c.visitor_data);c.session_data&&(a.za=Dj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.jc=Dj(c.endscreen_autoplay_session_data,"&"));a.gb=Xu(a.gb,c.tracking_list||c.tv_list);E(ox.o,function(a){a in c&&(this.o[a]=c[a])},a)},nx=function(a,b){var c=b||{};
a.Zd="1"!=c.hlsdvr?!1:Hw()?!0:ux&&5>vx?!1:!0;a.Jg=c.ad_query_id;a.lk=c.agcid;a.hi="1"==c.infringe||"1"==c.muted;a.ub=c.authkey;a.Eb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||Hv());a.uz=1E3*Wu(D()/1E3,c.timestamp);a.Tk=Uu(a.Tk,c.cenchd);a.enableCardio=Uu(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=Uu(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.Ff=Wu(a.Ff,c.end||c.endSeconds);a.ia=Xu(a.ia,c.itct);a.Yl=Uu(a.Yl,c.noiba);a.ag="1"==c.livemonitor;
a.sa="1"==c.live_playback||!!c.fresca_preroll;a.isLiveDefaultBroadcast="1"==c.live_default_broadcast;a.isLowLatencyLiveStream="1"==c.is_low_latency_live_stream;a.isMdxPlayback=Uu(a.isMdxPlayback,c.mdx);a.Ti=Uu(a.Ti,c.reload);a.bm=Uu(a.bm,c.utpsa);a.Ib=c.cyc;for(var d in ox.b){var e=c[d+"_webp"]||c[d];wx.test(e)&&(a.ib[ox.b[d]]=e)}d=c.murlmq_webp;wx.test(d)&&(a.Xd=d);a.I=Xu(a.I,c.vvt);a.vu=c.osig;a.Yd=c.ptchn;a.Ke=c.oid;a.Y=c.ptk;a.Le=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.osid=c.osid;
a.videoMetadata=c.vm;a.Oz=c.of;a.playlistId=Xu(a.playlistId,c.list);a.Me=c.pyv_view_beacon_url;a.Hw=c.pyv_quartile25_beacon_url;a.mx=c.pyv_quartile50_beacon_url;a.xx=c.pyv_quartile75_beacon_url;a.vw=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Ve=c.sdetail;!a.Za&&c.session_data&&(a.Za=Dj(c.session_data,"&").feature);a.isFling=1==Wu(a.isFling?1:0,c.is_fling);a.vnd=Wu(a.vnd,c.vnd);a.Ca=Xu(a.Ca,
c.force_ads_url);a.Z=Xu(a.Z,c.ctrl);a.ca=Xu(a.ca,c.ytr);a.ga=c.ytrcc;a.Ne=c.ytrexp;a.th=$u(a.th,c.vq);a.yh=$u(a.yh,c.suggestedQuality);a.aa=c.approx_threed_layout||0;a.xf=Uu(a.xf,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=Xu(a.vssCredentialsToken,c.vss_credentials_token);a.Xm=Xu(a.Xm,c.vss_credentials_token_type);xx(a,c.watermark);a.ypcGid=Xu(a.ypcGid,c.ypc_gid);a.heartbeatToken=Xu(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=Wu(a.heartbeatInterval,
c.heartbeat_interval);a.heartbeatRetries=Wu(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=Uu(a.heartbeatSoftFail,c.heartbeat_soft_fail);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.G.push("ad")):"1"!=c.supported_without_ads&&(a.pp=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ea=c.atc);c.license_info&&(a.Hj=yx(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==
c.backgroundable);c.autonav&&(a.Si="1"==c.autonav);c.autoplay&&(a.Zc="1"==c.autoplay);c.iv_load_policy&&(a.ra=Vu(a.ra,c.iv_load_policy,zx));c.cc_lang_pref&&(a.Te=Xu(c.cc_lang_pref,a.Te));c.cc_load_policy&&(a.Ue=Vu(a.Ue,c.cc_load_policy,zx));c.channel_path&&(a.oi=Xu(c.channel_path,a.oi));"0"==c.dash&&(a.Ho=!0);c.dashmpd&&(a.D=Qg(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.D))&&(e=ur(e[1]),a.D=a.D.replace(d,"/signature/"+e));c.delay&&(a.qf=Ya(c.delay));c.drm_session_id&&
(a.drmSessionId=c.drm_session_id);void 0!=c.end&&(a.clipEnd=c.end);c.fair_play_cert&&window.atob&&(a.fairPlayCert=(0,window.atob)(c.fair_play_cert));c.featured&&(a.Sp="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.G.push("fresca");c.idpj&&(a.Jj=Ya(c.idpj));c.ismb&&(a.Gh=Ya(c.ismb));c.is_episodic&&(a.Wl="1"==c.is_episodic);c.is_listed&&(a.isListed=Uu(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.xg=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);
c.hlsvp&&(a.hlsvp=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Ya(c.length_seconds));c.live_chunk_readahead&&(a.Qk=Wu(a.Qk,c.live_chunk_readahead));c.live_start_walltime&&(a.liveStartWalltime=Ya(c.live_start_walltime));c.live_manifest_duration&&(a.gm=Ya(c.live_manifest_duration));c.ldpj&&(a.kn=Ya(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.gi=a.perceptualLoudnessDb?Math.pow(10,Math.min(-21-a.perceptualLoudnessDb,0)/20):ox.g);c.partnerid&&(a.P=Ya(c.partnerid));c.probe_url&&(a.probeUrl=
Lp(Qg(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Xu(c.profile_picture,a.profilePicture));c.pyv_billable_url&&Ax.test(c.pyv_billable_url)&&(a.ma=c.pyv_billable_url);c.pyv_conv_url&&Ax.test(c.pyv_conv_url)&&(a.ka=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Ja=d.quartile_0_url,a.Ud=d.quartile_25_url,a.Vd=d.quartile_50_url,a.Wd=d.quartile_75_url,a.Ad=d.quartile_100_url);"1"==c.spacecast_module&&(a.G.push("spacecast"),a.spacecastModule=
!0);c.spacecast_addrs&&(a.$a=c.spacecast_addrs.split(","),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=Wu(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||a.sa||(a.clipStart=c.start);c.two_stage_token&&(a.Kj=c.two_stage_token);c.url_encoded_third_party_media&&(a.mf=Gj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.G.push("ypc");c.ypc_clickwrap_module&&a.G.push("ypc_clickwrap");a.rz=Xu(a.rz,c.ucid);E("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),
function(a){c[a]&&(this.B[a]=c[a])},a);
a.B.focEnabled=Uu(a.B.focEnabled,c.focEnabled);a.B.rmktEnabled=Uu(a.B.rmktEnabled,c.rmktEnabled);a.o=c;tx(a,c);Bx(a);c.adpings&&(a.Se=c.adpings?Fj(c.adpings):null);c.feature&&(a.wf=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q);c.multifeed_metadata_list&&(a.J=Gj(c.multifeed_metadata_list))},Cx=function(a){return D()>a.uz+18E6},Dx=function(a){return!(!a.g||!a.g.videoInfos.length)},Bx=function(a){Ex(a)||(a.adaptiveFormats&&!a.sa?(a.b=Gt(Fx(a,a.adaptiveFormats),a.Hj,a.lengthSeconds),
G(a,a.b),Dt(a.b)&&(a.M=!0)):a.D&&(a.U=!0))},Gx=function(a){return a.g&&ww('video/webm; codecs="vp9"')&&Sb(a.b,function(a){return Br(a.info)})},Ex=function(a){return!Hw()||a.Ho?!0:!1},Hx=function(a){a.isDisposed()||(a.oe=!1,a.R("dataloaded",a.o))},Kx=function(a,b){if(!a.isDisposed()){a.g=null;
a.ig=null;a.K=null;var c=Ex(a)||b.$l;if(!c&&a.spacecastAdaptiveFormats)a.b=Gt(Fx(a,a.spacecastAdaptiveFormats),a.Hj,a.lengthSeconds),G(a,a.b),a.g=bx(b.F,a.b,a.F,!0);else if(a.spacecastFormatMap){var d=Fx(a,a.spacecastFormatMap);a.K=mx(b,d);a.g=new Eu(zi(a.K,function(a){return a.Dc}))}a.g&&(d=Xe(a.g.videoInfos,function(a,b){return b.video.isAccelerated&&(!a||a.height<b.video.height)?b.video:a},null))&&(d=yu(d.quality,d.quality,!0),a.th=d,a.yh=d);
a.g||c||!a.b||(b.B||Vt(a.b,a.sa),a.g=bx(b.F,a.b,a.F));a.g||(a.K=Ix(a,b),a.K.length&&(a.g=new Eu(zi(a.K,function(a){return a.Dc}))));
Jx(a)}},Ix=function(a,b){if(a.hlsFormats){var c=Fx(a,a.hlsFormats),c=ix(b,c,a.Gh);
if(c.length)return c}if(a.mf&&a.Yp)return c=lx(a.mf),Cw(b.F,c);c=Fx(a,a.xg,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.Gh,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:Qg(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return mx(b,c)},Lx=function(a){return a.A&&a.A.He||null},Mx=function(a){a.Lj||(a.o.storyboard_spec?a.Lj=new Ru(a.o.storyboard_spec,a.lengthSeconds):a.o.live_storyboard_spec&&a.b&&(a.Lj=new Tu(a.o.live_storyboard_spec,
a.b)));
return a.Lj},Nx=function(a){return a.b&&!(0,window.isNaN)(Pt(a.b))?Pt(a.b):0},Ox=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.mf)},Px=function(a){return!!(a.D||a.adaptiveFormats||a.xg||a.mf||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)},Qx=function(a){var b=kb(a.G,"ypc");
a.ypcPreview&&(b=!1);return Ox(a)&&!a.oe&&(Px(a)||kb(a.G,"fresca")||b)},Rx=function(a){return Qx(a)&&!a.U&&!a.M},Fx=function(a,b,c){b=Gj(b);
var d={};c&&E(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
E(b,function(a){a.url&&(a.url=Qg(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b},sx=function(a){var b={};
E(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});
return b},xx=function(a,b){if(b){var c=b.split(",");
2<=c.length&&(a.Pa=c[1],wx.test(a.Pa)&&-1==a.Pa.search(ox.B)||(a.Pa=""))}},yx=function(a){a=Gj(a);
var b={};E(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b},qx=function(a,b){for(var c=Gj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;
px.test(f)&&(f={is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k},"asr"!=e.k&&(f.format=3),a.captionTracks.push(new ru(f)))}},rx=function(a,b){for(var c=Gj(b),d=0;d<c.length;d++){var e=c[d];
a.captionTranslationLanguages.push(new qu({languageCode:e.lc,languageName:e.n}))}},Jx=function(a){for(var b=a.g?a.g.audioTracks:[],b=b.concat(a.ba),c=0;c<a.Aa.length;c++)for(var d=a.Aa[c],e=0;e<b.length;e++){var f=b[e],k=f.Lb.id==d.aid;
if(f==a.ba&&c==a.Bb||k){if(d.i)for(var k=d.i.split(","),m=0;m<k.length;m++)f.captionTracks[m]=a.captionTracks[(0,window.parseInt)(k[m],10)];d.d&&(f.Rk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.Bi=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.uo=(0,window.parseInt)(d.v,10)}}},Sx=function(a,b){return!!a.o[b]},Tx=function(a){return a.sa&&!a.Zd},Ux=function(a){return a.sa&&a.Zd},Vx=function(a){if(a.aa||a.od["3D"])return!0;
a=a.od("yt3d:enable");return"true"==a||"LR"==a||"RL"==a},Wx=function(a,b){(0,window.isNaN)(a.kf)&&(a.kf=a.Qk,a.ag&&a.kf--,a.b&&5<=Qt(a.b)&&b.$("html5_live_disable_dg_pacing")&&a.kf++,a.kf=Math.max(0,a.kf));
return a.kf},Xx=function(a){if(!a.b)return!1;
for(var b in a.b.b){var c=a.b.b[b].info.video;if(c&&3==c.projectionType||c&&2==c.projectionType&&3==a.aa)return!0}return!1},cy=function(a){kk.call(this);
this.startSeconds=0;this.I=!1;this.b=0;this.title="";this.A=0;this.g=[];this.F=this.C=!1;this.za=this.jc=this.D=null;this.views=0;this.M=0!=a.fetch;this.o=[];this.b=Math.max(0,a.index||0);this.H=!!a.loop;this.startSeconds=a.startSeconds||0;this.P="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.K={};a.video_id&&(this.g[this.b]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);
this.G=0;if(a.list)switch(a.listType){case "user_uploads":Yx(this,a.list);break;case "user_favorites":Zx(this,a.list);break;case "search":$x(this,a.list);break;default:a.playlist_length&&(this.A=a.playlist_length),this.B=sr(a.list),a.video?(this.g=a.video.slice(0),this.C=!0):ay(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.b&&(this.g=[]);E(b,function(a){a&&this.g.push({video_id:a})},this);
this.A=this.g.length;b=zi(this.g,function(a){return a.video_id});
by(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.C=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in ox.b)b="playlist_"+c,b=a[b+"_webp"]||a[b],wx.test(b)&&(this.K[ox.b[c]]=b);this.J=a.thumbnail_ids?a.thumbnail_ids.split(","):[]},dy=function(a){return!!(a.playlist||a.list||a.api)},ey=function(a){var b=a.b+1;
return b>=a.A?0:b},fy=function(a){var b=a.b-1;
return 0>b?a.A-1:b},gy=function(a,b){a.b=Ve(b,0,a.A-1);
a.startSeconds=0},Yx=function(a,b){a.F||(a.B=new rr("UU","PLAYER_"+b),by(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))},Zx=function(a,b){a.F||(a.B=new rr("FL","PLAYER_"+b),by(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))},$x=function(a,b){if(!a.F){a.B=new rr("SR",b);
var c={search_query:b};a.P&&(c.mob="1");by(a,"/search_ajax?style=json&embeddable=1",c)}},ay=function(a){if(!a.F){var b={list:a.B},c=a.vb();
c&&c.videoId&&(b.v=c.videoId);by(a,"/list_ajax?style=json&action_get_list=1",b)}},by=function(a,b,c){a.M&&Sj(Qg(b,c),{format:"JSON",
ab:function(a,b){hy(this,b)},
onError:function(){this.R("error")},
context:a})},hy=function(a,b){if(b.video&&b.video.length){a.title=b.title;
a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.H=b.loop);var c=a.vb();a.g=[];E(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.g.push(a))},a);
a.A=a.g.length;b.index?a.b=b.index:iy(a,c);a.setShuffle(!1);a.F=!1;a.C=!0;a.G++;a.D&&a.D()}},iy=function(a,b){if(b){var c=b.videoId;
if(!a.g[a.b]||a.g[a.b].video_id!=c)for(var d=0;d<a.g.length;d++)if(a.g[d].video_id==c){a.b=d;break}}},jy=function(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60),b=Math.floor(b%60),f="";
0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f},ky=function(a){return(!ha(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey},ly=function(a){return dy(a)?(a.fetch=0,new cy(a)):new ox(a)},my=function(a,b,c,d){var e=b.vb();
K(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Bg();d=b.oc(c,d?d:"mqdefault.jpg");var k=b instanceof ox?jy(b.lengthSeconds):null,m=!!f,f=m&&"RD"==sr(f).type;c={title:b.title,author:b.author,author_and_views:e.shortViewCount?b.author+" \u2022 "+e.shortViewCount:b.author,watch:P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.ol(c),episodic_title:b.title,is_episodic:e.Wl,is_featured:e.Sp,is_list:m,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof cy&&
(c.playlist_length=b.A,c.episodic_length=b.A,c.episodic_index=b.Pb());a.update(c)},ny=function(a){var b=T(a).experiments.$("moving_thumbnails_autonav"),c=["img",
"ytp-upnext-moving-thumbnail",{src:"{{moving_thumbnail}}"}],c=["div","ytp-upnext",{"aria-label":"{{watch}}"},["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],b?c:null,["div","ytp-thumbnail-overlay-curtain"],["span","ytp-upnext-top",["span","ytp-upnext-header",P("YTP_PLAYLIST_UP_NEXT")],["span","ytp-upnext-title","{{title}}"],["span","ytp-upnext-author","{{author}}"]],["a","ytp-upnext-autoplay-icon",{href:"{{url}}"}],["span","ytp-upnext-bottom",["span","ytp-upnext-cancel"],["span","ytp-upnext-paused",
P("YTP_AUTOPLAY_PAUSED_2")]],["span","ytp-upnext-close"]];Q.call(this,c);var d=this.la["ytp-upnext-cancel"],c=this.la["ytp-upnext-close"],e=new Q(["button",["ytp-upnext-cancel-button","ytp-button"],{tabindex:0,"aria-label":P("YTP_AUTOPLAY_CANCEL")},P("YTP_CANCEL")]);G(this,e);e.N("click",this.xq,this);e.b(d);d=new Q(["button",["ytp-upnext-close-button","ytp-button"]]);G(this,d);d.N("click",this.xq,this);d.b(c);c=this.la["ytp-upnext-autoplay-icon"];sh(c,'<svg height="100%" version="1.1" viewBox="0 0 98 98" width="100%"><circle class="ytp-svg-autoplay-circle" cx="49" cy="49" fill="#000" fill-opacity="0.8" r="48" /><circle class="ytp-svg-autoplay-ring" cx="-49" cy="49" fill-opacity="0" r="46.5" stroke="#FFFFFF" stroke-dasharray="293" stroke-dashoffset="-293" stroke-width="4" transform="rotate(-90)" /><polygon class="ytp-svg-autoplay-triangle" fill="#fff" points="32,27 72,49 32,71" /></svg>');
this.o=a;this.I=lf("ytp-svg-autoplay-ring",this.element);this.F=this.D=this.B=this.C=null;this.G=new be(this.wi,5E3,this);G(this,this.G);this.H=0;this.S(c,"click",this.eC);this.uq();this.S(a,"autonavvisibility",this.uq);b&&this.S(this.la["ytp-upnext-moving-thumbnail"],"load",this.IH)},oy=function(a){a.B||($i("a11y-announce",P("YTP_PLAYLIST_UP_NEXT")+" "+a.C.title),a.H=Bt(),a.B=new be(a.wk,25,a),a.wk());
he(a.element,"ytp-upnext-autoplay-paused")},qy=function(a){py(a);
a.H=Bt();a.wk();J(a.element,"ytp-upnext-autoplay-paused")},py=function(a){a.B&&(a.B.dispose(),a.B=null)},ry=function(a){var b=window.location;
a=Qg(a,{})+"";a=a instanceof Ae?a:Ee(a);b.href=Be(a)},sy=function(a,b){var c=Ki("EVENT_ID");
c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=Ki("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Hg(window.location.href);e&&d.push(e);e=Hg(a);if(kb(d,e)||!e&&va(a,"/"))if(d=Fg(a),d=Dg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)){var e=Ki("ST_BASE36",!0),f;f=Ki("ST_SHORT",!0)?"ST-":"s_tempdata-";d=f=e?f+Va(d).toString(36):f+Va(d);e=c?Og(c):"";Gk.set(""+d,e,5,"/","youtube.com");c&&(c=c.itct||c.ved,d=q("yt.logging.screenreporter.storeParentElement"),c&&d&&d(new cv))}}},ty=function(a,
b){window.open(a,b||Va(a).toString(36))},uy=function(a){var b=!T(a).Ca&&3!=a.getPresentingPlayerType();
return a.Ia()||b},vy=function(a,b,c){if(!c&&ky(a))return om(a),!0;
b.pauseVideo();a=a.currentTarget.getAttribute("href");sy(a,null);return!1},zy=function(a,b,c){if(wy(T(b))&&2!=b.getPresentingPlayerType()){if(ky(c))return b.Ia()&&yy(b),om(c),!0}else{var d=ky(c);
d&&b.pauseVideo();sy(a,null);d&&(ty(a),om(c))}return!1},Ay=function(a){var b=T(a),c=b.experiments.$("video_wall_moving_thumbnails_first"),d=b.experiments.$("video_wall_moving_thumbnails_hover"),c=b.experiments.$("video_wall_moving_thumbnails_autoplay")||d||c,d=b.experiments.$("video_wall_redesign");
this.D=b.experiments.$("video_wall_tab_killswitch")?!b.K:b.C;this.G=-1;var b=d&&(Xl||Cc)?{style:"will-change: opacity"}:null,e=["img",["ytp-videowall-moving-thumbnail"],{src:"{{moving_thumbnail}}"}];Q.call(this,["a","videowall-still",{href:"{{url}}",target:this.D?"_blank":null,"aria-label":"{{watch}}","data-is-episodic":"{{is_episodic}}","data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},["div",d?"ytp-redesign-videowall-still-image":"videowall-still-image",
{style:"{{background}}"}],c?e:null,["span","videowall-still-featured-label",P("YTP_FEATURED")],["span",d?"ytp-redesign-videowall-still-info":"videowall-still-info",["span",d?"ytp-redesign-videowall-still-info-bg":"videowall-still-info-bg",["span",d?"ytp-redesign-videowall-still-info-content":"videowall-still-info-content",b,["span",d?"ytp-redesign-videowall-still-info-title":"videowall-still-info-title","{{title}}"],["span",d?"ytp-redesign-videowall-still-info-author":"videowall-still-info-author",
"{{author_and_views}}"],["span",d?"ytp-redesign-videowall-still-info-duration":"videowall-still-info-duration","{{duration}}"]]]],["div",["videowall-still-listlabel-episodic",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",P("YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"],
" / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],["span",["videowall-still-listlabel-regular",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],P("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],P("YTP_MIX"),
["span","videowall-still-listlabel-length"," (50+)"]]]);this.o=a;this.B=null;this.F=new be(this.bs,6E3,this);this.N("click",this.aG);this.N("keypress",this.bG);c&&this.S(this.la["ytp-videowall-moving-thumbnail"],"load",this.dG)},Cy=function(a){if(1E5<By(a.o.app.ga)){var b=a.B.jl();
b&&a.update({moving_thumbnail:b})}},Dy=function(a,b){Bq.call(this,a,"videowall-endscreen");
this.Y=b;this.H=0;this.D=[];this.G=this.F=this.C=null;this.K=this.P=!1;this.I=new or(this);G(this,this.I);this.M=new be(qa(J,this.element,"ytp-show-tiles"),0);G(this,this.M);var c=T(this.o).experiments.$("video_wall_pagination");if(c){var d=new Q(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":P("YTP_PREVIOUS")}]);G(this,d);sh(d.element,'<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path d="M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z" fill="#fff" /></svg>');
d.b(this.element);d.N("click",this.CA,this)}this.U=new rq(["div","ytp-endscreen-content"]);G(this,this.U);this.U.b(this.element);c&&(c=new Q(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":P("YTP_NEXT")}]),G(this,c),sh(c.element,'<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path d="m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z" fill="#fff" /></svg>'),c.b(this.element),c.N("click",this.BA,this));T(this.o).experiments.$("video_wall_redesign")&&J(this.element,
"ytp-endscreen-redesign");this.B=new ny(a);G(this,this.B);mr(this.o,this.B.element,4);this.da();this.N("transitionend",this.$C)},Fy=function(a){return Ey(a.o)&&a.ii()&&!a.G},Gy=function(a){return zi(a.H,function(a){return ly(a)})},Hy=function(a,b,c){return 0==b&&a.C.length&&(b=c/Dy.b,c/=Dy.b,3<=b&&3<=c&&a.C[0].vb().Wl||2<=b&&2<=c&&T(a.o).experiments.$("video_wall_moving_thumbnails_first"))?2*Dy.b:Dy.b},Jy=function(a){var b=Iy(a.Y);
b!=a.P&&(a.P=b,a.o.R("autonavvisibility"))},Ly=function(a){gq.call(this,a);
Ri({});this.Ea="endscreen";this.logEvent="end";this.g=null;var b=T(a);Ky(a)?this.g=new Dy(this.b,this):b.Z?this.g=new nr(this.b):this.g=new Bq(this.b);mr(this.b,this.g.element,4)},Ny=function(a){var b=a.getVideoData(),b=b&&b.sa,c=a.getPresentingPlayerType();
return My(T(a))&&2!=c&&3!=c&&!b},Py=function(a){var b=a.b.getVideoData(),c=!Ky(a.b)||!(!b.H||!b.H.length),b=Sx(b,"ypc_module");
a=Oy(a.b.app);return c&&!b&&!a},Ky=function(a){a=T(a);
return a.Mc&&!a.Z},Iy=function(a){return a.g instanceof Dy&&a.g.A&&Fy(a.g)},Qy=function(a){var b=Math.max(1E3*(a.b.getVideoData().lengthSeconds-10),0),b=new dq(b,0x8000000000000,{id:"preload"}),c=new dq(0x8000000000000,0x8000000000000,{id:"load",
priority:6});a.ob([b,c])},Ry=function(a){return Ny(a)?new Ly(a):null},Ty=function(a){return(a=Sy[a.toString()])?a:"YTP_ERROR_LICENSE"},Uy=function(){},Wy=function(a){a.src&&(Dw&&0<a.readyState&&(a.currentTime=Math.max(Vy,0)),a.removeAttribute("src"),a.load(),!a.b||!a.b.b||a.b&&a.b.Na(null)||(a.b&&a.b.dispose(),a.b=null))},Xy=function(a,b){this.g=a||64;
this.b=b||null},bz=function(a,b,c,d){if(U(a,128))return a;
var e=a.g,f=a.b,k=b.target;if(!U(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&k.b.ended||"ended"==b.type&&(k.b.ended||1>Math.abs(k.getCurrentTime()-k.b.duration)))0<k.b.networkState&&k.b.src&&(e=14,f=null);else if("pause"==b.type)U(a,256)?(e^=256)||(e=64):U(a,32)||U(a,2)||U(a,4)||(e=4,U(a,1)&&U(a,8)&&(e|=1),f=null);else if("playing"==b.type)e=8,f=null,U(a,32)&&(e|=32),d&&U(a,1)&&Yy(c,k)&&(e|=1);else if("error"==b.type){a:{if(2==k.fb())b="progressive.net";else if(3==k.fb())b="fmt.decode";
else if(4==k.fb())b="fmt.unplayable";else{b=null;break a}b={errorCode:b,errorDetail:"mediaElem.1",message:P("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(f=b,e|=128)}else if("progress"==b.type)Zy(a)&&Yy(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=$y(k)&&(e|=1),e&=-3;else if("waiting"==b.type)U(a,2)||(e|=1);else if("timeupdate"==b.type)U(a,16)||U(a,4)||(e=Yy(c,k)?e|1:e&-2),1<k.b.readyState&&0<k.getCurrentTime()&&(e&=-65);else return a;
return az(a,e,f)},Yy=function(a,b){return a?cz(a,b.getCurrentTime(),Bt(),$y(b)):!1},az=function(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new Xy(b,c)},dz=function(a,b){return az(a,a.g|b)},ez=function(a,b){return az(a,a.g&~b)},fz=function(a){return az(a,(a.g|4)&-9)},U=function(a,b){return!!(a.g&b)},Zy=function(a){return U(a,8)&&!U(a,2)},gz=function(a){return U(a,64)&&!U(a,8)&&!U(a,4)},hz=function(a){return U(a,1)&&!U(a,2)},iz=function(a){return U(a,128)?-1:U(a,2)?0:U(a,1)&&!U(a,32)?3:U(a,
64)?-1:U(a,8)?1:U(a,4)?2:-1},jz=function(a,b,c){kk.call(this);
this.C=b;this.b=7500+Math.floor(15E3*Math.random());this.D=c.innertubeApiKey;this.F=JSON.stringify({context:{client:{clientName:c.Tl,clientVersion:c.innertubeContextClientVersion,hl:c.Vl,gl:c.Ul}},videoId:a});this.G="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.g=new be(w(this.B,this));G(this,this.g);this.B()?this.g.start(this.b):this.g.start(1E4)},kz=function(a){Q.call(this,["a",
"ytp-fresca-suggested-central-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-promo-central",["div","ytp-fresca-suggested-header","{{suggested_header_central}}"],["div","ytp-fresca-suggested-central-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]);this.o=a;this.N("click",this.B,this)},lz=function(a){Q.call(this,
["div",
"ytp-fresca-suggested-promo-sidebar",["div","ytp-fresca-suggested-sidebar-title","{{suggested_sidebar_title}}"],["button",["ytp-button","ytp-fresca-suggested-sidebar-close-button"],"{{suggested_sidebar_close}}"],["div","ytp-fresca-suggested-sidebar-items","{{sidebar_items}}"]]);this.o=[];this.B=a;this.C=!1},pz=function(a,b){a.g("suggested_sidebar_title",b.g?P("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.g}):"");
var c=a.la["ytp-fresca-suggested-sidebar-close-button"];sh(c,yh());a.S(c,"click",a.zA);Ob(a.o);a.o=[];E(b.b,function(a,b){if(!(5<=b)&&a){var c=new Q(["a","ytp-fresca-suggested-sidebar-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-sidebar",["div","ytp-fresca-suggested-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]),
k="background-image:"+mz(a),m=nz(a);c.update({suggested_title:a.qt,suggested_content:oz(a),badge_content:m,image_style:k,link_destination:a.getVideoUrl()});k=c.la["ytp-fresca-suggested-image-badge"];K(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=m?"":"none";c.N("click",this.Mz,this);this.o.push(c)}},a);
a.g("sidebar_items",a.o)},qz=function(a){Q.call(this,["div",
"ytp-fresca-module",["div","ytp-fresca-slant",["div","ytp-fresca-slant-blur-image"],["div","ytp-fresca-slant-inner",["div","ytp-fresca-slant-overlay"],["div","ytp-fresca-slant-arrows"]]],["div","ytp-fresca-band-slate",["div","ytp-fresca-message",["h1","ytp-fresca-heading","{{heading}}"],["h2","ytp-fresca-byline","{{byline}}"],["h3","ytp-fresca-countdown","{{countdown}}"]]]]);this.H=a;this.D=0;this.o=null;this.F=-1;this.C=new kz(a);G(this,this.C);this.B=new lz(a);G(this,this.B);this.C.da();this.C.b(this.element);
this.B.da();this.B.b(this.element)},vz=function(a,b,c){if(!a.o||a.o.state!=b.state||a.o.startTime!=b.startTime||a.o.imageUrl!=b.imageUrl||a.o.messageText.join()!=b.messageText.join()||c)if(a.o=b,b=rz(b),K(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.o.imageUrl,b=a.la["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=sz(a.o),a.update({heading:b[0]||"",
byline:b[1]||"",countdown:b[2]||""}),a.G(!0),a.o.g&&!tz(a.H))if(uz(a.o.g)&&!rz(a.o)){b=a.C;c=a.o.g.b[0];var d;d=a.o.g;d=d.g?P("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.g}):"";var e="background-image:"+mz(c);b.update({suggested_header_central:d,suggested_title:c.qt,suggested_content:oz(c),badge_content:nz(c),link_destination:c.getVideoUrl(),image_style:e});K(b.la["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.C.show();a.B.da()}else b=a.o.g,!(0<b.b.length)||
uz(b)||rz(a.o)||a.B.C?a.B.da():(pz(a.B,a.o.g),a.B.show()),a.C.da();else a.C.da(),a.B.da()},wz=function(a){var b=Math.floor(D()/1E3);
if(b>a)return"";a-=b;return 86400>a?jy(a):259200>a?P("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})},xz=function(a,b,c,d,e,f){v(a)?(this.C="y"==a?b:0,this.B="m"==a?b:0,this.b="d"==a?b:0,this.g="h"==a?b:0,this.A="n"==a?b:0,this.o="s"==a?b:0):(this.C=a||0,this.B=b||0,this.b=c||0,this.g=d||0,this.A=e||0,this.o=f||0)},Az=function(a,b,c){ha(a)?(this.date=yz(a,b||0,c||1),zz(this,c||1)):ka(a)?(this.date=yz(a.getFullYear(),a.getMonth(),a.getDate()),
zz(this,a.getDate())):(this.date=new Date(D()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),zz(this,a))},yz=function(a,b,c){b=new Date(a,b,c);
0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b},zz=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))},Bz=function(){},Dz=function(a){if("number"==typeof a){var b=new Bz;
b.A=a;var c;c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",Pa(c,2));c=d.join("")}b.o=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Cz(a);b.B=[c,c];b.b={lN:a,$n:a};b.g=[];return b}b=new Bz;b.o=a.id;b.A=-a.std_offset;b.B=a.names;b.b=a.names_ext;b.g=a.transitions;return b},Cz=function(a){var b=["GMT"];
b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Pa(Math.floor(a/60)%100,2),":",Pa(a%60,2));return b.join("")},Ez=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.g.length&&c>=a.g[d];)d+=2;
return 0==d?0:a.g[d-1]},Iz=function(a,b){this.g=[];
this.b=b||Fz;"number"==typeof a?Gz(this,a):Hz(this,a)},Jz=function(a){return a.getHours?a.getHours():0},Hz=function(a,b){for(Kz&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<Lz.length;++c){var d=b.match(Lz[c]);
if(d){d=d[0];b=b.substring(d.length);0==c&&("''"==d?d="'":(d=d.substring(1,d.length-1),d=d.replace(/\'\'/,"'")));a.g.push({text:d,type:c});break}}},Gz=function(a,b){var c;
if(4>b)c=a.b.fk[b];else if(8>b)c=a.b.bo[b-4];else if(12>b)c=a.b.Vu[b-8],c=c.replace("{1}",a.b.fk[b-8]),c=c.replace("{0}",a.b.bo[b-8]);else{Gz(a,10);return}Hz(a,c)},Mz=function(a,b){var c;
c=String(b);var d=a.b||Fz;if(void 0!==d.uw){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.uw+k-48):c.charAt(f))}c=e.join("")}return c},Nz=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");
},Oz=function(a,b,c,d,e,f){var k=b.length;
switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=k?a.b.Zu[c]:a.b.$u[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),Mz(a,Pa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.b.Kv[c];break a;case 4:k=a.b.Pn[c];break a;case 3:k=a.b.Sn[c];break a;default:k=Mz(a,Pa(c+1,k))}return k;case "k":return Nz(e),Mz(a,Pa(Jz(e)||24,k));case "S":return Mz(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Pa(0,k-3):""));case "E":return c=d.getDay(),4<=k?a.b.fo[c]:a.b.Tn[c];
case "a":return Nz(e),k=Jz(e),a.b.Fn[12<=k&&24>k?1:0];case "h":return Nz(e),Mz(a,Pa(Jz(e)%12||12,k));case "K":return Nz(e),Mz(a,Pa(Jz(e)%12,k));case "H":return Nz(e),Mz(a,Pa(Jz(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.b.ew[c];break a;case 4:k=a.b.Yn[c];break a;case 3:k=a.b.Xn[c];break a;default:k=Mz(a,Pa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.b.dw[c];break a;case 4:k=a.b.Vn[c];break a;case 3:k=a.b.Wn[c];break a;default:k=Mz(a,Pa(c+1,k))}return k;case "Q":return c=
Math.floor(d.getMonth()/3),4>k?a.b.Yv[c]:a.b.Rv[c];case "d":return Mz(a,Pa(d.getDate(),k));case "m":return Nz(e),Mz(a,Pa(e.getMinutes(),k));case "s":return Nz(e),Mz(a,Pa(e.getSeconds(),k));case "v":return k=f||Dz(c.getTimezoneOffset()),k.o;case "V":return a=f||Dz(c.getTimezoneOffset()),2>=k?a.o:0<Ez(a,c)?n(a.b.Yu)?a.b.Yu:a.b.DST_GENERIC_LOCATION:n(a.b.$n)?a.b.$n:a.b.STD_GENERIC_LOCATION;case "w":return c=a.b.ik,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),b=a.b.hk||0,c=e.valueOf()+864E5*(((n(c)?
c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),Mz(a,Pa(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||Dz(c.getTimezoneOffset()),4>k?a.B[0<Ez(a,c)?2:0]:a.B[0<Ez(a,c)?3:1];case "Z":return e=f||Dz(c.getTimezoneOffset()),4>k?(k=-(e.A-Ez(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Pa(Math.floor(k/60)%100,2),Pa(k%60,2)),k=a.join("")):k=Mz(a,Cz(e.A-Ez(e,c))),k;default:return""}},Pz=function(a){this.B=a.thumbnailUrl?a.thumbnailUrl:null;
this.b=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.qt=a.title;this.g=a.state;this.A=a.currentViewers?(0,window.parseInt)(a.currentViewers,10):null;this.C=a.videoUrl;this.o=a.durationSecs?(0,window.parseInt)(a.durationSecs,10):null},mz=function(a){return(a=a.B)?"url("+a+")":""},oz=function(a){if("COMPLETE"==a.g){var b=Math.floor(D()/1E3);
a=a.b?b-a.b:0;return 172800<a?P("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(D()/1E3),a=a.b?a.b-b:0,172800<a?P("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_STREAMING_SOON")):a.A&&2<a.A?P("YTP_FRESCA_VIEWERS_WATCHING_NOW",{VIEWER_COUNT:a.A}):P("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")},
nz=function(a){return"COMPLETE"==a.g&&a.o?jy(a.o):a.isLive()?P("YTP_FRESCA_LIVE_BADGE"):null},Qz=function(a){this.g=a.channelName?a.channelName:"";
this.b=[];if(a=a.suggestedEvents)for(var b=0;b<a.length;b++)this.b.push(new Pz(a[b]))},uz=function(a){return 1==a.b.length&&a.b[0].isLive()},Sz=function(a,b){this.state=-1;
this.A=a;this.messageText=[];this.o=!1;b&&Rz(this,b)},Rz=function(a,b){var c=b.lifeCycleState;
c&&(a.state=Tz[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.o=0<=eb(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.g=new Qz(b)},sz=function(a){return a.messageText.length?a.messageText:Uz(a)},Uz=function(a){switch(a.state){case 6:return!a.b()&&a.A?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),
null,P("YTP_FRESCA_EVENT_OFFLINE")]:a.b()?[]:[P("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),P("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return a.A?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,P("YTP_FRESCA_EVENT_OFFLINE")]:a.A?[P("YTP_FRESCA_EVENT_OFFLINE")]:[P("YTP_FRESCA_EVENT_OVER_MESSAGE"),P("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(rz(a))return["Dawn of","The final day","-24 hours remain-"];if(a.startTime){var b=Ki("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d;d=b.formatLongDate;
Fz={Pn:b.months,Vn:b.months,Sn:b.shortMonths,Wn:b.shortMonths,fk:b.dateFormats,fo:b.weekdays,Yn:b.shortMonths,Tn:b.shortWeekdays,Xn:b.shortWeekdays,pw:b.weekendRange,hk:b.firstDayOfWeek,ik:b.firstWeekCutoffDay,Fn:b.amPms};c=(new Iz(d)).format(new Date(1E3*c))}b=Math.floor(D()/1E3);return[b<=a.startTime?P("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?P("YTP_FRESCA_EVENT_STARTING_SOON"):P("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.A?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,P("YTP_FRESCA_EVENT_OFFLINE")]:
a.A?[P("YTP_FRESCA_EVENT_OFFLINE")]:[P("YTP_FRESCA_STAND_BY_MESSAGE")]}},rz=function(a){if(!a.startTime)return!1;
var b=a.startTime-Math.floor(D()/1E3);return kb(Vz,a.state)&&86459>=b&&86400<=b},Wz=function(a){gq.call(this,a);
this.logEvent=this.Ea="fresca";this.A=this.G=!1;this.o=this.g=this.B=null;Ri({YTP_FRESCA_STARTING_SOON_MESSAGE:"S\u1eafp b\u1eaft \u0111\u1ea7u...",YTP_FRESCA_EVENT_OVER_MESSAGE:"Lu\u1ed3ng tr\u1ef1c ti\u1ebfp n\u00e0y \u0111\u00e3 k\u1ebft th\u00fac.",YTP_FRESCA_COMPLETE_MESSAGE:"C\u1ea3m \u01a1n b\u1ea1n \u0111\u00e3 xem!",YTP_FRESCA_STAND_BY_MESSAGE:"Vui l\u00f2ng ch\u1edd \u0111\u1ee3i.",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"Video b\u1ecb gi\u00e1n \u0111o\u1ea1n",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"S\u1ef1 ki\u1ec7n tr\u1ef1c ti\u1ebfp d\u1eebng ph\u00e1t.",
YTP_FRESCA_EVENT_OFFLINE:"Ngo\u1ea1i tuy\u1ebfn",YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"Lu\u1ed3ng n\u00e0y",YTP_FRESCA_EVENT_STARTS_IN:"Xem lu\u1ed3ng tr\u1ef1c ti\u1ebfp!",YTP_FRESCA_EVENT_STARTING_SOON:"Lu\u1ed3ng tr\u1ef1c ti\u1ebfp s\u1ebd s\u1edbm b\u1eaft \u0111\u1ea7u",YTP_FRESCA_EVENT_HASNT_STARTED:"Lu\u1ed3ng tr\u1ef1c ti\u1ebfp \u0111\u00e3 l\u00ean l\u1ecbch ch\u01b0a b\u1eaft \u0111\u1ea7u",YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME hi\u1ec7n \u0111ang ph\u00e1t tr\u1ef1c ti\u1ebfp!",
YTP_FRESCA_SIDEBAR_PROMO_HEADER:"C\u00e1c lu\u1ed3ng tr\u1ef1c ti\u1ebfp kh\u00e1c c\u1ee7a $STREAMER_NAME",YTP_FRESCA_LIVE_BADGE:"Tr\u1ef1c ti\u1ebfp",YTP_FRESCA_LIVE_DAYS_AGO:"Ph\u00e1t tr\u1ef1c ti\u1ebfp $DAYS ng\u00e0y tr\u01b0\u1edbc",YTP_FRESCA_LIVE_HOURS_AGO:"Ph\u00e1t tr\u1ef1c ti\u1ebfp $HOURS gi\u1edd tr\u01b0\u1edbc",YTP_FRESCA_LIVE_RECENTLY:"Tr\u1ef1c ti\u1ebfp g\u1ea7n \u0111\u00e2y",YTP_FRESCA_LIVE_IN_DAYS:"Tr\u1ef1c ti\u1ebfp sau $DAYS ng\u00e0y",YTP_FRESCA_LIVE_IN_HOURS:"Tr\u1ef1c ti\u1ebfp sau $HOURS gi\u1edd",
YTP_FRESCA_VIEWERS_WATCHING_NOW:"$VIEWER_COUNT hi\u1ec7n \u0111ang xem",YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"\u0110ang ph\u00e1t tr\u1ef1c tuy\u1ebfn",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS ng\u00e0y",YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS gi\u1edd"});this.C=!1;this.H="leanback"!=T(this.b).ua},Yz=function(a,b){if(!a.H)return!1;
var c=!!sz(b).length||!!b.imageUrl;if(!a.A&&6>b.state)return c;if(a.b.app.g.H&&(b.imageUrl||b.messageText.length))return!0;var d=Xz(a.b),d=hz(d)||U(d,2),e;if(e=!a.g.b())(e=!a.A)||(e=!(Xz(a.b).Ya()&&!Tx(a.b.getVideoData())&&!a.b.app.g.H)&&d);return e||a.G&&a.b.app.g.H||!a.A&&6<b.state?c:!1},$z=function(a,b){var c=Yz(a,b);
if(!a.A)switch(b.state){case 6:b.b()&&(a.A=!0,kq(a));break;case 8:case 7:a.A=!0}c&&vz(a.B,b);c&&!a.loaded?(a.load(),Zz(a.b)):!c&&a.loaded&&(a.unload(),Zz(a.b))},aA=function(a){return Sx(a.getVideoData(),"fresca_module")?new Wz(a):null},bA=function(a,b){if(!a.g||!a.g.Na(b)){a.g=b;
var c=a.b,d;d={hasActiveStream:b.b(),imageUrl:b.imageUrl,messageText:sz(b),startTime:b.startTime,state:b.state};Zz(c,d)}},cA=function(){if(!qf)return!1;
try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}},fA=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");
if(dA){var b=eA();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");},gA=function(a){var b=a.xml;
if(b)return b;if("undefined"!=typeof window.XMLSerializer)return(new window.XMLSerializer).serializeToString(a);throw Error("Your browser does not support serializing XML documents");},hA=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=ff(a);
"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=ff(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null},eA=function(){var a=new window.ActiveXObject("MSXML2.DOMDocument");
a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}return a},iA=function(a){this.g=a||window;
this.b=[]},jA=function(a,b,c){c=w(c,a.g);
b=hm(b,"mouseleave",c);a.b.push(b);return b},kA=function(a,b,c,d){c=w(c,d||a.g);
b=jm(b,c);a.b.push(b)},lA=function(a){gm(a.b);
a.b.length=0},mA=function(a,b,c){F.call(this);
this.oa=null;this.A=!1;this.B=a;this.o=c;this.b=b||window;this.g=w(this.Bx,this)},nA=function(a){a=a.b;
return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null},oA=function(a){a=a.b;
return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null},rA=function(a){a=na(a);
delete pA[a];cc(pA)&&qA&&qA.stop()},tA=function(){qA||(qA=new be(function(){sA()},20));
var a=qA;a.isActive()||a.start()},sA=function(){var a=D();
Pb(pA,function(b){uA(b,a)});
cc(pA)||tA()},vA=function(){I.call(this);
this.b=0;this.endTime=this.startTime=null},wA=function(a,b,c,d){vA.call(this);
if(!ea(a)||!ea(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.A=a;this.F=b;this.duration=c;this.C=d;this.g=[];this.progress=this.D=0;this.B=null},uA=function(a,b){a.progress=(b-a.startTime)/(a.endTime-a.startTime);
1<=a.progress&&(a.progress=1);a.D=1E3/(b-a.B);a.B=b;xA(a,a.progress);1==a.progress?(a.b=0,rA(a),a.gc(),a.hh()):a.Ya()&&a.pm()},xA=function(a,b){ia(a.C)&&(b=a.C(b));
a.g=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.g[c]=(a.F[c]-a.A[c])*b+a.A[c]},yA=function(a,b){mc.call(this,a);
this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.D;this.state=b.b},zA=function(a){return Math.pow(a,3)},AA=function(a){return 3*a*a-2*a*a*a},BA=function(a){this.b="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1},CA=function(a,b){var c=a.g(b,void 0);
return-1==(0==c?a.b:c)?"rtl":"ltr"},GA=function(){this.b=[];
this.g=fq},IA=function(a,b){for(var c=[],d=0;d<a.b.length;++d){var e=a.b[d];
e.contains(b)&&c.push(e);if(e.start>b)break}return c},KA=function(a){return a.b.slice(JA(a,0x7ffffffffffff),a.b.length)},JA=function(a,b){var c=Bb(a.b,function(a){return b-a.start||1});
return 0>c?-(c+1):c},LA=function(a,b){for(var c=void 0,d=0;d<a.b.length;d++){var e=a.b[d];
e.contains(b)&&(void 0==c||e.end<c)&&(c=e.end);if(e.start>b&&(void 0==c||e.start<c)){c=e.start;break}}return c},MA=function(a,b,c,d){F.call(this);
this.A=window.NaN;this.D=!1;this.C=null;this.F=this.G=this.o=!1;this.M=a;this.K=b;this.H=c;this.I=d;this.J=new be(this.Qd,250,this);G(this,this.J);this.B=new be(this.Qd,0,this);G(this,this.B);this.g=[];this.b=new GA},NA=function(a,b){var c=[];
if(!b.length)return c;for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.g.indexOf(e)&&(a.g.push(e),c.push([1,e]))}return c},OA=function(a,b){var c=[];
if(!b.length)return c;b.sort(fq);for(var d=0;d<b.length;d++){var e=b[d];a.g.splice(a.g.indexOf(e),1);c.push([2,e])}return c},PA=function(a){var b=0;
-1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b},QA=function(a){return ea(a)&&a.length?a[0]:a},RA=function(a){var b=/.+/;
return v(a)&&null!=b&&null!=a&&a.match(b)?a:""},SA=function(a,b){if(null==a)return b;
var c=(0,window.parseInt)(a,0);if((0,window.isNaN)(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c},TA=function(a){return v(a)?a:""},UA=function(a,b,c){for(var d in b)if(b[d]==a)return a;
return c},VA=function(a,b){return"true"==a||"false"==a?"true"==a:b},WA=function(a,b){return v(a)?(0,window.parseFloat)(a):b},XA=function(a,b,c,d,e){a=(0,window.parseFloat)(a);
if(null!=a&&!(0,window.isNaN)(a)){if(d)return Ve(a,b,c);if(a>=b&&a<=c)return a}return e},YA=function(a){if(null==a)return 0;
if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;E(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
return c*b},ZA=function(a,b){if(null==a)return null;
if(fa(a)){var c=[];E(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]},$A=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new eg((0,window.parseFloat)(a.top),(0,window.parseFloat)(a.right),(0,window.parseFloat)(a.bottom),(0,window.parseFloat)(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null},aB=function(a){function b(a){return ge(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)},bB=function(a,b,c,d){this.value=a;
this.target=b;this.showLinkIcon=c;this.gj=d},dB=function(a){if(!a)return null;
var b=TA(a.value);if(!b)return null;var c=UA(a.target,cB,"current");return null==c?null:new bB(b,c,VA(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)},eB=function(a){return a.value?a.value:null},gB=function(a){var b;
(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=fB(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1},fB=function(a){a=a.replace(/^(https?:)?\/\//,"");
a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()},hB=function(a){a=eB(a);
if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!gB(a))||(b=Gg(Fg(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=Hj(a);if(!b||!b.v)return null;if(b.t)return PA(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=Fj(a[1]))&&a.t?PA(a.t):-1},iB=function(a){a=eB(a);
a=a.replace(/https?:\/\//g,"");return gB(a)?(a=Hj(a))&&a.v?a.v:null:null},kB=function(a,b,c,d){(a=eB(a))?gB(a)?d=Kj(a,{feature:"iv",
src_vid:c,annotation_id:b}):(a?(b=fB(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=qa(jB,d.pageId,d.Eb),a=new N(a),ah(a,d(a.A)),d=a.toString()):d=a):d=null;return d},jB=function(a,b,c){c=c.replace(/\/(u|b)\/[0-9]+/g,"");
var d=/^[0-9]+$/;a&&d.test(a)&&(c="/b/"+a+c);b&&d.test(b)&&(c="/u/"+b+c);return c},lB=function(a,b){return b?b:gB(a)?"current":"new"},nB=function(a){this.g=a;
this.b=0;this.B=window.NaN;this.A=0;this.na=[];this.o=mB(this.g);this.C=this.D=0;this.F=this.g.b.experiments.$("html5_longer_seek_delay")?2:.5},oB=function(a){a.o.startTime=a.A;
a.o.endTime=a.b;a.na.length&&db(a.na).isEmpty()?a.na[a.na.length-1]=a.o:a.na.length&&a.o.isEmpty()||a.na.push(a.o);a.D+=a.b-a.A;a.o=mB(a.g);a.A=a.b},pB=function(a){return a.D+a.g.g()-a.A},qB=function(a){a.na.length&&a.b==a.A||oB(a);
var b=a.na;a.na=[];return b},rB=function(a,b,c){c-=a.B;
return b==a.b&&.5<c},sB=function(a,b){this.b=b;
this.A=!1;this.videoData=a},tB=function(a,b,c){sB.call(this,b,c);
this.o=a},uB=function(a){F.call(this);
this.b=a;this.A={};this.K=window.NaN;this.C=new be(this.rB,3E4,this);G(this,this.C);this.D=new be(this.lj,100,this);G(this,this.D);this.g="N";this.o=0;this.M=window.NaN;this.P=0;this.H=this.X="";this.ba=-1;this.G=this.I=0;this.J=this.F=!1;this.Y=[];this.B=null;(a=window.navigator.getBattery?window.navigator.getBattery():null)&&a.then&&a.then(w(function(a){this.B=a},this))},vB=function(a,b,c,d){var e=a.A[c];
e||(e=[],a.A[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))},wB=function(a){var b={event:"streamingstats"};
if(a.b.videoData.A){b.fmt=zr(a.b.videoData.A);var c=a.b.videoData.C;c&&zr(c)!=b.fmt&&(b.afmt=zr(c))}b.cpn=a.b.videoData.clientPlaybackNonce;b.ei=a.b.videoData.eventId;b.el=a.b.b.ua;b.docid=a.b.videoData.videoId;b.ns=a.b.b.ca;b.fexp=a.b.b.experiments.experimentIds.toString();b.cl=a.b.b.ma;a.b.b.adFormat&&(b.adformat=a.b.b.adFormat);a.b.videoData.sa&&(b.live=a.b.videoData.Zd?"dvr":"live");b.html5="1";return b},xB=function(a,b,c,d){var e=a.b.g();
c=[c,e.toFixed(3)];d&&c.push(d);vB(a,b,"error",c)},yB=function(a,b){var c=a.A.cat||[];
c.push(b);a.A.cat=c},zB=function(a,b,c,d){var e=a.A.ctmp||[],f=-1!=a.Y.indexOf(b);
f||a.Y.push(b);d&&f||(e.push(b+":"+c),a.A.ctmp=e)},BB=function(a,b,c,d){this.Ga=b;
this.segments=[];this.experimentIds=[];this.G=this.Ca=this.ea=this.ca=this.za=this.autoplay=this.autonav=!1;this.X="yt";this.H=this.g=this.B=null;this.P=!1;this.o="watchtime"==c;this.M="playback"==c;this.Aa="delayplay"==c;this.D="atr"==c;this.wa="engage"==c;this.Y=!1;this.ba=this.D?"/api/stats/"+c:"//"+b.Wd+"/api/stats/"+c;d&&(this.ea=d.fs,d.rtn&&(this.g=d.rtn),this.o?(this.Bb=d.state,0<d.rti&&(this.B=d.rti)):(this.Fa=d.mos,this.Pa=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav));
this.adFormat=b.adFormat;b.experiments.$("legacy_autoplay_flag")&&(this.autoplay=b.J);this.$a=b.ga;this.gb=hc(b.g);this.ra=b.ba;this.ib=b.ua;this.experimentIds=b.experiments.experimentIds;this.Z=b.ia;this.X=b.ca;this.region=b.region;this.Ib=b.ma?b.ma.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Za=AB();this.Y=b.experiments.g;this.C=a.oauthToken||this.C;b=this.Ga;this.autoplay=b.experiments.$("legacy_autoplay_flag")||"detailpage"!=b.ua?a.Zc:a.Zc&&a.Si;this.autonav=a.Si||this.autonav;
this.H=a.Kj;this.clientPlaybackNonce=a.clientPlaybackNonce;this.K=a.vssCredentialsToken;this.ka=a.Xm;this.F=a.Ij;this.aa=a.qf;a.A&&(this.ma=zr(a.A),a.C&&zr(a.C)!=this.ma&&(this.J=zr(a.C)));this.G=a.Cg;this.qb=a.Jj;a.sa&&(this.Ja=a.Zd?"dvr":"live");this.ub=a.kn;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.gb||a.playlistId;this.ga=a.Z;this.ia=a.ca;this.Ub=a.xf;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;
this.osid=a.osid;this.yb=a.Oz;this.referrer=a.referrer;this.Sa=a.Za||a.wf;this.searchQuery=a.searchQuery},CB=function(a,b){if(a.D)return null;
var c=a.C&&Mj(),d=a.Y&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.C);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,gc:b}},DB=function(a,b,c,d){b.cmt=b.len;
b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=Qg(a,b);c?Sj(a,c):Wp(a)},FB=function(a){var b={ns:a.X,
el:a.ib,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.b(a.F),plid:a.playbackId,ei:a.eventId,fmt:a.ma,fs:a.ea?"1":"0",rt:a.b(a.Ua),of:a.yb,adformat:a.adFormat,content_v:a.$a,euri:a.ra,subscribed:a.subscribed,lact:a.Za,live:a.Ja,cl:a.Ib,mos:a.Fa,q:a.searchQuery,osid:a.osid,state:a.Bb,vm:a.videoMetadata,volume:a.Pa};ta(b,a.gb);a.autonav&&(b.autonav="1");if(a.Ga.experiments.$("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||a.G)b.autoplay="1";a.ca&&
(b["final"]="1");a.G&&(b.splay="1");a.aa&&(b.delay=a.aa);a.Z&&(b.hl=a.Z);a.region&&(b.cr=a.region);n(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);n(a.U)&&(b.len=a.b(a.U));!a.o&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.g&&(b.rtn=a.b(a.g));a.Sa&&(b.feature=a.Sa);a.playlistId&&(b.list=a.playlistId);a.ga&&(b.ctrl=a.ga);a.ia&&(b.ytr=a.ia);a.Ub&&(b.ssrt="1");a.J&&(b.afmt=a.J);a.o?(b.idpj=a.qb,b.ldpj=a.ub,null!=a.B&&(b.rti=a.b(a.B))):n(a.adType)&&(b.at=a.adType);
(a.M||a.Aa)&&a.H&&(b.tst=a.H);a.o&&(b.st=EB(a,zi(a.segments,function(a){return a.startTime})),b.et=EB(a,zi(a.segments,function(a){return a.endTime})));
Ph(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=EB(a,zi(a.segments,function(a){return a.visibilityState})));
Ph(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=EB(a,zi(a.segments,function(a){return a.playbackRate})));
Ph(a.segments,function(a){return"-"!=a.Ck})&&(b.cc=zi(a.segments,function(a){return a.Ck}).join(","));
if(Ph(a.segments,function(a){return!!a.zk})){var c="au";
a.M&&(c="au_d");b[c]=zi(a.segments,function(a){return a.zk}).join(",")}Mj()&&a.K&&(b.ctt=a.K,b.cttype=a.ka);
a.wa&&(b.etype=n(a.A)?a.A:0);return b},EB=function(a,b){return zi(b,a.b).join(",")},GB=function(a){F.call(this);
this.b=a;this.g=new uB(a);G(this,this.g);this.A=new nB(a);this.C="paused";this.D=window.NaN;this.G=[10,10,10,40];this.H=this.F=0;this.K=this.M=this.J=this.I=this.o=!1;this.B=window.NaN;this.P=new tB(this.A,this.b.videoData,this.b.b)},IB=function(a,b,c){var d=HB(a.b);
c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.G[a.F];a.F+1<a.G.length&&a.F++;c+=e;d=1E3*(c-d);a.D=Mi(w(a.VA,a,c,b),d);return c},KB=function(a,b){var c=JB(a.b);
ta(c,{state:a.C});c=new BB(a.b.videoData,a.b.b,b,c);c.F=a.b.g();a.b.videoData.sa||(c.U=a.b.B());c.Ua=HB(a.b);c.segments=[mB(a.b)];return c},LB=function(a,b){var c=KB(a,"watchtime");
c.segments=b;c.F=a.A.b;return c},MB=function(a){a.A.update();
return LB(a,qB(a.A))},PB=function(a){a.b.videoData.remarketingUrl&&!a.M&&(NB(a,a.b.videoData.remarketingUrl),a.M=!0);
a.b.videoData.ppvRemarketingUrl&&!a.K&&(NB(a,a.b.videoData.ppvRemarketingUrl),a.K=!0);OB(a)},SB=function(a,b){if(!a.isDisposed()){U(b.state,2)?(a.C="paused",0<QB(b,2)&&a.o&&MB(a).send()):U(b.state,8)?(a.C="playing",a.o&&(0,window.isNaN)(a.D)&&IB(a,!1)):a.C="paused";
var c=a.g,d=b.state,e=HB(c.b),f;f=b.state;if(U(f,128))f="ER";else if(U(f,16)||U(f,32))f="S";else{var k=RB[iz(f)];"B"==k&&U(f,4)&&(k="PB");f=k}if(!(f==c.g||"N"==f&&c.b.b.experiments.$("html5_dedupe_unstarted_qoe"))){k=f;if(!(e<c.o)){if("PL"==c.g)c.G+=e-c.o;else if("B"==c.g&&c.F&&(c.F=!1,c.I+=e-c.o,!c.J&&10<=c.I&&180>=c.G)){c.b.D();if(!c.isDisposed()){var m=wB(c);m.qoealert="1";m=Qg(c.b.b.Ud,m);Wp(m)}c.J=!0}"B"!=k||"PL"!=c.g&&"PB"!=c.g||(c.F=!0);c.o=e}!c.b.b.experiments.A||"B"!=f&&"PB"!=f?vB(c,e,"cmt",
[c.b.g().toFixed(3)]):c.lj(e);vB(c,e,"vps",[f]);c.g=f}U(d,128)&&xB(c,e,d.b.errorCode,d.b.errorDetail);(U(d,2)||U(d,128))&&c.oh(e);a.B&&U(b.state,128)&&(a.pj("error-100"),O(a.B))}},TB=function(a){a.B=Ni(w(a.pj,a,"heartbeat"),3E4)},OB=function(a){a.b.videoData.B.eventLabel=a.b.b.ua;
a.b.videoData.B.playerStyle=a.b.b.b;a.b.videoData.ma&&(a.b.videoData.B.feature="pyv");a.b.videoData.B.vid=a.b.videoData.videoId;a.b.videoData.B.isAd=!("adunit"!=a.b.b.ua&&!a.b.videoData.ma)},NB=function(a,b,c){a.b.b.experiments.g&&a.b.videoData.visitorData&&Lj(b)?Sj(b,{gc:c,
headers:{"X-Goog-Visitor-Id":a.b.videoData.visitorData}}):Wp(b,c)},UB=function(a){this.W=a;
this.b={}},YB=function(a,b,c){if(b){var d=VB(a,b);
a.b[b]=d["p-time"];d["iv-event"]=d.link||d["l-class"]||d["link-id"]?2:7;b=tb(c||[]);30==d["a-type"]&&(c=WB(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);XB(a,d,b)}},ZB=function(a,b,c,d,e,f){if(b){var k=VB(a,b);
k["iv-event"]=3;k["i-time"]=a.b[b]||"";kc(k,d||{});b=tb(e||[]);30==k["a-type"]&&(d=WB(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);XB(a,k,b,c,f)}},$B=function(a,b){if(b){var c=VB(a,b);
c["iv-event"]=4;c["i-time"]=a.b[b]||"";var d=[];if(30==c["a-type"]){var e=WB(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}XB(a,c,d)}},WB=function(a,b,c){a=a.W.getVideoData();
if(a.qb){if((c=a.qb[c])&&Ax.test(c))return a=xa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.ka)return Jj(a.ka,{label:c,value:"a_id="+b});return""},XB=function(a,b,c,d,e){var f=1,k,m=-1;
if(d){var l=!1;k=function(){f--;f||l||((0,window.clearTimeout)(m),l=!0,d())};
m=(0,window.setTimeout)(function(){l=!0;d()},1E3)}E(c||[],function(a){f++;
Wp(a,k)});
e&&(f++,0!=e&&a.W.Dg(e,k));aC(a,b,k)},VB=function(a,b){var c={};
if(b){var d=new dh(b);E(d.La(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.W.getCurrentTime().toFixed(2);
c.ps=T(a.W).b;return c},bC=function(a,b,c,d){d=VB(a,d);
d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;XB(a,d,c)},cC=function(a,b,c,d){c&&(c=VB(a,c),c["iv-event"]=b,XB(a,c,d))},aC=function(a,b,c){dC(a.W,"iv",b,c)},eC=function(a,b){this.aa=a;
this.context=b;this.Ym=!1;this.H=0},fC=function(a,b,c,d,e,f){b=new dq(b,c,{id:d});
b.b="iv-module";e&&eq(b).subscribe("onEnter",e,a);f&&eq(b).subscribe("onExit",f,a);a.context.g.ob([b])},gC=function(a){return D()-a.H},hC=function(a,b,c,d,e,f,k){var m=w(function(){k&&this.context.g.pauseVideo();
var a=Hj(b),d=null;"ei"in a&&(d={ei:a.ei},b=Wg(b,"ei"));sy(b,d);ty(b,"current"==c?"_top":void 0)},a);
"new"==c&&(m(),m=null);var l={};l.interval=gC(a);ZB(a.context.logger,d,m,l,e,f)},iC=function(a,b){var c=["div",
"ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text",["span","ytp-cards-teaser-shop-badge",P("YTP_SPONSORED_PRODUCT_BADGE")],["span","ytp-cards-teaser-label","{{text}}"]]];Q.call(this,c);this.W=a;this.H=new ir(this,250,!1,250);G(this,this.H);this.K=b;this.o=null;this.J=new be(this.PB,300,this);this.I=new be(this.NB,2E3,this);this.M=new BA(null);this.D=[];this.C=this.B=this.G=this.F=null;this.S(b.element,"mouseover",this.bu);this.S(b.element,"mouseout",this.se);this.S(a,
"cardsteasershow",this.TC);this.S(a,"cardsteaserhide",this.Rh);this.S(a,"cardstatechange",this.hs);this.S(a,"presentingplayerstatechange",this.hs);this.N("click",this.QG);this.N("mouseenter",this.OG);this.N("mouseleave",this.PG)},jC=function(a){if(!a||0==a.length)return"";
var b=["ul","ytp-cards-hover-card-metadata"];E(a,function(a){b.push(["li","",a])});
return b},kC=function(a,b){if(b){var c=b.Jk?"":["h2",
"ytp-cards-hover-card-title",b.title],d=b.imageUrl,d=["div","ytp-cards-hover-card-image",{style:d?"background-image: url("+d+");":""}];d.push(b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"");c=["a","ytp-cards-hover-card",["div","ytp-cards-video-image",d],["div","ytp-cards-video-desc",c,jC(b.Nd)]];a.B=new Q(c);a.B.b(a.element);c=lf("ytp-cards-hover-card",void 0);a.S(c,"click",qa(a.Eq,b));a.S(c,"mouseenter",a.Ey);a.S(c,"mouseleave",a.Fy)}},mC=function(a,b){a.g("text",b.teaserText);
a.element.setAttribute("dir",CA(a.M,b.teaserText));a.H.show();kC(a,b.Ji);b.Ji&&b.Ji.Jk&&J(a.element,"ytp-cards-combined-teaser");a.F=new be(function(){J(this.W.xa(),"ytp-cards-teaser-shown")},0,a);
a.F.start();lC(a.K,!1);a.o=new be(a.Rh,580+b.durationMs,a);a.o.start();b.Gw&&J(a.element,"ytp-cards-auto-open-hover-card");b.Iz&&(new be(function(){J(this.W.xa(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.D.push(a.N("mouseover",a.bu,a));a.D.push(a.N("mouseout",a.se,a))},nC=function(a,b,c){this.id=a;
this.timestamp=b.timestamp||0;this.type=b.card_type;this.teaserText=b.teaser_text;this.teaserDurationMs=b.teaser_duration_ms;this.startMs=b.start_ms;this.B=b.auto_open||!1;this.Qa=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.b={Np:a.impression,click:a.click,close:a.close,nE:a.teaser_impression,Mm:a.teaser_click}},oC=function(a,b,c){nC.call(this,a,b,c);
this.channelId=b.channel_id;this.customMessage=b.custom_message;this.profileImageUrl=b.image_url;this.title=b.title;this.Nd=b.meta_info;this.url=dB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},pC=function(a,b,c){nC.call(this,a,b,c);
this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.A=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=dB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.g=null;b.signin_url&&(this.g=dB({target:"current",value:b.signin_url}));this.D=b.signin_title||null;this.C=b.signin_message||null},qC=function(a,b,c){pC.call(this,a,b,c);
this.F=b.ypc_flow_type;this.o=b.innertube_request_params},sC=function(a,b){return rC&&a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())},tC=function(a,b,c){this.b=a;
this.g=b;this.o=c;this.A=new BA(null)},vC=function(a,b){var c=["ol",
""];E(b.chapters,function(a,b){c.push(["li","",["a","iv-click-target",{href:"#","data-navigation-chapter-index":b},a.title]])},a);
var d=["div",["iv-card","iv-card-navigation"],["div","iv-card-content",uC(a,"h2","",b.title),c]],d=new Q(d);E(kf("iv-click-target",d.element),function(a){this.b.b.N(a,"click",w(this.RB,this,b))},a);
return d},xC=function(a,b){var c=["ul",
"",{role:"radiogroup"}];E(b.choices,function(a){c.push(["li",b.o+"-"+a.index.toString(),["label","",["input","iv-card-poll-choice-input",{type:"checkbox",role:"radio",name:b.o+a.index.toString(),value:a.index.toString(),"data-poll-choice-index":a.index.toString()}],["span","iv-card-poll-choice-text",["span","iv-card-poll-choice-percent"],uC(this,"span",void 0,a.desc)]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a);
var d={};b.A&&(d["aria-label"]=P("YTP_DRAWER_POLL_TITLE_ARIA_LABEL",{POLL_TITLE:b.title}));var e=["iv-card","iv-card-poll"],d=[["div","iv-card-content",uC(a,"h2",d,b.title),["form","",["fieldset","",c]]]];b.A&&(e.push("iv-card-unavailable"),d.push(["div",["iv-card-sign-in"],["h2","",P("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:eB(b.A)},["span",["iv-button-content"],P("YTP_SIGN_IN")]]]));e=new Q(["div",e].concat(d));d=e.element;wC(b,d);kA(a.b.b,d,qa(a.pC,b),
a);E(kf("iv-card-poll-choice-input",d),function(a){this.b.b.N(a,"focus",qa(this.Oq,!0));this.b.b.N(a,"blur",qa(this.Oq,!1))},a);
b.A&&(d=lf("iv-card-sign-in-button",d),a.g(d,b.A,b.id,b.Qa,b.b.click,5));return e},CC=function(a,b,c,d){var e=yC(a,b.url,b.id),f=b.displayDomain?["div",
"iv-card-image-text",b.displayDomain]:"",k=zC(a,b),m=["iv-card"];b.g&&m.push("iv-card-unavailable");e=["div",m,["a","iv-click-target",{href:e},AC(b.imageUrl,f),["div","iv-card-content",uC(a,"h2",void 0,b.title),k]]];b.g&&(e=e.concat([["div",["iv-card-sign-in"],uC(a,"h2",void 0,b.D||""),["p","",b.C],["a",["iv-card-sign-in-button","iv-button"],{href:eB(b.g)},uC(a,"span","iv-button-content",P("YTP_SIGN_IN"))]]]));e=new Q(e);BC(a,e,b,c,d);return e},EC=function(a,b,c){var d=yC(a,b.url,b.id),e=["yt-badge",
"standalone-ypc-badge-renderer-icon",b.C?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],f={},e=b.o&&b.A?["span",e,f,b.A]:"";c=["div",["iv-card",c],["a","iv-click-target",{href:d},AC(b.D,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],DC(a,b)]]];c=new Q(c);BC(a,c,b);return c},FC=function(a,b){return b.customMessage?uC(a,"div","iv-card-message",b.customMessage):""},AC=function(a,b){var c=
["div",
"iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c},DC=function(a,b){if(!b.Nd||0==b.Nd.length)return"";
var c=["ul","iv-card-meta-info"];E(b.Nd,function(a){c.push(uC(this,"li","",a))},a);
return c},uC=function(a,b,c,d){c?v(c)?c={"class":c}:ea(c)&&(c={"class":c.join(" ")}):c={};
c.dir=CA(a.A,d);return[b,c,d]},zC=function(a,b){if(!b.customMessage)return"";
var c=["iv-card-action","iv-card-primary-link"],d={};b.A&&(c.push("iv-card-action-icon"),d.style="background-image: url("+b.A+");");d.dir=CA(a.A,b.customMessage);c=["div",c,d,["span","",b.customMessage]];b.showLinkIcon&&(c.push("\u00a0"),c.push(["span","iv-card-link-icon"]));return c},wC=function(a,b){var c=0;
E(a.choices,function(a){c+=a.count});
for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],f=lf(a.o+"-"+e.index.toString(),b),e=e.count/c;null==a.g&&(e=0);K(f.getElementsByTagName("label")[0],"iv-card-poll-choice-checked",a.g==d);f.getElementsByTagName("input")[0].checked=a.g==d;var k=Math.floor(100*e).toFixed(0),m=lf("iv-card-poll-choice-percent",f);Lf(m,P("YTP_DRAWER_POLL_PERCENT",{PERCENT:k}));f=lf("iv-card-poll-result-bar",f);Gq(f,"transform","scaleX("+e.toFixed(2)+")")}K(b,"iv-card-poll-voted",null!=a.g);K(b,"iv-card-poll-expanded",
null!=a.g&&1<a.choices.length)},GC=function(a,b,c,d){d?(c&&a.b.videoData.sa||a.b.g.pauseVideo(),a.b.g.Ia()&&yy(a.b.g),ZB(a.b.logger,b.Qa,d,void 0,b.b.click,5)):a.o(b.url,b.id,b.Qa,b.b.click,5)},yC=function(a,b,c){return b?kB(b,c,a.b.videoData.videoId,a.b.A):null},BC=function(a,b,c,d,e){c.g&&HC(a,kf("iv-card-sign-in-button",b.element),c,c.g,e);
HC(a,kf("iv-click-target",b.element),c,c.url,d)},HC=function(a,b,c,d,e){E(b,function(a){if(e){var b=w(function(a){a.stopPropagation();
a.preventDefault();e();return!1},this);
this.b.b.N(a,"click",b)}else this.g(a,d,c.id,c.Qa,c.b.click,5)},a)},IC=function(a,b,c){nC.call(this,a,b,c);
this.title=b.title;this.chapters=b.chapters},JC=function(a,b,c){nC.call(this,a,b,c);
this.A=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.Nd=b.meta_info;this.url=dB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},KC=function(a,b,c){nC.call(this,a,b,c);
this.o=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.g=b.hasOwnProperty("old_vote")?b.old_vote:null;this.A=null;b.signin_url&&(this.A=dB({target:"current",value:b.signin_url}));this.C=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null},MC=function(a,b,c){pC.call(this,a,b,c);
this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new LC(a[b]))},LC=function(a){this.merchant=A(a.merchant);
this.price=A(a.price)},NC=function(a,b,c){pC.call(this,a,b,c);
this.F=b.ypc_item_type;this.o=b.ypc_item_id;this.G=b.ypc_flow_type},OC=function(a,b,c){nC.call(this,a,b,c);
this.A=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.Nd=b.meta_info;this.o=!!b.is_live_now;this.url=dB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},PC=function(a,b,c){nC.call(this,a,b,c);
this.D=b.image_url;this.A=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.Nd=b.meta_info;this.o=!!b.is_paygated;this.C=!!b.user_has_entitlement;this.url=dB({target:b.target||"new",value:b.url})},RC=function(a,b,c){eC.call(this,b,c);
this.W=a;this.Ui=this.P=this.B=this.K=this.U=!1;this.X=null;this.Bk=new be(r,c.A.useTabletControls?4E3:3E3);this.M=new be(r);this.g=new tC(c,w(this.rg,this),w(this.Xi,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},P("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":P("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.F=new Q(a);this.o=this.F.element;this.J=new ir(this.F,330,QC(this,"drawer_peek"));
QC(this,"drawer_peek")&&J(this.o,"ytp-drawer-peek");this.ba=lf("iv-drawer-header",this.o);this.Oc=lf("iv-drawer-content",this.o);a=["iv-drawer-teaser"];this.g.b.A.experiments.Nw&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:P("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.Y=(new Q(a)).element;lf("iv-drawer-teaser-text",this.Y);this.A=[];this.C=this.G=this.b=null;this.D=
[];fC(this,0,1E3*c.videoData.lengthSeconds,"",this.ww,this.$w)},YC=function(a,b){var c=b&&b.data&&b.data.card_type;
if(c&&SC[c]){c=new SC[c](b.id,b.data,b.Qa);a.U||(fe(a.fa(),["html5-stop-propagation","iv-drawer-manager"]),mr(a.W,a.o,5),TC(a),a.U=!0);UC(a,c.id);var d=VC(a,c);if(d){var e={Ra:c,Dk:d.element,cq:!1,Yi:!1},f=WC(a,e);wb(a.A,f,0,e);d.b(a.Oc,f);a.ji();c.B?fC(a,c.startMs,0x8000000000000,c.id,qa(a.aE,e)):(d=1E3*a.context.g.getCurrentTime(),5E3>d&&d>c.startMs&&a.Fm(e,!1),fC(a,c.startMs,c.startMs+1,c.id,qa(a.Fm,e,!1)),XC(a))}}},ZC=function(a,b){b.data.autoOpenMs&&fC(a,b.data.autoOpenMs,0x8000000000000,"",
a.kh);
b.data.autoCloseMs&&fC(a,b.data.autoCloseMs,0x8000000000000,"",a.ti)},UC=function(a,b){var c=$C(a,b);
c&&(c==a.b&&(a.b=null),a.W.Ls(c.Ra.id),Bf(c.Dk),qb(a.A,c),a.ji(),XC(a))},QC=function(a,b){return a.context.A.experiments.$(b)},TC=function(a){var b=lf("iv-drawer-close-button",a.o);
a.context.b.N(b,"click",a.Rw,a);a.context.b.N(a.Oc,"touchend",function(){this.Bk.start()},a);
QC(a,"drawer_peek")&&(b=lf("ytp-drawer-peek"))&&a.context.b.N(b,"click",a.aB,a);a.context.b.N(a.Oc,"scroll",a.fx,a);a.X=fm(a.Oc,"mousewheel",w(a.fG,a));a.context.o.subscribe("onHideControls",function(){this.Ui=!0},a);
a.context.o.subscribe("onShowControls",function(){this.Ui=!1},a);
a.context.o.subscribe("onVideoAreaChange",function(){this.Ui=ee(this.W.xa(),"ytp-autohide")},a);
a.D.push(Xi("iv-teaser-shown",a.Hz,a));a.D.push(Xi("iv-teaser-clicked",a.Fz,a));a.D.push(Xi("iv-hover-card-clicked",a.Ez,a));QC(a,"teaser_on_button_hover")&&a.D.push(Xi("iv-button-mouseover",a.iE,a));QC(a,"log_teaser_hover")&&a.D.push(Xi("iv-teaser-mouseover",a.Gz,a))},VC=function(a,b){switch(b.type){case "simple":return CC(a.g,b);
case "collaborator":var c=a.g,d=["div",["iv-card","iv-card-channel"],["a",["iv-click-target","g-hovercard"],{href:yC(c,b.url,b.id),"data-ytid":b.channelId},AC(b.profileImageUrl),["div","iv-card-content",FC(c,b),["h2","iv-card-primary-link",b.title],DC(c,b)]]],d=new Q(d);BC(c,d,b);return d;case "donation":return c=a.g,d=w(c.YA,c,b),CC(c,b,d,d);case "episode":return EC(a.g,b,"iv-card-episode");case "movie":return EC(a.g,b,"iv-card-movie");case "navigation":return vC(a.g,b);case "playlist":return c=
a.g,d=["div",["iv-card","iv-card-playlist"],["a","iv-click-target",{href:yC(c,b.url,b.id)},AC(b.A,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",FC(c,b),uC(c,"h2","iv-card-primary-link",b.title),DC(c,b)]]],d=new Q(d),BC(c,d,b),d;case "poll":return xC(a.g,b);case "productListing":var c=a.g,d=yC(c,b.url,b.id),e=!lb(b.offers),f=["iv-card"],k="",m=zC(c,b);e&&(f.push("iv-card-product-listing"),k="iv-card-primary-link",m=
b.offers[0],e=["div",null],m.price&&e.push(["div","iv-card-offer-price",m.price]),m.merchant&&e.push(["div","iv-card-offer-merchant",m.merchant]),m=e);e=b.sponsored?["div","iv-card-sponsored",P("YTP_SPONSORED"),["div","iv-ad-info-container",["div","iv-ad-info","{{adInfo}}"],["div","iv-ad-info-icon-container",["div","iv-ad-info-icon"],["div","iv-ad-info-callout"]]]]:"";d=["div",f,{tabindex:"0"},["a",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.imageUrl+");",href:d,"aria-hidden":"true",
tabindex:"-1"}],["div","iv-card-content",e,["a","iv-click-target",{href:d},uC(c,"h2",k,b.title),m]]];d=new Q(d);f=window.document.createElement("span");Lf(f,P("YTP_SPONSORED_PRODUCT_INFO"));d.Mb(f,"adInfo");BC(c,d,b);return d;case "tip":return c=a.g,d=w(c.VC,c,b),CC(c,b,d,d);case "video":return c=a.g,d=yC(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.o?["span",["yt-badge","yt-badge-live"],P("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],["a","iv-click-target",
{href:d},AC(b.A,f),["div","iv-card-content",FC(c,b),uC(c,"h2","iv-card-primary-link",b.title),DC(c,b),k]]],d=new Q(d),BC(c,d,b),d}return null},WC=function(a,b){if(0==a.A.length)return 0;
var c=gb(a.A,function(a){return b.Ra.startMs>a.Ra.startMs||b.Ra.startMs==a.Ra.startMs&&b.Ra.timestamp>=a.Ra.timestamp?!0:!1});
return-1==c?0:c+1},aD=function(a){return a.b?"productListing"==a.b.Ra.type:Bg(a.A,function(a){return"productListing"==a.Ra.type})},XC=function(a){K(a.W.xa(),"ytp-cards-shopping-active",aD(a))},bD=function(a,b){if(a.F.A){var c=new wA([0,
a.Oc.scrollTop],[0,b.Dk.offsetTop],600,AA);a.context.b.N(c,"animate",function(a){this.Oc.scrollTop=a.y},a);
a.context.b.N(c,"finish",function(a){this.Oc.scrollTop=a.y},a);
c.play()}else a.F.Xa(!0),a.Oc.scrollTop=b.Dk.offsetTop,a.F.Xa(!1)},cD=function(a){return a.b&&a.b.Ra||a.A[0]&&a.A[0].Ra},$C=function(a,b){return fb(a.A,function(a){return a.Ra.id==b},a)},gD=function(a){if(!dD.test(a))throw Error("'"+a+"' is not a valid hex color");
4==a.length&&(a=a.replace(eD,"#$1$1$2$2$3$3"));a=a.toLowerCase();return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16)]},hD=function(a,b,c,d,e){wA.call(this,b,c,d,e);
this.element=a},iD=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");
hD.apply(this,arguments)},jD=function(a,b,c){eC.call(this,a,b);
this.annotation=c;this.isActive=!1},kD=function(a,b,c){jD.call(this,a,b,c);
this.b=null;this.D=!1;this.g=null;this.A=!1;this.o=0;this.C=this.B=null},lD=function(a,b,c,d,e,f){this.b=a;
this.A=b;this.videoData=c;this.logger=d;this.g=e;this.o=f},mD=function(a,b,c){this.type=a;
this.b=b;this.url=c},pD=function(a){if(!a)return null;
var b=UA(a.type,nD),c=UA(a.trigger,oD),d=dB(QA(a.url));QA(a.subscribeData);return b?new mD(b,c,d):null},qD=function(a,b,c,d,e,f,k,m,l,p,t,u,x,B){this.B=a;
this.bgColor=b;this.C=c;this.o=d;this.g=e;this.H=f;this.A=k;this.textAlign=m;this.textSize=l;this.D=p;this.F=t;this.effects=u;this.b=x;this.G=B},sD=function(a){if(!a)return null;
var b=SA(a.fgColor,"#1A1A1A"),c=SA(a.bgColor,"#FFF"),d=SA(a.borderColor,"#000"),e=XA(a.borderWidth,0,5,!1,0),f=XA(a.bgAlpha,0,1,!1,.8),k=SA(a.highlightFontColor,"#F2F2F2"),m=XA(a.highlightWidth,0,5,!1,3),l=TA(a.textAlign),p=XA(a.textSize,3.3,30.1,!0,3.6107),t=TA(a.fontWeight),u=$A(a.padding),x=aB(a.effects),B=XA(a.cornerRadius,0,10,!0,0);if(a=QA(a.gradient)){var C=XA(a.x1,0,100,!0,0),H=XA(a.y1,0,100,!0,0),L=XA(a.x2,0,100,!0,100),R=XA(a.y2,0,100,!0,100),ra=SA(a.color1,"#FFF"),sa=SA(a.color2,"#000");
a=new rD(C,H,L,R,ra,sa,XA(a.opacity1,0,100,!0,100),XA(a.opacity2,0,100,!0,0))}else a=null;return new qD(b,c,d,e,f,k,m,l,p,t,u,x,B,a)},rD=function(a,b,c,d,e,f,k,m){this.B=a;
this.D=b;this.C=c;this.F=d;this.b=e;this.g=f;this.A=k;this.o=m},tD=function(a,b){this.b=a;
this.videoId=b},wD=function(a,b,c){var d=a.C,e=a.D,f=a.b?a.b:"xy",k=uD(c,a.o,f);
a=vD(c,a.g,f);var f=640*b.width*k/100,m=360*b.height*a/100;return new fg(0==d?640*b.left*k/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-m,f,m)},uD=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;
return(d+((c?a.width:a.height)-d)*b)/d},vD=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;
return(d+((c?a.height:a.width)-d)*b)/d},xD=function(a,b,c,d,e,f,k,m,l,p,t){this.x=a;
this.y=b;this.B=c;this.A=d;this.t=e;this.H=f;this.C=k;this.D=m;this.o=l;this.g=p;this.b=t},zD=function(a,b){if(!a)return null;
var c=WA(a.x,0),d=WA(a.y,0),e=WA(a.w,0),f=WA(a.h,0),k=YA(a.t),m=WA(a.scaleSlope,1);return b(c,d,e,f,k,WA(a.d,0),WA(a.px,0),WA(a.py,0),WA(a.scaleSlopeX,m),WA(a.scaleSlopeY,m),UA(a.scaleDimension,yD,"xy"))},BD=function(a,b){var c=AD(b,wD(a,new fg(a.x,a.y,a.B,a.A),b.b)),d=b.b,e=c.clone();
d&&!d.contains(c)&&(c.width<d.width?e.left=Ve(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=Ve(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e},CD=function(a){return a?zD(a,function(a,c,d,e,f,k,m,l,p,t,u){return new xD(a,c,d,e,f,k,m,l,p,t,u)}):null},DD=function(a,b,c,d,e,f,k,m,l,p,t,u,x){xD.call(this,a,b,c,d,e,m,l,p,t,u,x);
this.F=f;this.G=k},ED=function(a){if(!a)return null;
var b=WA(a.sx,0),c=WA(a.sy,0);return zD(a,function(a,e,f,k,m,l,p,t,u,x,B){return new DD(a,e,f,k,m,b,c,l,p,t,u,x,B)})},FD=function(a,b,c,d){this.type=a;
this.g=b;this.b=c;this.A=d},HD=function(a){if(!a)return null;
var b=UA(a.type,GD,"rect"),c=ZA(a.rectRegion,CD),d=ZA(a.anchoredRegion,ED);a=ZA(a.shapelessRegion,CD);return new FD(b,c,d,a)},ID=function(a){return a.g&&a.g.length?a.g[0]:a.b&&a.b.length?a.b[0]:a.A&&a.A.length?a.A[0]:null},JD=function(a,b){this.g=a;
this.b=b},KD=function(a,b){this.state=a;
this.b=b},MD=function(a){if(!a)return null;
var b=UA(a.state,LD);a=RA(a.ref);return b?new KD(b,a):null},ND=function(a,b,c,d){this.b=a||[];
this.A=b||[];this.o=c;this.g=d;this.value=!1},OD=function(a){if(!a)return null;
var b=ZA(a.condition,MD),c=ZA(a.notCondition,MD),d=VA(a.show_delay,!1);a=VA(a.hide_delay,!1);return b||c?new ND(b,c,d,a):null},PD=function(a,b,c){E(a.b,qa(b,!1),c);
E(a.A,qa(b,!0),c)},QD=function(a,b,c,d,e,f,k,m,l,p,t,u,x,B,C,H){this.id=a;
this.author=b;this.type=c;this.style=d;this.C=e;this.g=f;this.B=k||[];this.G=m||[];this.b=l;this.F=p;this.A=t;this.D=u;this.o=B;this.data=C;this.Qa=H},UD=function(a){if(!a)return null;
var b=RA(a.id),c=RA(a.author),d=UA(a.type,RD),e=UA(a.style,SD),f=TA(QA(a.TEXT)),k=TA(a.data),k=0!=k.length?Vf(k):{},m;var l=QA(a.segment);l?(RA(l.timeRelative),m=RA(l.spaceRelative),m=(l=ZA(l.movingRegion,HD))?new JD(m,l):null):m=null;var l=ZA(a.action,pD),p=ZA(a.trigger,OD),t=sD(QA(a.appearance));t||(t=sD({}));var u=UA(a.coordinate_system,TD,"video_relative"),x;x=(x=QA(a.image_source))?new tD(TA(x.standard_url),TA(x.video_id)):null;var B=VA(a.closeable,!0),C=TA(a.html_blob);a=TA(a.log_data);return b&&
d?new QD(b,c,d,e,f,m,l,p,t,u,x,B,0,C,k,a):null},WD=function(a){return(a=VD(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null},YD=function(a){return XD(a,function(a){return"click"==a.b})},XD=function(a,b){return Ph(a.B,b,void 0)},ZD=function(a,b,c){E(a.B,b,c)},VD=function(a,b){return fb(a.B,b,void 0)},$D=function(a,b,c){E(a.G,b,c)},aE=function(a,b){zi(a.G,b,void 0)},cE=function(a){return(a=bE(a))?ID(a):null},bE=function(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;
return a},dE=function(a,b){var c=cE(a);
return c&&b?vD(b,c.g,c.b?c.b:"xy"):1},eE=function(a,b,c){jD.call(this,a,b,c);
this.D=this.o=this.F=!1;this.C=5E3;this.b=null;this.Pg=M("div","iv-promo-contents");this.g=this.A=this.hc=null;this.B=new be(function(){this.hc.setAttribute("aria-hidden",!0);S(this.A,!1);S(this.g,!0)},700,this)},fE=function(a){var b=a.annotation.data,c;
if("cta"==a.annotation.style)c=6;else if("video"==a.annotation.style||"playlist"==a.annotation.style)c=7;a.C=b.collapse_delay_ms||a.C;var d=["iv-promo","iv-promo-inactive"];a.fa().setAttribute("aria-hidden",!0);a.fa().setAttribute("aria-label",P("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.fa().tabIndex=0;var e;if(b.image_url){e=M("div",["iv-promo-img","iv-click-target"]);var f=M("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&&!b.is_live?(f=M("span","iv-promo-video-duration",
b.video_duration),e.appendChild(f)):b.playlist_length&&(f=M("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.rg(e,WD(a.annotation),a.annotation.id,a.annotation.Qa,null,c)}f=WD(a.annotation);a.hc=f?M("a",{href:eB(f),"class":"iv-promo-txt"}):M("div","iv-promo-txt");var k,m,l;switch(a.annotation.style){case "cta":case "website":k=M("p",null,M("strong",null,b.text_line_1));m=M("p",null,M("span","iv-promo-link",b.text_line_2));J(a.hc,"iv-click-target");a.rg(a.hc,WD(a.annotation),
a.annotation.id,a.annotation.Qa,null,c);break;case "playlist":case "video":k=M("p",null,M("span",null,b.text_line_1));m=M("p",null,M("strong",null,b.text_line_2));b.is_live&&(k=m,m=M("span",["yt-badge","iv-promo-badge-live"],P("YTP_LIVE_NOW")));J(a.hc,"iv-click-target");a.rg(a.hc,WD(a.annotation),a.annotation.id,a.annotation.Qa,null,c);d.push("iv-promo-video");break;case "vote":k=M("p",null,M("strong",null,b.text_line_1)),m=M("p",null,M("span",null,b.text_line_2)),l=M("div","iv-promo-button-container"),
c=M("button",["iv-button","iv-promo-button"],M("span","iv-button-content",b.button_text)),a.context.b.N(c,"click",function(a){a.stopPropagation();ZB(this.context.logger,this.annotation.Qa,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.hc=lf("iv-promo-txt",this.Pg);a=lf("iv-promo-button-container",this.Pg);var d=M("div",["iv-promo-txt","iv-click-target"]),e=M("p",null,M("strong",null,c.text_line_3)),c=M("p",null,c.text_line_4);yf(d,e,c);Bf(a);Cf(d,this.hc);he(this.fa(),
"iv-promo-with-button");this.rg(d,WD(this.annotation),this.annotation.id,this.annotation.Qa)},a),l.appendChild(c),d.push("iv-promo-with-button")}k&&a.hc.appendChild(k);
m&&a.hc.appendChild(m);a.Pg.appendChild(a.hc);l&&a.Pg.appendChild(l);k=M("div","iv-promo-actions");a.g=M("button",["iv-promo-expand","ytp-button"]);a.g.title=P("YTP_EXPAND");a.context.b.N(a.g,"click",qa(a.wl,5E3),a);k.appendChild(a.g);S(a.g,!1);a.context.b.N(a.fa(),"mouseover",a.Qx,a);a.context.b.N(a.fa(),"mouseout",a.Px,a);a.context.b.N(a.fa(),"touchend",qa(a.wl,5E3),a);a.A=M("button",["iv-promo-close","ytp-button"]);a.A.title=P("YTP_CLOSE");a.context.b.N(a.A,"click",a.gG,a);k.appendChild(a.A);fe(a.fa(),
d);e&&xf(a.fa(),e);xf(a.fa(),a.Pg);xf(a.fa(),k)},gE=function(a){a.o||a.D||a.b||(J(a.fa(),"iv-promo-collapsed"),a.o=!0,a.B.start())},hE=function(a){a.B.stop();
a.o&&(he(a.fa(),"iv-promo-collapsed"),a.o=!1,a.hc&&a.hc.removeAttribute("aria-hidden"),S(a.g,!1),S(a.A,!0))},iE=function(a,b){a.b||(a.b=$d(function(){this.b&&(ae(this.b),this.b=null);
gE(this)},b,a))},kE=function(a,b,c){this.b={};
this.g=!1;this.B="ivTrigger:"+a;this.A=c;PD(b,function(a,b){var c=jE(b.state,b.b);this.A.subscribe(c,w(this.o,this,c,a));this.b[c]=a},this)},jE=function(a,b){var c="ivTriggerCondition:"+a;
return b?c+":"+b:c},mE=function(a,b,c){this.A=a;
this.annotation=b;this.b=c;this.g=null;this.o=this.isVisible=!1;lE(b,a)},lE=function(a,b){aE(a,function(c){return new kE(a.id,c,b)})},nE=function(a){lg(a.A,"resize",a.tt,a);
lg(a.A,"onVideoAreaChange",a.mr,a)},oE=function(a){a.g&&(a.g.stop(),a.g=null)},pE=function(a,b){this.start=a<b?a:b;
this.end=a<b?b:a},qE=function(){},rE=function(a,b,c,d,e,f,k,m){this.B=a;
this.D=b;this.C=c;this.F=d;this.b=e;this.g=f;this.A=n(k)?k:null;this.o=n(m)?m:null},sE=function(){this.na=[];
this.pa=[];this.Ac=[]},tE=function(a,b,c){0==db(a.na)?a.Ac.length-=2:(a.na.push(0),a.pa.push(1));
a.Ac.push(b,c);a.Zb=a.kd=[b,c]},uE=function(a,b,c,d){var e=a.Zb[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.Zb[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);
a.na.push(3);a.pa.push(1);a.Ac.push(b,c,d,90,e,f);a.xh=!1;a.Zb=[e,f]},wE=function(a,b){for(var c=a.Ac,d=0,e=0,f=a.na.length;e<f;e++){var k=a.na[e],m=vE[k]*a.pa[e];
b(k,c.slice(d,d+m));d+=m}},xE=function(a,b){this.G=a;
this.H=null==b?1:b},yE=function(a,b,c){this.A=a;
this.b=b;this.g=null==c?1:c},zE=function(){},AE=function(a){I.call(this);
this.G=a||hf();this.oa=null;this.Wc=!1;this.b=null;this.C=void 0;this.D=this.I=this.B=null},BE=function(a,b){a.I&&E(a.I,b,void 0)},CE=function(a,b,c,d,e){AE.call(this,e);
this.width=a;this.height=b;this.o=c||null;this.J=d||null},aaa=function(a){var b=a.Mf();
return b?b.width/(a.o?new bf(a.o,a.J):a.Mf()).width:0},DE=function(a,b){I.call(this);
this.Xg=a;this.ql=b;this[Fc]=!1},HE=function(a,b,c,d){DE.call(this,a,b);
a=this.ql;b=this.fa();c?(b.setAttribute("stroke",c.b),b.setAttribute("stroke-opacity",c.g),c=c.Ta(),v(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/aaa(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.ql;a=this.fa();if(d instanceof xE)a.setAttribute("fill",d.G),a.setAttribute("fill-opacity",d.H);else if(d instanceof rE){b="lg-"+d.B+"-"+d.D+"-"+d.C+"-"+d.F+"-"+d.b+"-"+d.g;var e=EE(c,b);if(!e){var e=FE(c,"linearGradient",{x1:d.B,
y1:d.D,x2:d.C,y2:d.F,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.b;ha(d.A)&&(f+=";stop-opacity:"+d.A);f=FE(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.g;ha(d.o)&&(f+=";stop-opacity:"+d.o);d=FE(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=GE(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")},IE=function(a,b){DE.call(this,a,b)},JE=function(a,b){DE.call(this,a,b)},KE=function(a,b,c,d){HE.call(this,a,b,c,d)},LE=function(a,b){DE.call(this,
a,b)},ME=function(a,b,c,d){HE.call(this,a,b,c,d)},NE=function(a,b){DE.call(this,a,b)},OE=function(a,b,c,d,e){CE.call(this,a,b,c,d,e);
this.g={};this.K=Bc&&!xc(526);this.H=new ym(this)},FE=function(a,b,c){a=a.G.b.createElementNS("http://www.w3.org/2000/svg",b);
c&&PE(a,c);return a},PE=function(a,b){for(var c in b)a.setAttribute(c,b[c])},RE=function(a,b,c,d){b=FE(a,"path",{d:QE(b)});
c=new ME(b,a,c,d);a.A.fa().appendChild(c.fa())},QE=function(a){var b=[];
wE(a,function(a,d){switch(a){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var e=d[3];b.push("A",d[0],d[1],0,180<Math.abs(e)?1:0,0<e?1:0,d[4],d[5]);break;case 4:b.push("Z")}});
return b.join(" ")},GE=function(a,b,c){if(b in a.g)return a.g[b];
var d="_svgdef_"+baa++;c.setAttribute("id",d);a.g[b]=d;a.F.appendChild(c);return d},EE=function(a,b){return b in a.g?a.g[b]:null},TE=function(){SE||(SE=new Yd(400),SE.start());
return SE},UE=function(){this.b=!1;
this.B=this.A=null},VE=function(a,b,c){a.A?(a.A.setSize(b,c),a.A.clear()):(b=new OE(b,c,void 0,void 0,void 0),a.A=b,a.A.Hi(),a.B=M("div"),b=a.A.fa(),a.B.appendChild(b));
return a.A},WE=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);
b&&Pb(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d},XE=function(a,b){var c=":"+(zE.getInstance().b++).toString(36);
b.setAttribute("result",c);a.appendChild(b);return c},caa=function(a,b){var c=XE(a,WE("feGaussianBlur",{"in":b,
stdDeviation:"1.8"})),c=XE(a,WE("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},WE("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=XE(a,WE("feComposite",{"in":c,in2:b,operator:"in"}));return XE(a,WE("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))},daa=function(a,b){var c=XE(a,WE("feOffset",{"in":b,
dx:"-7",dy:"-7"})),c=XE(a,WE("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=XE(a,WE("feColorMatrix",{"in":c,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0"})),d=XE(a,WE("feColorMatrix",{"in":b,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 100 0"})),d=XE(a,WE("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=XE(a,WE("feComposite",{operator:"out","in":c,in2:d}));return XE(a,WE("feComposite",{operator:"over","in":b,in2:c}))},eaa=function(a,b){return b},faa=function(a){var b=
WE("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";
E(a,function(a){a:{switch(a){case "bevel":a=caa;break a;case "dropshadow":a=daa;break a}a=eaa}c=a(b,c)});
return b},gaa=function(a){a=ge(a,function(a){return a in YE});
Cb(a,function(a,c){return YE[a]-YE[c]});
return a},haa=function(a){return fb(a,function(a){return"dropshadow"==a})?new eg(0,7,7,0):new eg(0,0,0,0)},$E=function(a,b,c,d,e){var f=d?d.Ta()/2+1:0;
b=ZE(b,c,f);RE(a,b,d,e)},ZE=function(a,b,c){var d=new sE;
tE(d,a.left+b+c,a.top+c);d.xb(a.left+a.width-b-c,a.top+c);uE(d,b,b,-90);d.xb(a.left+a.width-c,a.top+a.height-b-c);uE(d,b,b,0);d.xb(a.left+b+c,a.top+a.height-c);uE(d,b,b,90);d.xb(a.left+c,a.top+b+c);uE(d,b,b,180);d.close();return d},bF=function(a,b,c,d){var e=a.G;
return e?new rE(e.B*b/100,e.D*c/100,e.C*b/100,e.F*c/100,e.b,e.g,e.A,e.o):new xE(a.bgColor,aF(d,a.g))},aF=function(a,b){return a?Math.max(b,.9):b},cF=function(a,b){var c=gg(a),d=haa(b);
ka(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=Number(void 0),c.bottom+=Number(void 0),c.left-=Number(void 0));return new fg(c.left,c.top,c.right-c.left,c.bottom-c.top)},dF=function(a,b,c){if(c.length&&(b=jf("g",void 0,b),b.length)){var d=gaa(c);
if(d){c="effects:"+(d?d.join("|"):"");var e=EE(a,c);e?a=e:(d=faa(d),a=0<d.childNodes.length?GE(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}},eF=function(){UE.call(this);
this.o=0},iaa=function(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,f=a.left-b.x,k=Math.max(c,d,e,f);
if(0>k)return"i";switch(k){case c:return"t";case d:return"r";case e:return"b";case f:return"l"}return"i"},fF=function(){UE.call(this)},gF=function(a,b,c){UE.call(this);
this.o=a||0;this.D=b||0;this.C=c||!1},hF=function(a,b){var c=a.width,d=a.height,e=0,f=0;
0<b&&(a.width/a.height>b?(d=a.width/b,f=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new fg(e,f,c,d)},iF=function(){UE.call(this)},jF=function(){eF.call(this)},kF=function(a,b){this.b=a;
this.g=b||null},AD=function(a,b){var c;
c=a.g?BD(a.g,new kF(a.b)):a.b;var d=b.clone(),e=c.left;c=c.top;e instanceof $e?(d.left+=e.x,d.top+=e.y):(d.left+=e,ha(c)&&(d.top+=c));return d},lF=function(a,b,c,d,e){this.b=a;
this.U=b;this.C=c;this.aa=d;this.Y=e;this.K=!1;this.D=new iA(this);this.M=this.B=this.F=this.J=this.g=null;this.X=!1;this.ba=this.H=this.I=null;this.km=new wm(this.Ox,100,this);this.G=new be(this.rp,500,this);this.P=this.A=this.o=null},jaa=function(a,b){var c=w(function(a,c,f){c=f?mF(this,c,w(f,this)):mF(this,c);
this.D.N(b,a,c)},a);
c("mouseover","d",a.ut);c("mouseout","c",a.se);c("click","a");c("touchend","a")},kaa=function(a){if(a.b.D){var b;
XD(a.b,function(a){return"close"==a.type})?b=a.g:(a.o=M("div","annotation-close-button"),S(a.o,!1),Ei(a.o,"annotation_id",a.b.id),a.g.appendChild(a.o),b=a.o);
var c=function(a){a.stopPropagation()};
a.D.N(b,"click",mF(a,"b",c));a.D.N(b,"touchend",mF(a,"b",c))}},mF=function(a,b,c){return w(function(a){if(this.Y)c&&c(a);
else if(a.event.target instanceof window.Element){var e=a.event.target;S(e,!1);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(Tf(f,"annotation")){var k=window.document.createEvent("MouseEvent");k.initMouseEvent(a.event.type,a.event.bubbles,a.event.cancelable,a.event.view,a.event.detail,a.event.screenX,a.event.screenY,a.event.clientX,a.event.clientY,a.event.ctrlKey,a.event.altKey,a.event.shiftKey,a.event.metaKey,a.event.button,a.event.relatedTarget);f.dispatchEvent(k)}}finally{S(e,
!0)}}e=$q(a.target);a=new $e(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.aa.R(b,this.b)},a)},tF=function(a){if(a.g||a.A){var b=cE(a.b);
if(b){var c=nF(a);if(a.g){var b=BD(b,c),d=oF(pF(a.C));Xq(a.g,b.width,b.height);Mq(a.g,b.left,b.top);a.J=new fg(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=cE(a.b))&&d?uD(d,e.o,e.b?e.b:"xy"):1;var f=dE(a.b,d),d=a.b.b;d.F?d=d.F:(d="speech"==a.b.style?1.6:.8,d=new eg(d,d,d,d));d=new eg(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.B&&(d.right+=1.5*c.b.height/100);a.g.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+d.left+"px";"label"==a.b.style&&a.F&&(a.F.style.padding=
a.g.style.padding);var d=c.b,k=!1,m=0,l=0,p;p=oF(pF(a.C));var t=a.C.app.ea,u=pF(t.b).Da(),u=new fg(0,0,u.width,u.height);if(t.B.g&&!qF(t)){if(T(t.b).Ja){var x=rF(t)?69:48;u.top+=x;u.height-=x}t.A&&(u.height-=rF(t.A.b)?72:50)}hg(p,u)?p=null:(u.top+=20,u.height-=40,"player_relative"!=a.b.F&&(u.left-=p.left,u.top-=p.top),p=u);p&&(m=p.top-(b.top+b.height),l=b.top-(p.top+p.height),k=0<m||0<l);if(k&&p){d=p;e=m;var f=l,B;a.B&&(l=sF(a,23,b,e,f),a.o&&(B=43-l.width,0<B&&(b.left+l.left-B>d.left&&(l.left-=B),
l.width+=B)),B=l,Xq(a.B,l.width,l.height),Mq(a.B,l.left,l.top));a.o&&(B?b=new $e(B.left+B.width-23-18,a.X?B.top+2:B.top+B.height-18-2):(B=sF(a,18,b,e,f),b=new $e(B.left,B.top),Xq(a.o,B.width,B.height)),Mq(a.o,b));a.M=new fg(a.J.left+B.left,a.J.top+B.top,B.width,B.height);a.I=a.D.N(pF(a.C),"mousemove",a.eG)}else a.B&&(B=e/f*d.height*4.2/100,B=new bf(B,B),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*d.height/100,B=new fg(b.width-B.width-e,b.height-B.height-e,B.width,B.height)):B=new fg(b.width-
B.width-3*d.height/100,(b.height-B.height)/2,B.width,B.height),Xq(a.B,B.width,B.height),Mq(a.B,B.left,B.top)),a.o&&(B=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Mq(a.o,B&&e?new $e(b.width-9,-9):B?new $e(b.width-9,45<b.height?9:b.height-9):e?new $e(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new $e(45<b.width?b.width-9-18:-9,b.height-9):new $e(-9,45<b.height?9:b.height-9)))}a.A&&a.A.g(a.b,c);if(a.g){c=a.g;b=a.b.b;c.style.color="highlightText"==a.b.style?b.H:b.B;B=oF(pF(a.C));
c.style.fontSize=360*b.textSize*dE(a.b,B)/100+"px";B=a.b.style;c.style.textAlign=b.textAlign?b.textAlign:"title"==B||"highlightText"==B?"center":"left";b.D&&(c.style.fontWeight=b.D);a=a.g;c=a.style.overflow;B=(b=lf("annotation-link-icon",a))?br(b):!1;e=(d=lf("annotation-close-button",a))?br(d):!1;B&&S(b,!1);e&&S(d,!1);l=f="";if(m=lf("inner-text",a))f=m.style.overflow,l=m.style.position,m.style.overflow="visible",m.style.position="static";a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||
a.scrollWidth>a.offsetWidth){p=k=gr(a);t=5;for(u=Math.floor(k/2);u;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(t=p,p=Math.min(p+u,k)):p=Math.max(p-u,t),u=Math.floor(u/2),a.style.fontSize=p+"px";p!=t&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=t+"px")}a.style.overflow=c;m&&(m.style.overflow=f,m.style.position=l);e&&S(d,!0);B&&S(b,!0)}}}},sF=function(a,b,c,d,e){var f=0<e;
b=new fg(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),J(a.g,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),J(a.g,"annotation-extend-up"),a.X=!0);return b},uF=function(a){return"label"!=a.b.style||a.A.b},nF=function(a){var b;
b=oF(pF(a.C));if("player_relative"==a.b.F){var c=pF(a.C).Da();b=new fg(-b.left,-b.top,c.width,c.height)}else b=new fg(0,0,b.width,b.height);return new kF(b,a.P?cE(a.P):null)},vF=function(a,b){return b?new fg(a.x+b.left,a.y+b.top,b.width,b.height):null},wF=function(a){gq.call(this,a);
this.aa=!0;this.Ea="iv-module";this.logEvent="iv";this.I=0;this.A={};this.J={};this.G=new UB(a);a=laa;this.B=new or(this);G(this,this.B);this.subscribe("onHideControls",this.sB,this);this.subscribe("onShowControls",this.KC,this);this.subscribe("presentingplayerstatechange",this.nC,this);this.subscribe("resize",this.Xq,this);this.subscribe("d",this.VF,this);this.subscribe("c",this.se,this);this.subscribe("a",this.cA,this);this.subscribe("b",this.DA,this);this.subscribe("vast_info_card_add",this.iD,
this);this.P=M("DIV",[a.wv,"html5-stop-propagation"]);this.U=M("DIV",a.Tu);this.H=this.g=this.o=this.C=null;this.M=[]},xF=function(a,b){for(var c={},d=0;d<b.attributes.length;d++){var e=b.attributes[d];
c[e.name]=e.nodeValue}for(d=0;d<b.childNodes.length;d++)if(e=b.childNodes[d],e.tagName){var f;if(c[e.tagName])f=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){T(a.b).experiments.$("text_content_for_xml_node_value")&&e.textContent?c[e.tagName]=e.textContent.trim():0<e.childNodes.length&&(f=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof f?f.trim():f);continue}else f=[],c[e.tagName]=f;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):
f.push(""):e&&f.push(xF(a,e))}return c},yF=function(a,b,c){return!(a.loaded&&a.I==b&&a.b.getVideoData().videoId==c)},naa=function(a,b){var c=maa(a,b);
if(!c&&"marker"!=b.type)return null;$D(b,function(a){a=w(this.eD,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new mE(a.X,b,c)},oaa=function(a,b){var c=wF.g(),d=null;
switch(b.type){case "branding":if(T(a.b).Ad)break;a.C.element.appendChild(c);d=new kD(c,zF(a),b);break;case "promotion":mr(a.b,c,4),d=new eE(c,zF(a),b)}d&&d.rj();return d},paa=function(a){var b=a.b.getVideoData();
if(b.yf){var c=T(a.b),d=c.H.remove(b.videoId);if(d){var e={format:"XML",dd:{}};c.experiments.$("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.b&&(e.dd.gaming="1");e.gc=w(function(a,b,c){yF(this,a,b)||(a=Nj(c)&&c.responseXML?c.responseXML:null)&&AF(this,a)},a,a.I,b.videoId);
lv()&&(e.gc=BF(a,e.gc));e.Hb={ic_only:"1"};CF(e,d);Sj(b.yf,e)}}},CF=function(a,b){a.method="POST";
a.Hb=a.Hb||{};b.Ye&&(a.Hb.ic_xml=b.Ye);b.vg&&(a.Hb.ic_track=b.vg)},qaa=function(a){var b=new Q(["div"]);
S(b.element,!1);var c=new RC(a.b,b.element,zF(a));b.b(a.C.element);c.rj();return c},zF=function(a){a.H||(a.H=new lD(new iA(a),T(a.b),a.b.getVideoData(),a.G,a.b,a.X));
return a.H},AF=function(a,b){for(var c=!1,d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var f=xF(a,d[e]),k=null;
try{k=UD(f)}catch(m){}k&&(wF.o(k)?(f=oaa(a,k))&&(a.J[k.id]=f):wF.B(k)?(a.g||(a.g=qaa(a)),"card"==k.type?YC(a.g,k):ZC(a.g,k),c=!0):(f=naa(a,k))&&(a.A[k.id]=f))}c&&DF(a.b);Pb(a.A,function(a){var b=a.annotation;b.g&&b.g.g&&(b=this.A[b.g.g])&&(a.b.P=b.annotation)},a)},raa=function(a,b,c,d){d?EF(a,b,c):FF(a,b,c)},FF=function(a,b,c){if(b=a.A[b])oE(b),c&&c.g?(a=w(a.qp,a,b),b.g=new be(a,2E3),b.g.start()):a.qp(b)},EF=function(a,b,c){if(b=a.A[b])oE(b),c&&c.o?(a=w(a.Zr,a,b),b.g=new be(a,2E3),b.g.start()):a.Zr(b)},
GF=function(a,b,c){if("new"==b.target)return!1;
var d=eB(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!gB(d))return!1;d=Hj(d);if(d.list||d.p)return!1;b=iB(b);if(!b)return!1;if(c==b)return!0;a=T(a.b);return a.C&&a.ra?!0:!1},maa=function(a,b){if(saa(b)){var c=b.D||XD(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new lF(b,w(a.P.appendChild,a.P),a.b,a.X,c)}return null},saa=function(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;
if("text"==a.type)for(var b in SD)if(a.style==SD[b])return!0;return!1},HF=function(a,b,c,d){a.R(jE(b,d),c,d)},BF=function(a,b){return w(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);
a.unshift(b);b=qa.apply(window,a);this.M.push(mv(b,void 0))}},a)},IF=function(a){return!!a.g&&a.g.isAvailable()},JF=function(a){IF(a);
return!!a.g&&a.g.B},KF=function(a,b,c){IF(a);
a.g&&(b?a.g.kh(!!c):a.g.ti())},LF=function(a,b,c){a.b.R(b?"cardsteasershow":"cardsteaserhide",c)},MF=function(){Ri({YTP_TRANSLATE_MENU_ITEM:"D\u1ecbch ph\u1ee5 \u0111\u1ec1",
YTP_CONTRIBUTE_MENU_ITEM:"Th\u00eam ph\u1ee5 \u0111\u1ec1",YTP_ASR_SETTINGS_LABEL:"Ph\u1ee5 \u0111\u1ec1 t\u1ef1 \u0111\u1ed9ng",YTP_LANGUAGE_OFF:"T\u1eaft",YTP_FONT_FAMILY:"H\u1ecd ph\u00f4ng ch\u1eef",YTP_FONT_SIZE:"K\u00edch th\u01b0\u1edbc ph\u00f4ng ch\u1eef",YTP_FONT_COLOR:"M\u00e0u ph\u00f4ng ch\u1eef",YTP_FONT_OPACITY:"\u0110\u1ed9 m\u1edd ph\u00f4ng ch\u1eef",YTP_BACKGROUND_COLOR:"M\u00e0u n\u1ec1n",YTP_BACKGROUND_OPACITY:"\u0110\u1ed9 m\u1edd c\u1ee7a n\u1ec1n",YTP_WINDOW_COLOR:"M\u00e0u c\u1eeda s\u1ed5",
YTP_WINDOW_OPACITY:"\u0110\u1ed9 m\u1edd c\u1ee7a c\u1eeda s\u1ed5",YTP_COLOR_WHITE:"M\u00e0u tr\u1eafng",YTP_COLOR_YELLOW:"M\u00e0u va\u0300ng",YTP_COLOR_GREEN:"M\u00e0u xanh l\u1ee5c",YTP_COLOR_CYAN:"M\u00e0u l\u1ee5c lam",YTP_COLOR_BLUE:"M\u00e0u lam",YTP_COLOR_MAGENTA:"M\u00e0u \u0111\u1ecf t\u00eda",YTP_COLOR_RED:"M\u00e0u \u0111\u1ecf",YTP_COLOR_BLACK:"M\u00e0u \u0111en",YTP_FONT_FAMILY_MONO_SERIF:"Serif kh\u00f4ng c\u00e2n x\u1ee9ng",YTP_FONT_FAMILY_PROP_SERIF:"Serif c\u00e2n x\u1ee9ng",YTP_FONT_FAMILY_MONO_SANS:"Sans-Serif kh\u00f4ng c\u00e2n x\u1ee9ng",
YTP_FONT_FAMILY_PROP_SANS:"Sans-Serif c\u00e2n x\u1ee9ng",YTP_FONT_FAMILY_CASUAL:"Th\u00f4ng th\u01b0\u1eddng",YTP_FONT_FAMILY_CURSIVE:"Ch\u1eef th\u1ea3o",YTP_FONT_FAMILY_SMALL_CAPS:"Ch\u1eef vi\u1ebft hoa nh\u1ecf",YTP_CHAR_EDGE_STYLE:"Ki\u1ec3u c\u1ea1nh k\u00fd t\u1ef1",YTP_EDGE_STYLE_NONE:"Kh\u00f4ng c\u00f3",YTP_EDGE_STYLE_RAISED:"T\u0103ng",YTP_EDGE_STYLE_DEPRESSED:"Gi\u1ea3m",YTP_EDGE_STYLE_OUTLINE:"\u0110\u01b0\u1eddng vi\u1ec1n",YTP_EDGE_STYLE_DROP_SHADOW:"B\u00f3ng \u0111\u1ed5",YTP_CLICK_FOR_SETTINGS:"Nh\u00e2\u0301p va\u0300o $GEAR_ICON \u0111\u00ea\u0309 bi\u00ea\u0301t ca\u0300i \u0111\u0103\u0323t"})},
NF=function(a){this.B=[];
this.J=!1;this.C=a;this.F=[];this.G=[];Q.call(this,["div","caption-window",{id:"caption-window-"+a.id},["span","captions-text",{tabindex:0,"aria-live":"assertive"}]]);this.D=this.la["captions-text"];this.Z=null!=this.D.style["box-decoration-break"]||null!=this.D.style["-webkit-box-decoration-break"];this.type=this.K=this.H=0;this.o=null},OF=function(a){var b=1+.25*(a.Hf||0);
if(0==a.offset||2==a.offset)b*=.8;return b},PF=function(a,b){var c={};
if(null!=b.Nc||b.background){var d=null!=b.Nc?b.Nc:a.o.Ba.Nc,e=gD(b.background?b.background:a.o.Ba.background);c.background="rgba("+e[0]+","+e[1]+","+e[2]+","+d+")";a.Z&&(c["box-decoration-break"]="clone",c["border-radius"]=a.H/8+"px")}if(null!=b.Hf||null!=b.offset)c["font-size"]=a.K*OF(b)+"px",c["line-height"]="1.32em";d=1;if(b.color||null!=b.xe)e=gD(b.color||a.o.Ba.color),d=null==b.xe?a.o.Ba.xe:b.xe,e="rgba("+e[0]+","+e[1]+","+e[2]+","+d+")",c.color=e,c.fill=e;if(null!=b.Ed&&0!=b.Ed){e="rgba(34, 34, 34, "+
d+")";d="rgba(204, 204, 204, "+d+")";b.Ao&&(d=e=b.Ao);var f;switch(b.Ed){case 4:f="2px 2px 3px "+e+", 2px 2px 4px "+e+", 2px 2px 5px "+e;break;case 1:f="1px 1px "+e+", 2px 2px "+e+", 3px 3px "+e;break;case 2:f="1px 1px "+d+", 0 1px "+d+", -1px -1px "+e+", 0 -1px "+e;break;case 3:f="0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e}c["text-shadow"]=f}f="";switch(b.fontFamily){case 1:f='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:f='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';
break;case 3:f='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:f='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:f='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:f=Op()&&Pp()?"sans-serif-smallcaps":'"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';break;case 0:case 4:f='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}f&&(c["font-family"]=
f);f=b.offset;null==f&&(f=a.o.Ba.offset);switch(f){case 0:c["vertical-align"]="sub";break;case 2:c["vertical-align"]="super"}7==b.fontFamily&&(c["font-variant"]="small-caps");b.bold&&(c["font-weight"]="bold");b.dm&&(c["font-style"]="italic");b.Nm&&(c["text-decoration"]="underline");b.Al&&(c.visibility="hidden");return c},SF=function(a,b,c,d,e,f,k){var m=c.Ba;
if(!a.o||k)f=f||a.B,QF(a),a.o={},ta(a.o,RF),ta(a.o,b),ta(a.o,a.C.params),ta(a.o,c),k={},ta(k,RF.Ba),ta(k,b.Ba),a.C.params.Ba&&ta(k,a.C.params.Ba),c.Ba&&ta(k,c.Ba),a.o.Ba=k,a.K=e/360*16,a.H=a.K*OF(k),b="",a.o.zg&&(b=gD(a.o.windowColor),b="rgba("+b[0]+","+b[1]+","+b[2]+","+a.o.zg+")"),c={"background-color":b,display:!1===a.o.isVisible?"none":"","text-align":taa[a.o.textAlign]},a.Z&&(c["border-radius"]=b?a.H/8+"px":""),Gq(a.element,c),a.D.setAttribute("dir",1==a.o.ug?"rtl":"ltr");a.uh(f,d,m)},TF=function(a){for(var b=
1,c=0;c<a.length;c++){var d=a[c];
v(d.text)&&(b+=d.text.split("\n").length-1,d.D||0==c||b++)}return b},UF=function(a,b,c,d){a.J=d||a.J;
var e,f=a.F[0];if(f&&c.background==f.background&&c.Nc==f.Nc&&!!c.Al==!!f.Al&&c.Ed==f.Ed){for(d=0;d<a.F.length;d++)if(gc(c,a.F[d])){e=a.G[d];break}if(!e){d={};for(var k in c)c[k]!=f[k]&&(d[k]=c[k]);e=window.document.createElement("span");Gq(e,PF(a,d));a.G[0].appendChild(e);d=1}a.G.length=d;a.F.length=d}else a.G.length=0,a.F.length=0,e=window.document.createElement("span"),Gq(e,PF(a,c)),a.D.appendChild(e);if(v(b.text)){k=b.text.split("\n");f=a.C.Lg.length;for(d=0;d<k.length;d++){var m=0<d||0==a.B.length||
!b.D,l=!f||a.B.length+1>=f||d+1<k.length;!m||0==a.B.length&&0==d||e.appendChild(window.document.createElement("br"));k[d]?(m&&e.appendChild(window.document.createTextNode("\u00a0")),e.appendChild(window.document.createTextNode(k[d])),l&&e.appendChild(window.document.createTextNode("\u00a0"))):m!=l&&e.appendChild(window.document.createTextNode("\u00a0"))}a.F.push(c);a.G.push(e);a.B.push(b)}else e.appendChild(b.text)},QF=function(a){a.J=!1;
a.B=[];a.F=[];a.G=[];zf(a.D)},uaa=function(){this.A=[];
this.b=[];this.g=-1},VF=function(a,b){return b?a.b.concat(a.A):a.b},WF=function(a,b){switch(b.A){case "asr":var c=a.A;
fb(c,w(b.Na,b))||c.push(b);break;default:if(b.isDefault||0>a.g)a.g=a.b.length;c=a.b;fb(c,w(b.Na,b))||c.push(b)}},vaa=function(a,b){var c=eb(a.b,w(b.Na,b));
-1!=c&&(a.g=c)},XF=function(a){this.Op=!!a;
this.b=new uaa;this.B=[]},waa=function(a,b){return fb(VF(a.b,!0),function(a){return a.toString()==b})},YF=function(a){XF.call(this,a.mi);
this.g=null;this.o=void 0;this.A=null;this.B=a.captionTranslationLanguages},ZF=function(){this.ia=this.ga=!1;
this.P=1;this.o=20971520;this.C=8388608;this.b=window.NaN;this.J=3145728;this.K=62914560;this.M=10485760;this.G=window.NaN;this.I=2;this.wa=2.5;this.ra=2;this.ka=25;this.g=2097152;this.H=!1;this.D=1800;this.ba=2;this.A=1.15;this.B=1.05;this.Sa=!0;this.liveChunkReadahead=3;this.Ja=Mp("xboxone")||Rp()||Np();this.X=!1;this.Fa=Xl&&!0;this.Pa=!0;this.Z=this.Ca=this.F=!1;this.za=.8;this.ca=this.ma=this.Aa=!1;this.Y=15;this.Ga=10;this.aa=1.25;this.U=this.ea=!1},xaa=function(a,b){1080<b&&!a.ga&&(a.o=36700160,
a.C=5242880,a.J=10485760,a.g=4194304,a.ga=!0);
2160<b&&!a.ia&&(a.o=104857600,a.ia=!0)},$F=function(){this.na=[]},aG=function(a,b){F.call(this);
this.G=b;this.D=new $F;this.A=!0;this.F=this.o=this.B=this.C=this.b=null;this.g=window.NaN},yaa=function(a,b){a.C=b},bG=function(a){var b;
if(b=!a.A&&null!==a.b)b=a.b,b=b.b.Nh(b);return b&&!a.o&&!(a.b&&30<a.b.startTime-a.G.getCurrentTime())},cG=function(a){a.isDisposed();
var b;b=a.b;b=xs(b.b,b);if(!a.D.contains(b.b[0].o)){var c=gs(ts(b));a.o=Sj(c,{format:"RAW",gc:w(a.H,a),withCredentials:!0});a.B=b;var c=a.D,d=a.B.b[0].o,e=Ab(c.na,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.na[e-1]&&e<c.na.length&&1==c.na[e]-d?(pb(c.na,e),pb(c.na,e-1)):0<e&&1==d-c.na[e-1]?c.na[e-1]=d:e<c.na.length&&1==c.na[e]-d?c.na[e]=d:(wb(c.na,e,0,d),wb(c.na,e+1,0,d)))}a.b=db(b.b)},zaa=function(a){a.g=Ni(w(function(){bG(this)&&cG(this)},a),1E3);
bG(a)&&cG(a)},dG=function(a,b){XF.call(this);
this.A=a;this.g=new aG(new ZF,b)},eG=function(a){NF.call(this,a);
this.type=1},fG=function(a){NF.call(this,a);
J(this.element,"ytp-caption-window-rollup");this.type=2;this.U=0;this.M=window.NaN;var b="";if(a.params.Ik){for(var b="\u00a0",c=0;c<a.params.Ik;c++)b+="\u2014";b+="\u00a0"}this.I=window.document.createElement("span");Lf(this.I,b);this.P=null;this.Y=this.X=void 0;this.aa=new be(this.ca,433,this);G(this,this.aa)},gG=function(a,b,c,d,e,f,k){dq.call(this,a,a+b,{priority:c});
this.o=d;this.text=e;this.D=f||!1;this.g=k||null},hG=function(a,b,c,d,e){dq.call(this,a,a+b,{priority:c});
this.id=d;this.params=e;this.Lg=[]},iG=function(a){return new hG(0,0x8000000000000,0,"0",a||{})},jG=function(a,b,c,d){XF.call(this,d);
c||(c=Hj(a).hl||"",c=c.split("_").join("-"));this.A=Jj(a,{hl:c});this.o=b;this.C={};this.g=null},kG=function(){this.b=[];
this.g=[]},mG=function(a){kG.call(this);
this.g.push(iG());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)lG(a[b],this.b)},lG=function(a,b){var c=a.getAttribute("t"),c=c?(0,window.parseInt)(c,10):1E3*(0,window.parseFloat)(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?(0,window.parseFloat)(d):1E3*(0,window.parseFloat)(a.getAttribute("dur")||0),e=a.getAttribute("w")||"0",f=!!a.getAttribute("append"),k=f?6:5,m=fA("<html>"+(a.firstChild&&a.firstChild.nodeValue||"")+"</html>");
nG(c,d,k,e,f,m.firstChild,{},b)},nG=function(a,b,c,d,e,f,k,m){switch(f.tagName){case "b":k.bold=!0;
break;case "i":k.dm=!0;break;case "u":k.Nm=!0;break;case "font":var l=f.getAttribute("color");oG.test(l);k.color=l}for(l=0;l<f.childNodes.length;l++){var p=f.childNodes[l];if(3==p.nodeType)m.push(new gG(a,b,c,d,p.nodeValue,e||0<l,cc(k)?void 0:k));else{var t={};ta(t,k);nG(a,b,c,d,!0,p,t,m)}}},pG=function(a){kG.call(this);
this.A={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=b.getAttribute("id");a:{var d=b,e=this.A[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*(0,window.parseFloat)(d.getAttribute("start")):(0,window.parseInt)(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break a;case "define":e=null}e||(e=iG());var f={};e&&(ta(f,e.params),e=e.params.Ba)&&(f.Ba={},ta(f.Ba,e));d.getAttribute("rc")&&
(f.qh=(0,window.parseInt)(d.getAttribute("rc"),10));d.getAttribute("cc")&&(f.Ik=(0,window.parseInt)(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=(0,window.parseInt)(d.getAttribute("ap"),10),f.di=0>e||8<e?7:e);d.getAttribute("ah")&&(f.Wi=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.xj=(0,window.parseInt)(d.getAttribute("av"),10));d.getAttribute("vs")&&(f.isVisible=!!d.getAttribute("vs"));d.getAttribute("ju")&&(f.textAlign=(0,window.parseInt)(d.getAttribute("ju"),10));
d.getAttribute("pd")&&(f.ug=1,0==(0,window.parseInt)(d.getAttribute("pd"),10)&&(f.ug=0));d.getAttribute("bc")&&(f.Ba||(f.Ba={}),f.Ba.backgroundColor=d.getAttribute("bc"));d.getAttribute("bo")&&(f.Ba||(f.Ba={}),f.Ba.Nc=(0,window.parseInt)(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(f.Ba||(f.Ba={}),f.Ba.color=d.getAttribute("fc"));d.getAttribute("sd")&&(f.pE=(0,window.parseInt)(d.getAttribute("sd"),10));e=(0,window.parseInt)(d.getAttribute("d"),10)||1E3*(0,window.parseFloat)(d.getAttribute("dur"))||
0x8000000000000;d=d.getAttribute("id")||"0";b=new hG(b,e,0,d,f)}else b=null}this.A[c]=b;this.g.push(b);break;case "text":for(c=this.b.length,lG(a,this.b);c<this.b.length;c++)b=this.b[c],(f=this.A[b.o])&&f.Lg.push(b)}a=a.nextSibling}0==this.g.length&&this.g.push(iG())},xG=function(a,b){kG.call(this);
a.firstChild.getAttribute("format");this.A=!!b;for(var c={hj:{},rs:{},ts:{}},d,e,f=a.firstChild.childNodes,k=0;k<f.length;k++){var m=f[k];switch(m.tagName){case "head":d=m;break;case "body":e=m}}if(d)for(d=d.childNodes,f=0;f<d.length;f++){var l=d[f];switch(l.tagName){case "pen":var m=l.getAttribute("id"),k=c.hj,p=c,t=l,l={},u=t.getAttribute("p");u&&ta(l,p.hj[u]);p=qG(t,"b");null!=p&&(l.bold=p);p=qG(t,"i");null!=p&&(l.dm=p);p=qG(t,"u");null!=p&&(l.Nm=p);p=rG(t,"et");null!=p&&(l.Ed=p);p=rG(t,"of");
null!=p&&(l.offset=p);p=sG(t,"bc");null!=p&&(l.background=p);p=sG(t,"ec");null!=p&&(l.Ao=p);p=sG(t,"fc");null!=p&&(l.color=p);p=rG(t,"fs");void 0!=p&&0!=p&&(l.fontFamily=p);p=tG(t,"sz");void 0!=p&&(l.Hf=p/100-1);p=tG(t,"bo");void 0!=p&&(l.Nc=p/255);t=tG(t,"fo");void 0!=t&&(l.xe=t/255);k[m]=l;break;case "ws":k=l.getAttribute("id");c.ts[k]=uG(this,c,l);break;case "wp":k=l.getAttribute("id"),c.rs[k]=vG(c,l)}}if(e)for(d={},f=-1,e=e.childNodes,k=void 0,m=0;m<e.length;m++)switch(l=e[m],l.tagName){case "w":t=
wG(this,c,l);if(l=d[t.id])l.end=t.start;d[t.id]=t;this.g.push(t);break;case "p":var t=c,p=l,x=k,u=[],B=tG(p,"t")||0,C=tG(p,"d")||0,H=p.getAttribute("w")||"0",L=!!qG(p,"a");x&&"\n"==x.text&&!L&&(L=!0);for(var x=L?6:5,R=t.hj[p.getAttribute("p")],ra=p.childNodes,sa=0;sa<ra.length;sa++){var Aa=ra[sa];if("s"==Aa.tagName){0<sa&&(L=!0);var cb=Aa,Aa=B,re=C,bk=H,ck=L,Dm=x,dk=cb.textContent?cb.textContent:"",ek=t.hj[cb.getAttribute("p")],cb=tG(cb,"t")||0,Aa=new gG(Aa+cb,re-cb,Dm,bk,dk,ck,ek)}else Aa=new gG(B,
C,x,H,p.textContent?p.textContent:"",L,R);u.push(Aa)}p=u;if(0<p.length)for(k=p[p.length-1],t=d[p[0].o],t||(t=wG(this,c,l,f--),this.g.push(t)),l=0;l<p.length;l++)u=p[l],p[l].o=t.id,t.Lg.push(u),this.b.push(u)}},tG=function(a,b){var c=a.getAttribute(b);
if(null!=c)return(0,window.parseFloat)(c)},qG=function(a,b){var c=a.getAttribute(b);
if(null!=c)return"1"==c},rG=function(a,b){var c=tG(a,b);
if(void 0!=c)return c},sG=function(a,b){var c=a.getAttribute(b);
if(null!=c)return oG.test(c),c},uG=function(a,b,c){var d={},e=c.getAttribute("ws");
e&&ta(d,b.ts[e]);b=rG(c,"mh");null!=b&&(d.hq=b);b=rG(c,"ju");null!=b&&(d.textAlign=b);b=rG(c,"pd");null!=b?d.ug=b:a.A&&(d.ug=1);a=sG(c,"wfc");null!=a&&(d.windowColor=a);c=tG(c,"wfo");void 0!=c&&(d.zg=c/255);return d},vG=function(a,b){var c={},d=b.getAttribute("wp");
d&&ta(c,a.rs[d]);d=rG(b,"ap");null!=d&&(c.di=d);d=tG(b,"cc");null!=d&&(c.Ik=d);d=tG(b,"ah");null!=d&&(c.Wi=d);d=tG(b,"rc");null!=d&&(c.qh=d);d=tG(b,"av");null!=d&&(c.xj=d);return c},wG=function(a,b,c,d){d=d||c.getAttribute("id")||"0";
var e=tG(c,"t"),f=tG(c,"d")||0x8000000000000,k={};ta(k,vG(b,c));ta(k,uG(a,b,c));return new hG(e,f,0,d,k)},BG=function(a,b){kG.call(this);
this.g.push(iG());for(var c=a.split(Aaa),d=1;d<c.length;d++){var e=c[d],f=b;if(""!=e&&0!=e.search(Baa)){var k=e.split(Caa),m=0,l=k[m++].match(yG);l||(l=k[m++].match(yG));l&&(e=zG(l[1],f)||0,f=(zG(l[3],f)||0)-e,k=k.slice(m).join("\n"),m=fA("<html>"+k+"</html>"),m.getElementsByTagName("parsererror").length?this.b.push(new gG(e,f,5,"0",k,!1)):AG(this,e,f,5,"0",!1,m.firstChild,{},this.b))}}},AG=function(a,b,c,d,e,f,k,m,l){switch(k.tagName){case "b":m.bold=!0;
break;case "i":m.dm=!0;break;case "u":m.Nm=!0}for(var p=0;p<k.childNodes.length;p++){var t=k.childNodes[p];if(3==t.nodeType)l.push(new gG(b,c,d,e,t.nodeValue,f||0<p,cc(m)?void 0:m));else{var u={};ta(u,m);AG(a,b,c,d,e,!0,t,u,l)}}},zG=function(a,b){for(var c=a.split(":"),d=0,e=0;e<c.length;e++)d=60*d+(0,window.parseFloat)(c[e]);
return 1E3*d+b},Eaa=function(a,b,c){if("WEBVTT"==a.substring(0,6))return new BG(a,c||0);
a=fA(a);return a&&a.firstChild?"timedtext"==a.firstChild.tagName?3==(0,window.parseInt)(a.firstChild.getAttribute("format"),10)?(b=Daa.test(b.g),new xG(a,b)):new pG(a):new mG(a):new kG},DG=function(a){gq.call(this,a,"subtitlesModuleData");
this.Ea="captions";this.logEvent="cc";MF();this.aa=!0;this.Y=this.Z=!1;this.T=T(a);this.o=null;this.I=pF(a);this.W=a;this.C={Ba:{}};this.B={Ba:{}};this.ba=[];this.M={};this.P={};this.ia=this.J=this.ea=!1;var b=a=this.g=this.A=this.G=this.H=null;CG(this)||(a=new be(this.Pm,0,this),G(this,a),b=new be(this.RD,2E3,this),G(this,b));this.ga=a;this.ma=b;this.U=new or(this);G(this,this.U);this.ca=null},CG=function(a){return"3"!=a.T.A?!1:!!a.W.app.A.b.textTracks},EG=function(a,b){CG(a);
if(b&&a.o.captionTracks.length){var c=a.b.Lh().uo;if(2==c||3==c)return!0}if(1==a.T.ea||1==a.o.Ue||"alwayson"==a.o.od("yt:cc")||CG(a))return!0;c=mq(a,"module-enabled");return null!=c?!!c:"on"==a.o.od("yt:cc")},FG=function(a){return CG(a)?!a.o.sa:a.o.captionTracks.length&&a.b.Lh().Bi?!0:EG(a,!0)},HG=function(a){a.g&&a.g==a.A.de()&&GG(a);
a.A.im(w(a.ir,a),!0,CG(a)?"vtt":void 0,a.b.Lh())},JG=function(a){CG(a);
a.A.de()&&IG(a,a.A.de())},GG=function(a){a.g&&(a.g=null,CG(a)||(jq(a),a.ba=[],a.g=null,a.Pm()),a.A.Om())},IG=function(a,b,c){CG(a);
!b||a.g&&b.Na(a.g)||(null!=c&&(a.J=c),a.F?(a.g=b,KG(a),a.ym("control_subtitles_set_track",uu(b))):(GG(a),a.g=b,a.A.hm(b,w(a.jr,a)),a.Z=!0,a.b.va("captionschanged",uu(b))))},LG=function(a,b,c){b.migrated=!0;
a.C={Ba:{}};a.B={Ba:{}};var d=b.background;d&&(oG.test(d),b.backgroundOverride?a.B.Ba.background=d:a.C.Ba.background=d);if(d=b.color)oG.test(d),b.colorOverride?a.B.Ba.color=d:a.C.Ba.color=d;if(d=b.windowColor)oG.test(d),b.windowColorOverride?a.B.windowColor=d:a.C.windowColor=d;d=b.backgroundOpacity;null!=d&&(b.backgroundOpacityOverride?a.B.Ba.Nc=d:a.C.Ba.Nc=d);d=b.fontSizeIncrement;null!=d&&(b.fontSizeIncrementOverride?a.B.Ba.Hf=d:a.C.Ba.Hf=d);d=b.textOpacity;null!=d&&(b.textOpacityOverride?a.B.Ba.xe=
d:a.C.Ba.xe=d);d=b.windowOpacity;null!=d&&(b.windowOpacityOverride?a.B.zg=d:a.C.zg=d);d=b.charEdgeStyle;null!=d&&(b.charEdgeStyleOverride?a.B.Ba.Ed=d:a.C.Ba.Ed=d);d=b.fontFamily;null!=d&&(b.fontFamilyOverride?a.B.Ba.fontFamily=d:a.C.Ba.fontFamily=d);a.ks();c&&nq(a,"display-settings",b)},MG=function(a){var b=RF.Ba,b={background:b.background,
backgroundOpacity:b.Nc,charEdgeStyle:b.Ed,color:b.color,fontFamily:b.fontFamily,fontSizeIncrement:b.Hf,textOpacity:b.xe,windowColor:RF.windowColor,windowOpacity:RF.zg};ta(b,mq(a,"display-settings"));return b},NG=function(a,b,c){var d={};
ta(d,mq(a,"display-settings"));ta(d,b);LG(a,d,c)},PG=function(a){if(a.loaded){if(!CG(a)){var b=a.ma;
b.isActive()&&ce(b)}nq(a,"module-enabled",!1);GG(a);OG(a.b);a.J=!1;a.F?(KG(a),a.ym("control_subtitles_set_track")):a.b.va("captionschanged",{});CG(a)||JG(a)}},Faa=function(a){return DG.prototype.Va(a)?new DG(a):null},QG=function(a,b){CG(a);
if(b&&!a.G){var c=iG({ug:0});a.G=new NF(c);mr(a.b,a.G.element,4);var c=new gG(0,0,0,a.G.C.id,P("YTP_SAMPLE_SUBTITLES")),d=a.I.Da().width,e=oF(a.I).height;SF(a.G,a.C,a.B,d,e,[c])}else!b&&a.G&&(a.G.dispose(),a.G=null)},Gaa=function(a,b){return a&&v(a)&&oG.test(a)?a:b},Haa=function(a,b){return ha(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b},Iaa=function(a,b){if(a&&v(a)){var c=RG.indexOf(a);
return-1!=c?c:b}return b},Jaa=function(a,b){if(a&&v(a)){var c=SG.indexOf(a);
return-1!=c?c:b}return b},Kaa=function(a,b){return ha(a)&&!(0,window.isNaN)(a)?Ve(a,-2,4):b},KG=function(a){var b={};
a.g&&(b=uu(a.g));a.b.va("captionschanged",b)},UG=function(a){this.W=a;
this.g=null;this.b=new fg(0,0,0,0);this.B=new bf(0,0);this.o=this.A=0;TG&&xc(11)&&(this.g=window.document.createElement("canvas").getContext("2d"),xc(12.10532)||(this.A=3))},XG=function(a,b){if(null===a.g)return b;
var c=new bf(b.videoWidth,b.videoHeight);if(!cf(c,a.B)&&(a.g.canvas.width=c.width,a.g.canvas.height=c.height,a.b.top=0,a.b.left=0,a.b.width=c.width,a.b.height=c.height,a.B=c,0<a.A)){a.A=3;var d=VG(pF(a.W)),e=16/9;d<e?(a.b.width=c.width*d/e,a.b.left=Math.ceil(.5*(c.width-a.b.width)),a.b.width|=0):d>e&&(a.b.height=c.height*e/d,a.b.top=Math.ceil(.5*(c.height-a.b.height)),a.b.height|=0)}0<a.A&&(a.o^=1,2<=a.b.top?(a.o?WG(a,b,0,0,a.b.width,a.b.top-1):WG(a,b,0,b.videoHeight-a.b.top+1,a.b.width,a.b.top-1))&&
--a.A:2<=a.b.left&&(a.o?WG(a,b,0,0,a.b.left-1,a.b.height):WG(a,b,b.videoWidth-a.b.left+1,0,a.b.left-1,a.b.height))&&--a.A,0>=a.A&&(a.b.top=0,a.b.left=0,a.b.width=b.videoWidth,a.b.height=b.videoHeight));try{a.g.drawImage(b,a.b.left,a.b.top,a.b.width,a.b.height,0,0,a.B.width,a.B.height)}catch(f){if(!(f instanceof window.DOMException)||"IndexSizeError"!=f.name)throw f;}return a.g.canvas},WG=function(a,b,c,d,e,f){e>=f?(d+=Math.random()*f|0,f=1):(c+=Math.random()*e|0,e=1);
try{a.g.drawImage(b,c,d,e,f,c,d,e,f)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.g.getImageData(c,d,e,f).data;for(b=0;b<a.length;b+=4)if(255<a[b]+a[b+1]+a[b+2]+a[b+3])return!0;return!1},YG=function(a,b,c){this.F=b||!1;
this.C=c||null;this.b="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.B=new UG(a)},ZG=function(a,b){YG.call(this,a);
this.b="precision mediump float;\nuniform sampler2D uSplr;\nuniform int mode;\nvarying vec2 vTexCrd;\nuniform mat4 mLt;\nuniform mat4 mRt;\nvoid anaglyph(float x, float y) {\n  x *= 0.5;\n  vec4 cLt = texture2D(uSplr, vec2(x, y));\n  vec4 cRt = texture2D(uSplr, vec2(0.5 + x, y));\n  gl_FragColor = mLt * cLt + mRt * cRt;\n}\nvoid main(void) {\n  if (mode == 1) {\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  }\n  else if (mode == 0) {\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n  }\n}";
this.D=b;this.o=null;this.g=1;this.A=!0},Laa=function(a,b){if(!b.experiments.G&&!$G(b))return!1;
if(Vx(a)&&3!=a.aa&&4!=a.aa)return!0;if(!a.b)return!1;for(var c in a.b.b){var d=a.b.b[c].info.video;if(d&&1==d.A)return!0}return!1},aH=function(a,b){YG.call(this,a,!0,b);
this.b="precision highp float;\nuniform sampler2D uSplr;\nuniform sampler2D uNoiseSplr;\nuniform float seed;\nuniform float amount;\nuniform float offset;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr, vTexCrd).xyz, 1.0);\n  vec4 noiseCol = texture2D(uNoiseSplr, vTexCrd + seed);\n  float maxCol = max(max(col.x, col.y), col.z);\n  float amt = amount * smoothstep(0.0, 0.1, maxCol);\n  amt = amt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  col.xyz = col.xyz + (noiseCol.x - offset) * amt;\n  gl_FragColor = col;\n}";
this.A=null;this.W=a;this.I=T(a).experiments.$("white_noise_with_interval");this.G=T(a).experiments.b("white_noise_amount")||.05;this.H=T(a).experiments.b("white_noise_offset")||-.5;this.o=0},bH=function(a,b){aH.call(this,a,b);
this.b="precision highp float;\nuniform sampler2D uSplr;\nuniform float seed;\nuniform int mode;\nvarying vec2 vTexCrd;\nfloat noise(vec2 crd)\n{\n  return fract(sin(crd.y * 99.87 + crd.x * 0.0978) * seed);\n}\nvoid main(void) {\n  if (mode == 0) { gl_FragColor = texture2D(uSplr,vTexCrd); return; }\n  vec2 texCrdMinusx = vec2(vTexCrd.x - 0.00156, vTexCrd.y);\n  vec2 texCrdMinusy = vec2(vTexCrd.x, vTexCrd.y - 0.00277);\n  vec4 orjcol = texture2D(uSplr,vTexCrd);\n  vec4 col = orjcol * 1.8 -\n      texture2D(uSplr,texCrdMinusx) * 0.4 -\n      texture2D(uSplr,texCrdMinusy) * 0.4;\n  vec4 diff = orjcol * 2.0 -\n      texture2D(uSplr,texCrdMinusx) -\n      texture2D(uSplr,texCrdMinusy);\n  float fDiff = length(diff);\n  float maxCol = max(max(orjcol.x, orjcol.y), orjcol.z);\n  float namt = 0.035;\n  namt = namt * smoothstep(0.0, 0.1, maxCol);\n  namt = namt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  float noiseL = noise(gl_FragCoord.xy) * namt;\n  float eamt = smoothstep(0.0, 0.05, fDiff);\n  col = eamt * col + (1.0 - eamt) * orjcol;\n  col.xyz = col.xyz + ((1.0 - eamt) * noiseL);\n  gl_FragColor = col;\n}";
this.g=null;this.D=!1},cH=function(a){this.length=a.length||a;
for(var b=0;b<this.length;b++)this[b]=a[b]||0},dH=function(a){this.length=a.length||a;
for(var b=0;b<this.length;b++)this[b]=a[b]||0},eH=function(a){var b=a[0],c=a[1];
a=a[2];return Math.sqrt(b*b+c*c+a*a)},fH=function(){this.b=new window.Float32Array(16);
this.A=new window.Float32Array(16);this.g=new window.Float32Array(16);this.identity()},gH=function(a,b){for(var c=0;16>c;c+=4)a.g[c+0]=a.b[c+0]*b[0]+a.b[c+1]*b[4]+a.b[c+2]*b[8]+a.b[c+3]*b[12],a.g[c+1]=a.b[c+0]*b[1]+a.b[c+1]*b[5]+a.b[c+2]*b[9]+a.b[c+3]*b[13],a.g[c+2]=a.b[c+0]*b[2]+a.b[c+1]*b[6]+a.b[c+2]*b[10]+a.b[c+3]*b[14],a.g[c+3]=a.b[c+0]*b[3]+a.b[c+1]*b[7]+a.b[c+2]*b[11]+a.b[c+3]*b[15];
c=a.b;a.b=a.g;a.g=c},hH=function(a){for(var b=[],c=0,d=0;d<a.length;d++){for(var e=a.charCodeAt(d);255<e;)b[c++]=e&255,e>>=8;
b[c++]=e}return b},Maa=function(a){return zi(a,function(a){a=a.toString(16);
return 1<a.length?a:"0"+a}).join("")},lH=function(a,b){fa(a);
iH();for(var c=b?jH:kH,d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,m=k?a[e+1]:0,l=e+2<a.length,p=l?a[e+2]:0,t=f>>2,f=(f&3)<<4|m>>4,m=(m&15)<<2|p>>6,p=p&63;l||(p=64,k||(m=64));d.push(c[t],c[f],c[m],c[p])}return d.join("")},mH=function(a){var b=[];
Naa(a,function(a){b.push(a)});
return b},Naa=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=nH[c];
if(null!=e)return e;if(!z(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
iH();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),m=c(64);if(64===m&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=m&&b(k<<6&192|m))}},iH=function(){if(!kH){kH={};
nH={};jH={};for(var a=0;65>a;a++)kH[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),nH[kH[a]]=a,jH[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(nH["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}},oH=function(a){var b=new window.Float32Array(3),c=eH(a);
b[0]=a[0]/c;b[1]=a[1]/c;b[2]=a[2]/c;a=1/(Math.abs(b[0])+Math.abs(b[1])+Math.abs(b[2]));b[0]*=a;b[1]*=a;b[2]*=a;0<b[2]&&(a=(1-Math.abs(b[0]))*(0<b[1]?1:-1),b[0]=(1-Math.abs(b[1]))*(0<b[0]?1:-1),b[1]=a);b[0]*=.5;b[1]*=.5;b[2]*=.5;b[0]+=.5;b[1]+=.5;a=Math.floor(256*b[0]);b=Math.floor(256*b[1]);256==a&&--a;256==b&&--b;return{x:a,y:255-b}},Oaa=function(a){function b(a,b){var c,d=b;
for(c=0;a[c]!=b;++c){var e=a[c];a[c]=d;d=e}a[c]=d;return c}
var c=a.length,d=Array(2*c+3),e=0;d[0]=0;d[1]=c>>8&255;d[2]=c&255;for(var e=3,f=Array(256),k=Array(256),m=Array(256),l=0;256>l;++l)f[l]=l,k[l]=l,m[l]=0;for(var p=0,t=0,l=0;l<c;++l){var u=a[l],x=b(f,u);k[t]==u?m[t]+=4:0==(m[t]>>=1)&&(k[t]=u,m[t]=1);1<m[u]&&b(f,k[u]);t=u;0==x&&++p;if(0!=x||l+1==c){for(;0<p;)--p,0==p%2?d[e++]=0:d[e++]=254,p>>=1;if(255==x||254==x)d[e++]=255;0!=x&&(d[e++]=x)}}return d.slice(0,e)},Paa=function(){this.C=this.F=this.g=this.D=this.A=0;
this.B=new window.Float32Array(3);this.o=-1;this.b=[]},pH=function(a,b){this.F=a;
this.M=b;this.A=new fH;this.Y=this.ba=this.aa=this.Ga=null;this.o=.872;this.P=this.X=this.U=this.g=this.b=0;this.D=!0;this.B=this.H=0;this.C=new window.Float32Array(3);this.I=new UG(a);this.Z=new Paa},qH=function(a,b){pH.call(this,a,b);
this.K=null;this.G=0;this.J=!0},rH=function(){kk.call(this);
this.b={}},sH=function(a,b,c){if(!a.b[b]&&(c.Ye||c.vg)){var d=a.b,e=c;
Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.R("vast_info_card_add",b)}},tH=function(){var a=[],b=[];
return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}},uH=function(a){var b="";
if(a)for(var c=0;c<a.length;c++)b+=a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3)+",";return b},vH=function(a,b){if(!a)return-1;
for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c;return-1},wH=function(a,b){var c=vH(a,b);
return 0<=c?a.end(c):window.NaN},xH=function(a){return a&&a.length?a.end(a.length-1):window.NaN},yH=function(a,b){var c=wH(a,b);
return 0<=c?c-b:0},zH=function(){I.call(this);
this.g=null;this.B=this.o=!1},CH=function(a,b){var c="";
b&&(AH(a,b),c=iw(b));a.b.src&&""==c||(c&&a.b.src!=c&&BH(a,c),b&&b.b||a.load(),a.B||(a.addEventListener("volumechange",w(a.Fo,a)),a.B=!0))},EH=function(a){a.b.ended&&a.seekTo(0);
if(!a.b.src&&a.g){var b=iw(a.g);BH(a,b);a.g.b||a.load()}a.play();DH&&7<=vx&&hm(a,"playing",w(function(){Mi(w(this.Ro,this,this.getCurrentTime(),0),500)},a))},AH=function(a,b){a.g&&a.g.Na(b)||(a.g&&a.g.dispose(),a.g=b)},$y=function(a){return yH(FH(a),a.getCurrentTime())},GH=function(a){a.b.src&&(Dw&&0<a.getCurrentTime()&&a.seekTo(0),a.b.removeAttribute("src"),a.load(),a.g&&a.g.b&&AH(a,null))},HH=function(a){var b=FH(a);
return 0<xH(b)&&a.b.duration?wH(b,a.getCurrentTime()):0},IH=function(a){var b=a.b.duration;
return window.Infinity==b?1:b?HH(a)/b:0},Qaa=function(a,b,c){this.target=a;
this.type=b;this.b=c||null},JH=function(a){zH.call(this);
this.b=a;this.A={}},BH=function(a,b){var c=a.b.playbackRate;
a.b.src=b;a.b.playbackRate=c},FH=function(a){return a.b.buffered||tH()},KH=function(a,b){b?a.b.setAttribute("crossorigin","anonymous"):a.b.removeAttribute("crossorigin")},LH=function(a,b,c){Gq(a.b,b,c)},NH=function(){if(null==q("_lact",window)){var a=(0,window.parseInt)(Ki("LACT"),10),a=(0,window.isFinite)(a)?D()-Math.max(a,0):-1;
ba("_lact",a,window);-1==a&&MH();fm(window.document,"keydown",MH);fm(window.document,"keyup",MH);fm(window.document,"mousedown",MH);fm(window.document,"mouseup",MH);Xi("page-mouse",MH);Xi("page-scroll",MH);Xi("page-resize",MH)}},MH=function(){null==q("_lact",window)&&(NH(),q("_lact",window));
var a=D();ba("_lact",a,window);$i("USER_ACTIVE")},AB=function(){var a=q("_lact",window);
return null==a?-1:Math.max(D()-a,0)},Raa=function(a){a=a.responseText;
if(!va(a,")]}'"))return OH(""),"";a=JSON.parse(a.substr(4)).id;OH(a);return a},QH=function(){Mi(function(){PH=null},3E5)},RH=function(){return q("yt.www.ads.biscotti.lastId_")||""},OH=function(a){ba("yt.www.ads.biscotti.lastId_",a,void 0)},SH=function(a,b){this.experimentIds=a?a.split(","):[];
this.flags=Dj(b||"","&");var c={};E(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.A=!!c["9406444"];this.B=!!c["9405409"];this.C=!!c["9416855"];this.G=!!c["9406692"];this.F=!!c["9406693"]||!!c["9417210"]&&eu&&xc(8);this.Nw=!0;this.enableAudioCast=!!c["9408394"];this.g=!!c["9414740"];this.D=!!c["9414672"];this.showEndToEndLatency=!!c["9416891"];this.H=!!c["9407182"]},aI=function(a){F.call(this);
a=hc(a);this.M={};this.experiments=new SH(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.Aa=b;this.G=(this.C=Saa.test(this.Aa))?Xu("",a.loaderUrl):this.Aa;this.Ma=Jp(this.G);this.aa=(this.lk=(this.Ub=Uu(!1,a.ssl_stream))||Uu(!1,a.ssl))?"https":"http";this.baseYtUrl=Gp(a.BASE_YT_URL)||Gp(this.Aa)||this.aa+"://www.youtube.com/";"adunit"==a.el?TH.test(this.G)?this.ua="adunit":this.ua="embedded":"embedded"==a.el||this.Ma?
this.ua=Vu(this.ua,a.el,Taa):a.el&&(this.ua="embedded");NH();b=null;var c=a.ps,d=kb(UH,c);!c||d&&!this.Ma||(b=c);this.b=b;this.D=(this.Sb=kb(UH,this.b))&&"play"!=this.b;this.yb=!this.D;this.g={};this.g.c=a.c||"web";this.g.cver=a.cver||"html5";this.g.cplayer="UNIPLAYER";this.Y=!(!Wt().defaultPlaybackRate||Cc&&!Mp("chrome")||ux||VH||Mp("android")||Mp("silk"));this.isMobile=Uu("blazer"==this.b,a.is_html5_mobile_device);this.useMediaVolume="3"==this.A||this.isMobile||Uu(!1,a.use_media_volume);if(b=!this.useMediaVolume)b=
Wt(),c=b.muted,b.muted=!c,b=b.muted!=c;this.U=b;this.Te=WH;(ux||VH||eu)&&"blazer"!=this.b&&XH(this);this.Ja=Uu("adunit"!=this.ua&&"detailpage"!=this.ua&&!this.Sb,a.showinfo);this.Ib=Uu(!1,a.playsinline);b=this.isMobile&&YH&&2.3>=zw;c=ZH(this)||!b&&Uu("native"==this.b,a.use_native_controls)?"3":"1";this.A="0"!=a.controls?c:"0";this.useTabletControls=this.isMobile;this.color=Vu("red",a.color,Uaa);this.Pe="3"==this.A||Uu(!1,a.modestbranding)&&"red"==this.color;Uu(!1,a.nologo)&&(c=this.G,Vaa.test(c),
Jp(c));this.K=0==this.G.indexOf(this.baseYtUrl);this.hd=(c=!this.K&&"detailpage"!=this.ua&&!this.D&&!this.Sb)&&!this.Pe&&"1"==this.A;this.Ad="embedded"==this.ua&&c&&!this.Ja&&!this.hd;this.Jg=this.Qe=b;this.I=VH?!1:!0;this.Le=this.C||!1;this.ba="detailpage"==this.ua?"":(this.G||a.post_message_origin||"").substring(0,128);b=this.experiments.$("legacy_cast")||Uu(!0,a.enablecastapi)||!this.Ma;this.o=!a.disableCast&&b&&"1"==this.A&&!this.isMobile&&("detailpage"==this.ua||"embedded"==this.ua||"profilepage"==
this.ua);this.ib=(this.J=Uu(!1,a.autoplay))||"detailpage"==this.ua;this.Ua=!this.isMobile&&!Tp()&&!Mp("nintendo 3ds")||Uu(!1,a.autoplayoverride);b=("detailpage"==this.ua||"adunit"==this.ua)&&"blazer"==this.b;this.Ca=!Uu(!0,a.fs);this.ka=!this.Ca&&(b||Th());this.Mc=Uu(!this.Sb,a.rel);this.wf="adunit"!=this.ua;this.Z="profilepage"==this.ua;this.Fa="blazer"==this.b||"mweb-polymer"==this.b;switch(this.b){case "blogger":b="bl";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b=
"gl";break;case "play":b="gp";break;case "picasaweb":b="pw";break;default:b="yt"}this.ca=b;this.Eb=Xu("",a.authuser);this.xf=!!this.Eb&&Uu(!this.D,a.showwatchlater);this.ub=Uu(!1,a.disablekb);this.pageId=Xu("",a.pageid);this.Re=$u(Au,a.vq);this.Se=Xu("",a.playerapiid);this.Ve=Uu(!0,a.canplaylive);this.Ke=Uu(this.Sb,a.ss);(b=a.video_container_override)?(c=b.split("x"),2!=c.length?b=null:(b=(0,window.parseInt)(c[0],10),c=(0,window.parseInt)(c[1],10),b=(0,window.isNaN)(b)||(0,window.isNaN)(c)||0>=b*
c?null:new bf(b,c))):b=null;this.Vd=b;this.mute=this.Ma&&Uu(!1,a.mute);this.storeUserVolume=!this.mute&&Uu("0"!=this.A,a.store_user_volume);this.Ue=Uu(!1,a.retryneterr)&&this.Ma;this.Xd="3"==this.A?3:Vu(void 0,a.iv_load_policy,zx);this.ra=Uu(!1,a.iv_allow_in_place_switch);this.Za=Xu("",a.cc_lang_pref);this.ea=Vu(void 0,a.cc_load_policy,zx);this.ga=void 0==a.content_v?void 0:a.content_v.toString();this.Me=void 0==a.framer?void 0:a.framer.toString();this.ia=Xu("en_US",a.hl);this.region=Xu("US",a.cr);
this.hostLanguage=Xu("en",a.host_language);this.Oe=Uu(!1,a.privembed);this.Bb="";this.wa=new tk;this.B=Uu(!0,a.deviceHasDisplay);this.$a=Wu(this.$a,a.ismb);$H(this,a);this.M=a;this.H=new rH;this.P=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.g.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.$("disable_innertube_config_reporting")||Pi(Error("MISSING_INNERTUBE_CONFIG,api_key="+b.innertube_api_key+",api_version="+b.innertube_api_version+
",interface="+this.g.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.Ne={apiaryHost:Xu("",b.apiary_host),Bw:Xu("",b.apiary_host_firstparty),gapiHintOverride:Uu(!1,b.gapi_hint_override),gapiHintParams:Xu("",b.gapi_hint_params),innertubeApiKey:Xu("",b.innertube_api_key),innertubeApiVersion:Xu("",b.innertube_api_version),Tl:this.g.c,innertubeContextClientVersion:Xu("",b.innertube_context_client_version),Vl:this.hostLanguage,
Ul:this.region};this.jc=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&Uu(!1,a.airplay_button);this.F=new yw(this.experiments,this.B,"web"==this.g.c.toLowerCase().substr(0,3)||Pp()||Qp());this.enableSafetyMode=Uu(!1,a.enable_safety_mode);this.gb="detailpage"==this.ua&&"blazer"!=this.b&&"mweb-polymer"!=this.b},bI=function(a,b){a.qb=b.get("d",a.qb);
a.Pa=b.get("f",a.Pa)},$H=function(a,b){a.adFormat=void 0;
var c;(c=b.adformat)||(c=(c=b.attrib)&&$b(cI,c)&&$b(dI,c)?dI[c]+"_"+cI[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],f=a.experiments.$("disable_monetization_on_indisplay_playbacks"),d=!(1==d[1]&&8==e)&&(6==e&&!f||7==e||8==e||10==e);if(a.C||a.Ma||d)a.adFormat=c,a.M.adformat=b.adformat,d||(a.ua="adunit")}}if(c=b.video_id&&b.video_id!=a.Bb)a.Bb=b.video_id;(b.adpings||c)&&b.adpings&&Fj(b.adpings);a.yb?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||
"s.youtube.com",a.experiments.H&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.Wd=d;a.Ud="//"+a.Wd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.Yd=d,a.M.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.M.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var k in eI)c=eI[k],d=b[c],void 0!=d&&(a.g[c]=d);!a.ma&&b.cl&&(a.ma=+b.cl);a.userAge=Wu(a.userAge,b.user_age);a.userDisplayImage=Xu(a.userDisplayImage,b.user_display_image);wx.test(a.userDisplayImage)||(a.userDisplayImage="");
a.userDisplayName=Xu(a.userDisplayName,b.user_display_name);a.userGender=Xu(a.userGender,b.user_gender);a.X=Xu(a.X,b.eventid);a.X&&(Ev=a.X);a.csiPageType=Xu(a.csiPageType,b.csi_page_type);a.za=Xu(a.za,b.csi_service_name);a.Fa=Uu(a.Fa,b.enablecsi);b.enabled_engage_types&&(a.wa=new tk(b.enabled_engage_types.split(",")));a.ra=Uu(a.ra,b.iv_allow_in_place_switch)},fI=function(a,b,c){b={video_id:b,
html5:1,page_subscribe:c?1:0};a.Eb&&(b.authuser=a.Eb);a.pageId&&(b.pageid=a.pageId);return Qg(a.baseYtUrl+"get_video_metadata",b)},gI=function(a){var b=Hg(a.baseYtUrl);
(a=Ig(a.baseYtUrl))&&(b+=":"+a);return"www.youtube-nocookie.com"==b?"www.youtube.com":b},hI=function(a){return"gaming"==a.b?"gaming.youtube.com":gI(a)},iI=function(a,b,c){return a.aa+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")},jI=function(a){if(a.Be)a:{a=a.Be;
var b={};if(a.b){if(a.b.getVideoPlaybackQuality){a=a.b.getVideoPlaybackQuality();break a}a.b.webkitDecodedFrameCount&&(b.totalVideoFrames=a.b.webkitDecodedFrameCount,b.droppedVideoFrames=a.b.webkitDroppedFrameCount)}a=b}else a={};return a},My=function(a){return"leanback"==a.ua||a.Sb||!a.Mc&&!a.Z?!1:!0},wy=function(a){return"detailpage"==a.ua&&"gaming"!=a.b},ZH=function(a){return VH&&!a.Ib||Tp()||Mp("nintendo 3ds")?!0:!1},XH=function(a){return Sp()||"TV"==a.g.cplatform},lI=function(a){return Xl&&!kI&&
!Dw&&a.B},mI=function(a){return hu&&!kI&&xc(38)&&a.B},$G=function(a){var b;
(b=lI(a)||mI(a))||(b=Cc&&!kI&&xc(27)&&a.B);b||(b=TG&&!Up()&&xc(11)&&a.B);return b},nI=function(a,b,c,d){this.D=c;
this.o=pF(a).o;this.H=10;this.B=!0;this.P=this.K=this.X=this.A=this.g=null;this.U=b;this.b=null;this.W=a;this.Y=d;this.C=new fg(0,0,0,0);this.I=!1;this.G=!0},Xaa=function(a){a.g=window.document.createElement("canvas");
if(!a.g)return 1;a.D.appendChild(a.g);try{a.A=a.g.getContext("webgl")||a.g.getContext("experimental-webgl")}catch(d){return 2}if(null==a.A)return 3;var b=Waa(a);if(0!=b)return b;var b=a.A,c=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,c);b.bufferData(b.ARRAY_BUFFER,new window.Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),b.STATIC_DRAW);a.K=c;b=a.A;c=b.createTexture();b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,c);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,
b.TEXTURE_MAG_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);a.X=c;b=a.A;b.clearColor(0,0,0,1);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);b.bindBuffer(b.ARRAY_BUFFER,a.K);b.vertexAttribPointer(a.M,3,b.FLOAT,!1,0,0);a.J();a.o.crossOrigin="use-credentials";return 0},Waa=function(a){var b=a.A,c=b.createShader(b.VERTEX_SHADER);
b.shaderSource(c,a.b.nl());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.b.bl());b.compileShader(d);if(!b.getShaderParameter(d,b.COMPILE_STATUS))return 5;var e=b.createProgram();b.attachShader(e,c);if(1!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 6;b.attachShader(e,d);if(2!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 7;b.linkProgram(e);if(0==b.getProgramParameter(e,b.LINK_STATUS))return 8;b.validateProgram(e);
b.useProgram(e);if(0==b.getProgramParameter(e,b.VALIDATE_STATUS))return 9;a.M=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.M);a.P=e;a.b.wd(b,a.P,a.D);return 0},oI=function(a){a.g&&(Bf(a.g),a.g=null);
a.A=null;a.B=!1;a.b&&a.b.destroy(a.Y);a.b=null;a.o.removeAttribute("crossorigin");a.o.style.display="";a.H=10},pI=function(a){gq.call(this,a);
this.aa=!0;this.Ea="webgl";this.o=new or(this);G(this,this.o);this.B=new Q(["div","webgl"]);this.B.b(pF(a).B);this.W=a;this.g=null;this.A=!1},Yaa=function(a){a=a.o;
this.A=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.heading=a.ypc_offer_headline;this.o=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.b=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;wx.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.g=a.ypc_item_url;this.videoId=a.ypc_vid},qI=function(){Aq.call(this,["div",
["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"]],["button",["ytp-drawer-open-button","ytp-button"]]]);var a=this.la["ytp-drawer-close-button"];sh(a,yh());var b=this.la["ytp-drawer-open-button"];this.S(a,"click",this.B);this.S(b,"click",this.show);this.o=new be(qa(he,this.element,"ytp-drawer-closed"),0);G(this,this.o);this.Mb(null);this.da()},rI=function(a,b,c){kk.call(this);
this.o=0==c;this.g=new qI;this.g.subscribe("close-clicked",this.C,this);G(this,this.g);this.B=window.document.createElement("div");J(this.B,"html5-ypc-endscreen");this.A=new Q(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"],["button",["html5-ypc-purchase","ytp-button"],"{{button_label}}"]]);G(this,this.A);this.F=this.A.la["html5-ypc-purchase"];
this.A.S(this.F,"click",this.D,this);c=b.title;b.g&&(c=["a",{href:b.g,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.A.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.A});this.b(a)},sI=function(a){a.o||(a.B.appendChild(a.A.element),a.g.Mb(null),xq(a.B,"block"))},Zaa=function(a){a.o||a.g.show()},tI=function(a){gq.call(this,a);
this.logEvent=this.Ea="ypc";this.A=this.B=this.g=null;this.C=window.NaN;this.o=null},$aa=function(a){return Sx(a.getVideoData(),"ypc_module")?new tI(a):null},aba=function(a,b,c){var d=1E4;
c.o.hasOwnProperty("ypc_overlay_timeout")&&(d=(0,window.parseInt)(c.o.ypc_overlay_timeout,10));a.A=new rI(a.o.element,a.g,d);a.A.subscribe("ypcContentRequest",a.OA,a);a.A.subscribe("ypcModuleCloseClicked",a.KB,a);My(b)&&(b=new dq(0x8000000000000,0x8000000000000,{priority:2}),a.ob([b]));Zaa(a.A);O(a.C);a.C=Mi(w(function(){if(this.A){var a=this.A;a.o||a.g.da()}},a),d)},uI=function(){return yj("yt-player-quality")||"auto"},wI=function(a,b,c){v(a)&&(a={mediaContentUrl:a,
startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return vI(a)},vI=function(a,b,c){if(ka(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");
c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}},xI=function(a){this.b=window.Float32Array?new window.Float32Array(a):Array(a);
this.g=a-1},yI=function(a,b){a.g=(a.g+1)%a.b.length;
a.b[a.g]=b},bba=function(){this.o=new xI(50);
this.g=null;this.B=this.A=0;this.b=[]},cba=function(a,b){0!=a.b.length&&(b.B=a.b.length,b.F=Xe(a.b,function(a,b){return a+b},0),b.D=db(a.b),b.H=Math.min.apply(Math,a.b),b.G=Math.max.apply(Math,a.b),a.b=[])},dba=function(a,b){if(a.g&&!(b>=a.A&&b<a.B)){var c=a.g.Nf(b);
a.A=a.g.Fe(c);a.B=a.A+a.g.Ee(c);var d=D()/1E3,c=as(a.g,c),d=d-(c?c.g:window.NaN);yI(a.o,d);a.b.push(d)}},zI=function(a){this.B=Math.exp(Math.log(.5)/a);
this.g=this.o=0},eba=function(a,b){this.b=a;
this.g=b;this.A=1},CI=function(a,b,c,d){d/=a.A;
var e=AI(a.b)+1/By(a.b),f;f=Math.max(.9*(d-3),BI(a.b)+8192*e);c=f/e*a.g.za/(b+c);c=Math.min(c,d);c=Math.max(a.g.ra,Math.min(a.g.ka,c));return Math.min(a.g.g,Math.max(65536,Math.ceil(c*b)))},DI=function(a){var b=By(a.b);
a=1E-9+BI(a.b)+1048576*AI(a.b);return b*Math.min(1,1048576/(b*a))},EI=function(a){return DI(a)/a.A},FI=function(a,b,c){this.audio=a;
this.video=b;this.reason=c},fba=function(a,b,c,d){this.P=a;
this.F=b;this.C=c;this.G=d;this.A=this.I=this.b=null;this.B="i";this.J=-1;this.D=this.o=null;this.g=[];this.K=this.M=0;this.U=null;this.H=!1},gba=function(a,b,c){"m"==c&&a.b.isLocked()&&!b.isLocked()&&(c="a");
a.H=a.H||!1;if("m"==c&&b.isLocked())return a.B=c,GI(a,b),HI(a),a.A=II(a),new FI(JI(a),a.A,c);var d=a.b.Na(b);if("m"==a.B&&a.b.isLocked()&&d)return null;"r"!=c||d||(a.J=-1);GI(a,b);b=II(a);if("r"==c&&b==a.A){if(d)return null;a.A=b;return new FI(JI(a),b,c)}a.B=c;KI(a);return null},LI=function(a){return!!a.K&&9E4>=Bt()-a.K},JI=function(a){MI(a);
return a.o},II=function(a){MI(a);
return a.D},KI=function(a){a.A&&a.D&&NI(a,a.A.info)<NI(a,a.D.info)&&(a.H=a.H||a.D.info.video.width>1.6*a.A.info.video.width||"r"==a.B)},OI=function(a){var b=a.B;
a.B="a";a.J=Bt();a.H=!1;return new FI(a.I,a.A,b)},MI=function(a){if(!(!a.b.isLocked()&&-1<a.J&&8E3>Bt()-a.J)){a.K&&!LI(a)&&(a.K=0,GI(a,a.b));
HI(a);var b=EI(a.P);if(a.b.isLocked())a.D=a.C.b[a.g[a.g.length-1].id];else{for(var c=Math.min(a.M,a.g.length-1),d=b/a.F.B-NI(a,a.o.info);0<c&&!(NI(a,a.g[c])<=d);c--);for(b=b/a.F.A-NI(a,a.o.info);c<a.g.length-1&&!(NI(a,a.g[c+1])>=b);c++);a.M=c;a.D=a.C.b[a.g[c].id];KI(a)}}},GI=function(a,b){a.b=b;
var c=a.G.videoInfos;if(!a.b.isLocked()&&(c=ge(c,function(a){return NI(this,a)>this.F.G?!1:!this.C.b[a.id].o},a),LI(a))){var c=ge(c,function(a){return a.id!=this.U.id},a),d=ge(c,function(a){a=zr(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.G.videoInfos);d=ge(c,b.o,b);d.length||(d=[c[0]]);d.sort(w(function(a,b){return NI(this,a)-NI(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(pb(d,c),c--):NI(a,e)*a.F.A>NI(a,f)&&(pb(d,c-1),c--)}a.g=d;xaa(a.F,d[d.length-1].video.KD)},hba=function(a,b){if(b)a.o=a.C.b[b];
else{var c=fb(a.G.b,function(a){return!!a.Lb&&a.Lb.isDefault}),c=c||a.G.b[0];
a.o=a.C.b[c.id]}HI(a)},HI=function(a){if(!a.o.info.Lb&&(a.o=a.C.b[a.G.b[0].id],1<a.G.b.length)){var b;
if(a.b.isLocked())b=240>a.b.b;else{for(b=0;b+1<a.g.length&&"tiny"==a.g[b].video.quality;)b++;var c=EI(a.P)/a.F.A;b=NI(a,a.o.info)+NI(a,a.g[b])>c}b&&(a.o=a.C.b[a.G.b[1].id])}},iba=function(a){var b=a.F.B,c=EI(a.P)/b-NI(a,a.o.info),b=gb(a.g,function(a){return NI(this,a)<c},a);
0>b&&(b=0);a.M=b;a.D=a.C.b[a.g[b].id]},NI=function(a,b){return a.F.Aa&&b.o?b.o:b.b},jba=function(){this.b=this.g=0;
this.A=[]},PI=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]},QI=function(){this.b=this.g=!1},RI=function(a,b){this.K=a;
this.A=b;this.o=[];this.b=[];this.B=this.g=null;this.C=0;this.U=b.info.b;this.I=this.J=!1;this.G=new QI;this.F=null;this.D=0;this.H=b.Up()},TI=function(a,b){a.o.push(b);
a.g=db(b.info.b);a.C+=SI(b)},XI=function(a){for(var b;a.o.length&&6==a.o[0].state;)b=a.o.shift(),!b.I&&b.g&&(a.C=UI(b,a.C)),VI(b)&&(b=WI(b),E(b,a.P,a));
a.o.length&&VI(a.o[0])&&!ms(a.o[0].info.b[0])&&(b=a.o[0],!b.I&&b.g&&(a.C=UI(b,a.C)),b=WI(b),E(b,a.P,a))},YI=function(a){return!(!a.b.length||1!=a.b[0].info.b.info.g||0!=a.b[0].info.A)},ZI=function(a){var b=pt(a.b[0]),c=at(b);
return(!c||c>b.byteLength)&&1==a.b.length},aJ=function(a,b){ZI(a);
var c=a.b[0],d=$I(a);if(!d)return null;c=b||c.info.b.index.al(c.info.o);return(d=Qs(d,c))?d:null},cJ=function(a){var b=a.b[0],c=$I(a);
if(c&&(c=at(c)))if(c>pt(b).byteLength){var d=a.b[1];bJ(a,b.range);bJ(a,Vr(d.range.start,c-b.range.length))}else bJ(a,Vr(b.range.start,c))},$I=function(a){var b=a.b[0],c=pt(b),d=at(c);
if(!d||d>c.byteLength){d=a.b[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.b,b.range.start,b.range.length));a.set(new window.Uint8Array(d.b,d.range.start,d.range.length),b.range.length);d=at(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c},kba=function(a,b){if(a.J)return a.b[0].range;
var c=!!a.A.info.audio,d=a.A.Bf();if(a.b[0].info.B>=b)return null;var e;for(e=1;e<a.b.length;e++){var f=a.b[e].b!=a.b[e-1].b;if(a.b[e].info.B>b||f||a.K.X)break}e--;var f=a.b[e].range.end,k=a.b[e].info.D-b;if(d&&c&&0<=a.K.P&&k>a.K.P){c=Math.floor((b-a.b[e].info.B)/a.b[e].info.G*a.b[e].info.g);if(0==c)return null;f=a.b[e].range.start+c-1}return new Tr(a.b[0].B?0:a.b[0].range.start,f)},bJ=function(a,b){for(var c;a.b.length;){if(a.b[0].range.end>b.end){var d;
c=a.b[0];var e=b.end-a.b[0].range.start+1,e=Math.min(e,c.info.g);d=new ks(c.info.type,c.info.b,c.info.range,c.info.o,c.info.startTime,c.info.duration,c.info.A,e,!1);var f=Vr(c.range.start,e);d=new ot(d,c.b,f,c.A,c.B);e=new ks(c.info.type,c.info.b,c.info.range,c.info.o,c.info.startTime,c.info.duration,c.info.A+e,c.info.g-e,c.info.F);f=new Tr(f.end+1,c.range.end);c=new ot(e,c.b,f,c.A,!1);d=[d,c];c=d[0];a.b[0]=d[1]}else c=a.b.shift();d=a;f=c.info;d.B=f;d.J&&d.B.C&&(d.J=!1);d.U=Math.max(d.U,f.b.info.b);
if(c.range.end==b.end)break}a.b.length&&c.b==a.b[0].b||(a.C-=c.A.length)},fJ=function(a,b){var c=dJ(a,b);
if(0<=c)return c;a.g=a.A.Vg(b).b[0];eJ(a)&&(a.B=null);a.F=null;a.D=0;return a.g.startTime},lba=function(a,b){if(b){var c=eb(a.b,function(a){return a.info.C});
-1!=c&&(a.b=vb(a.b,0,c+1));a.J=!0}else a.b=[]},mba=function(a,b){var c=a.b.length?db(a.b):a.B;
if(b&&c&&!c.C){for(var d=c.o,c=[],e=0;e<a.o.length;e++){var f=a.o[e];Ph(f.info.b,function(a){return a.o==d})?c.push(f):a.M(f)}a.o=c;
a.g=a.o.length?db(db(a.o).info.b):null}else gJ(a)},nba=function(a){a.C=0;
E(a.o,function(a){this.C+=SI(a)},a);
if(a.b.length){a.C=a.b[0].A.length;for(var b=1;b<a.b.length;b++)a.b[b].b!=a.b[b-1].b&&(a.C+=a.b[b].A.length)}},hJ=function(a,b){var c=!!a.A.info.video&&!!a.B&&!a.B.C;
lba(a,1<=b&&c);mba(a,2<=b&&c);nba(a)},iJ=function(a){a.G.g||a.G.start();
hJ(a,0);eJ(a)&&(a.B=null)},oba=function(a){return Ph(a.b,function(a){return a.info.C})},eJ=function(a){return!!a.B&&a.B.F},jJ=function(a){var b=[];
a.B&&b.push(a.B);E(a.b,function(a){b.push(a.info)});
E(a.o,function(a){E(a.info.b,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.g&&!ls(a.g,db(b))&&b.push(a.g);return b},kJ=function(a){if(!a.g||!a.g.g)return!1;
a=jJ(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].B-a[b-1].D)))return!1;return!0},dJ=function(a,b){if(kJ(a)){var c;
a:{c=jJ(a);for(var d=0;d<c.length;d++)if(c[d].B<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return window.NaN},lJ=function(a){return Ph(a.o,function(a){return 4<=a.state})},mJ=function(a){return!(!a.g||!a.A.Xc()||a.g.b==a.A)},nJ=function(a){return mJ(a)&&a.g.b.info.b<a.A.info.b},gJ=function(a){E(a.o,a.M,a);
a.o=[];a.g=null},oJ=function(a){return!!a.g&&-1!=a.g.o&&a.g.o<a.A.index.Lf()},pJ=function(a){a.g&&E(a.b,function(a){3==a.info.type&&a.info.o>this.g.o&&(this.g=a.info)},a)},pba=function(a,b){this.A=a;
this.C=this.B=!1;this.length=b;this.g=0;this.b=[];if(1==this.A.length&&!this.A[0].range){var c=this.A,d;d=this.A[0];var e=Vr(0,this.length);d=new ks(d.type,d.b,e,d.o,d.startTime,d.duration,d.A,e.length,d.F);c[0]=d}this.o=null},qba=function(a){var b=a.length-a.g;
E(a.b,function(a){b+=a.range.length});
return b},qJ=function(a,b,c,d,e){this.status=0;
this.F=this.g=null;this.H=d;this.C=c;this.J=e;this.A=[];this.D=null;this.B=this.b=0;this.oa=rba++;this.I=window.NaN;this.o=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(Li(w(this.MD,this)),Li(w(this.Xj,this)));D();this.G=!1;b()},sJ=function(a){a.A.push(a.D.subarray(0,a.b));
a.b=0;a.D=a.G?null:new window.Uint8Array(rJ(a))},tJ=function(a){a.o.read().then(Li(w(a.yA,a)),Li(w(a.Xj,a)));
var b=D();a.I=b},rJ=function(a){a=a.Fg();
return Math.max(16384,.125*a)},uJ=function(a,b,c,d,e){this.status=0;
this.g=null;this.A=this.o=!1;this.b=new window.XMLHttpRequest;this.b.open("GET",a);this.b.responseType="arraybuffer";this.b.withCredentials=!0;this.b.onreadystatechange=w(this.RF,this);this.B=d;this.D=c;this.C=e;a=Li(w(this.PF,this));this.b.addEventListener("load",a,!1);this.b.addEventListener("error",a,!1);this.b.send();b();this.b.addEventListener("progress",Li(w(this.QF,this)),!1)},vJ=function(a,b,c){this.o=a;
this.info=b;this.timing=c;this.state=1;this.b=null;this.J=this.D=this.H=0;this.C=window.NaN;this.F=this.A=this.K=null;this.B=0;this.g=null;this.I=!1;this.G=null;this.P=window.NaN;this.M=0},wJ=function(a){var b;
b=a.timing;b={rt:((D()-b.g)/1E3).toFixed(2),lb:b.b,pt:(b.J/1E3).toFixed(2),pb:b.H};b.shost=a.A?Nr(a.A.b):"";b.rn=a.H.toString();a.B&&(b.rc=a.B.toString());410!=a.B&&500!=a.B&&503!=a.B||(b.isPotentialFormatUnavaliable="true");return b},xJ=function(a){a.isDisposed();
if(2>a.D)a=!0;else{var b=a.info.A;a=!(a.H>b.A&&1<=b.g)}return a},yJ=function(a,b){a.state=b;
if(5<=a.state){var c=a.timing;c.o&&(c.o=!1)}a.K&&a.K(a)},zJ=function(a){return Bg(a.info.b,function(a){return 3==a.type})},AJ=function(a){if(a.b){var b=a.b;
a.b=null;b.Vs()}a=a.timing;a.o&&(a.o=!1)},CJ=function(a){var b=a.b.Ge("content-type"),c=a.b.Fg();
return(!BJ(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)},WI=function(a){a=a.g;
var b=a.b;a.b=[];a.o=db(b).info;return b},VI=function(a){return 2<=a.state&&!!a.g&&!!a.g.b.length},DJ=function(a,b){BJ(a)&&!a.b.Fg()&&(a.o.F=!1,a.o.Z=!1);
if(b||BJ(a)&&!CJ(a)){if(!a.g){var c=b?a.b.Xk():a.b.Fg();a.g=new pba(a.info.b,c)}for(;a.b.Xp();)for(var c=a.g,d=a.b.Yr(),e=0,f=0,k=0;k<c.A.length;k++){var m=c.A[k];if(e+m.g<=c.g)e+=m.g;else{var l;var p=c;l=m;1==l.type?(p.B=!0,l=!1):3==l.type||4==l.type?(l=p.B&&!p.C,p.C=!0):l=!1;var p=c,t=m,u=c.g-e,x=f,B=d;l=l||m.b.Xs();var C=Math.min(t.g-u,B.length-x),u=new ks(t.type,t.b,t.range,t.o,t.startTime,t.duration,t.A+u,C,t.A+u+C==t.range.length&&t.F),H=B.buffer,x=B.byteOffset+x,B=Vr(B.byteOffset,B.length);
1==t.type?(H.slice?t=H.slice(x,C):(t=new window.Uint8Array(H,x,C),t=(new window.Uint8Array(t)).buffer),x=Vr(0,C)):(t=H,x=Vr(x,C));p.b.push(new ot(u,t,x,B,l));p=C;c.g+=p;f+=p;e+=m.g;if(f==d.length)break}}}},UI=function(a,b){a.I=!0;
return b-us(a.info)+SI(a)},SI=function(a){return a.g&&a.I?qba(a.g):us(a.info)},BJ=function(a){return!!(a.o.F||a.o.Z&&a.b&&a.b instanceof qJ)},sba=function(a,b,c){this.A=a;
this.H=b;this.K=c;this.b=this.C=this.g=window.NaN;this.G=this.I=this.o=!1;this.B=0;this.D=this.J=window.NaN},GJ=function(a,b,c){if(a.o){var d=(b-a.C)/1E3,e=c-a.b;
0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&EJ(a.A,.05,e)):EJ(a.A,d,e),a.G=!0)}else 8192<=c&&(FJ(a.A,(b-a.g)/1E3),a.o=!0);a.C=b;a.b=c},HJ=function(a){var b=a.H-a.b,b=1E3*(b*a.F.tailDelay+b/a.F.byterate),c=D(),b=8192<=a.b?b+c:b+Math.max(c,a.g+1E3*a.F.delay);
a.D=b},IJ=function(a,b,c,d){kk.call(this);
this.F=a;this.o=b;this.B=c;this.A=this.g=null;this.I=new eba(a,b);this.b=null;this.D=new fba(this.I,b,this.B,d);this.C=this.ea=this.M=this.ca=window.NaN;this.J=!1;this.G=window.NaN;this.ia=0;this.H=!1;this.ka={};this.P="";this.ba=this.Y=0;this.ga=b.Ca?new jba:null;this.Z=this.aa=window.NaN;this.ma=new zI(5)},LJ=function(a){0==a.C&&(a.g.A.A||JJ(a,a.g,!0),a.A.A.A||JJ(a,a.A,!0));
a.seek(a.C);KJ(a,"gv")},NJ=function(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",w(a.Kc,a),!1),a.b.g.removeEventListener("updateend",w(a.Kc,a),!1),a.b.b.removeEventListener("error",w(a.aj,a,!0),!1),a.b.g.removeEventListener("error",w(a.aj,a,!1),!1));
a.b=null;a.H=!0;MJ(a)},OJ=function(a){a.b&&rw(a.b)&&NJ(a)},PJ=function(a,b,c){if(!b.G.g||!c.remove)return!1;
if(c.updating)return!0;if(!b.G.b&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.G.b=!0;b.G.reset();a.R("seekrequired");return!1},RJ=function(a,b,c){if(a.H)return!1;
if(a.B.g){if(0<b.o.length)return!1;if(b.H)return!0}if(!b.g){if(!b.A.Xc())return b.A.A||JJ(a,b,!1),!1;fJ(b,a.C)}var d=b.o.length+c.o.length;(lJ(b)||lJ(c)||a.B.isLive)&&--d;if(2<=d+1)return!1;d=b.g;4==d.type&&d.b.Xc()&&(b.g=db(d.b.nj(d)),d=b.g);if(!d.F&&!d.b.Nh(d)||d.b.info.audio&&4==d.type)a=!1;else if(nJ(b)&&!a.o.H)a=!0;else{if(!(c=d.F||b.C+c.C>a.o.J||!!(c.g&&!c.g.F&&c.g.D<d.D)&&(!a.B.g||c.g.D&&d.D))&&(c=3==d.type)){d=d.D;b=QJ(a,b,!0);a.D.b.isLocked()||(c=(Bt()-a.ia)/1E3,c=30+a.o.ba*c,b=Math.min(b,
c));if(a.o.ca){var e=Bt();(0,window.isNaN)(a.aa)||(0,window.isNaN)(a.Z)||(c=a.Z+(e-a.aa)/1E3,b=Math.min(b,c));a.aa=e;a.Z=b}c=d>a.C+b}a=c?!1:!0}return a},SJ=function(a,b,c){if(!a.b||qw(a.b)||vw(a.b)){var d=a.C,e=a.I;
c=CI(e,b.A.info.b,c.A.info.b,0);e=BI(e.b)+c*AI(e.b)+c/By(e.b);a:{d+=Math.max(e,e+5-c/b.A.info.b);a=a.D.H;if(b.o.length){if(b.o[0].info.b[0].startTime<=d)break a;gJ(b)}for(e=b.b.length-1;0<=e;e--)c=b.b[e],c.info.startTime>d&&(b.b.pop(),b.b.length&&b.b[e-1].b==c.b||(b.C-=c.A.length));b.o.length?b.g=db(b.o[b.o.length-1].info.b):b.b.length?b.g=db(b.b).info:b.g=b.B;a&&b.g&&d<b.g.startTime&&(b.F=null,b.D=0,b.g=b.A.Vg(d,!0).b[0])}}},UJ=function(a,b,c){RJ(a,b,c);
var d=b.g;if(b.H)d=b.A.Vg(window.Infinity);else if(b.g.b.Xc()){!nJ(b)||a.o.H||a.B.g||(SJ(a,b,c),b.g||fJ(b,a.C));var d=b.g,e=d.D-a.C,f=!d.range||0==d.g&&0==d.A?0:d.range.length-(d.A+d.g);mJ(b)&&(nJ(b)||25>=e)&&0==f&&(a.B.g?d.b=b.A:(f=d.startTime+IJ.b,d.g&&(f+=d.duration),fJ(b,f),d=b.g));d.b.Bf()?(c=CI(a.I,d.b.info.b,c.A.info.b,e),e=mJ(b),c=At(d.b,d,c),c.range&&1<c.b.length&&(e?c=At(d.b,d,c.b[0].g):(e=c.b[c.b.length-1],f=e.g/c.range.length,!e.C&&.4>f&&(c=At(d.b,d,c.range.length-e.g)))),d=c):d=xs(d.b,
d)}else d.b.Bf()?(c=CI(a.I,b.A.info.b,c.A.info.b,0),d=At(d.b,d,c)):d=xs(d.b,d);TI(b,TJ(a,d))},TJ=function(a,b){if(3==b.b[b.b.length-1].type){var c;
a:{c=a.D;var d=b.b[0].b;if(d.info.video){if(c.A!=d){c.A=d;c=OI(c);break a}}else c.I=d;c=null}c&&a.R("videoformatchange",c)}c=us(b);var d=a.F,e=a.I,f=Math.min(e.g.wa,BI(e.b)),e=DI(e);c=new vJ(a.o,b,new sba(d,c,c-f*e));d=w(a.zC,a);c.isDisposed();c.K=d;c.start(Math.max(0,b.b[0].B-a.C));return c},tba=function(a,b){var c=b.g.b;
return Bg(c,function(a){return qt(a)},a)&&!(c[0]&&c[0].info.b.Zl())},uba=function(a,b){E(b.g.b,function(a){ms(a.info)&&a.info.b.lp(a);
if(this.B.A&&3==a.info.type&&1==a.info.b.info.g&&0==a.info.A){var d;d=pt(a);if(d=Ks(d,0,1701671783)){$s(d);$s(d);Zs(d);Zs(d);Zs(d);Zs(d);var e=new window.Uint8Array(new window.ArrayBuffer(d.size-d.b)),f=new window.Uint8Array(d.data.buffer,d.offset+d.b,d.size-d.b);e.set(f);d.b=d.size;d=String.fromCharCode.apply(String,new window.Uint8Array(e.buffer));d=(d=Is(d))?new Js(d):null}else d=null;a.g=d;a.g&&this.B.g&&(b.M&&this.ma.b(1,b.M),a.info.o=a.g.g,a.info.F=a.g.o);this.o.ma&&bt(pt(a),1701671783)}},a)},
VJ=function(a){if((0,window.isNaN)(a.ca)){var b=w(a.Kc,a);
a.ca=Mi(b,0)}},WJ=function(a){if((0,window.isNaN)(a.M)){var b=w(function(){this.M=window.NaN;
this.Kc()},a);
a.M=Mi(b,1E3)}},$J=function(a,b,c,d,e){if(c.updating)return!0;
var f=b.b.length?b.b[0]:null;if(!f)return!1;!b.B||b.B.C||ns(b.B,f.info)||(b.B=null,qw(a.b)&&c.abort(),c.b=null);var k=a.B.isLive&&ut(f),m=!a.B.A&&b.K.X&&YI(b);a.o.U&&a.B.A&&null!=c.b&&c.b==f.info.b.b&&0==f.info.A&&1==f.info.b.info.g&&(bt(pt(f),1836019574),bt(pt(f),1718909296),f.B=!1);if(!a.B.A||0==f.info.A)if(k=k||a.B.g||f.B,m||!k){if(k=f.info.b.b,c.b==k?k=!1:(XJ(a,c,k),c.b=k,a.R("initsegment",c.b),k=c.updating),k)return!0}else c.b=null;k=QJ(a,b,!1);k=a.C+k;null!==d&&0<=d&&(k=Math.min(k,d));d=kba(b,
k);if(!d)return!1;if(m){if(ZI(b))return!1;if(k=aJ(b))return YJ(a,c,new window.Uint8Array(k),f,b)?(cJ(b),!0):!1}k=new window.Uint8Array(f.b,d.start,d.length);if(a.ga&&f.info.b.info.video&&1==f.info.b.info.g){var l=a.ga,p=k;0==f.info.A&&(l.g=0,l.b=0,l.A=[]);if(!((0,window.isNaN)(l.g)||8>p.length)){for(var t=new window.DataView(p.buffer,p.byteOffset),u=!1;!u;)if(l.g==l.b)a:{var u=l,x=t,B=p.length;if(u.g+7>=B){for(var C=u.g;C<B;C++)u.A.push(x.getUint8(C));u=!0}else{if(0<u.A.length){for(C=0;8>u.A.length;C++)u.A.push(x.getUint8(C));
C=PI(u.A,0);x=PI(u.A,4);u.A=[]}else C=x.getUint32(u.b),x=x.getUint32(u.b+4);if(1836019558==x||1836019574==x||1718909296==x||1936286840==x)u.g+=C,u.b=u.g;else if(1835295092==x)u.g+=C,u.b+=8;else{u.g=window.NaN;u=!0;break a}u=u.b>=B}}else a:if(u=l,B=t,x=p.length,u.b+5>=x){for(C=u.b;C<x;C++)u.A.push(B.getUint8(C));u=!0}else{if(0<u.A.length){for(C=0;6>u.A.length;C++)u.A.push(B.getUint8(C));C=PI(u.A,0);12==C&&6==u.A[4]&&45==u.A[5]&&B.setUint8(u.b+5,63);u.b+=C+4;u.A=[]}for(;u.b<u.g&&u.b+5<x;){C=B.getUint32(u.b);
if(0>=C){u.g=window.NaN;u=!0;break a}12==C&&6==B.getUint8(u.b+4)&&45==B.getUint8(u.b+5)&&B.setUint8(u.b+5,63);u.b+=C+4}u=u.b>=x}(0,window.isNaN)(l.g)||(l.g-=p.length,l.b-=p.length)}}l=!1;if(3==f.info.type&&(1==f.info.b.info.g||2==f.info.b.info.g))if(l=1==f.info.b.info.g&&a.o.Ja&&!m&&!b.I&&0==f.info.A&&0<f.info.startTime)rt(f,0);else if(a.B.A&&0==f.info.A){a:if(YI(b)&&!ut(b.b[0])&&ZI(b))e=!1;else{m=null===b.F?f.info.startTime:b.F;if(0==rt(f,m)){var H=ps(f.info);H.smst=1;a.xd(!0,"fmt.unparseable",H)}else if(p=
tt(f),b.F=m+p,a.B.g&&f.info.b.info.video){p=new Zr(f.info.o,m,p,f.g.A+(a.ma.A()||0),"sq/"+f.info.o);t=a.B;u=!1;for(H in t.b)p.b>t.b[H].index.Jb()&&(t.b[H].index.na.push(p),u=!0);u&&(H=f.g,H=H.b["Cuepoint-Type"]?new ys((0,window.parseFloat)(H.b["Cuepoint-Playhead-Time-Sec"])||0,(0,window.parseFloat)(H.b["Cuepoint-Total-Duration-Sec"])||0,H.b["Cuepoint-Context"]):null)&&(H.zd+=m,m=a.B,m.F.push(H),m.R("cuepointsadded"))}H=0;f.info.b.info.video&&null!==e&&f.info.duration&&(m=ZJ(f,b,e),25<=Math.abs(m)&&
(H=m/1E3));H&&!ut(f)&&(m=tt(f)+H,p=ZJ(f,b,e),t=ps(f.info),t.deltaOffsetMs=p,t.cumOffsetMs=e-p,t.finalDurSecs=m,a.xd(!1,"qoe.avsync",t));if(H&&YI(b)&&!ut(b.b[0])){if(b.D+=1E3*(tt(f)-f.info.duration+H),b.F+=H,e=tt(f)+H,H=new window.DataView(f.b),H=(H=Rs(H,1936286840))?H.data.getUint32(H.offset+16):window.NaN,(0,window.isNaN)(H)&&(H=f.info.b.b,m=new window.DataView(f.b),H=(m=Rs(m,1836476516))?Ss(m):H?Ts(H):window.NaN),e=aJ(b,e*H)){if(YJ(a,c,new window.Uint8Array(e),f,b)){cJ(b);e=!0;break a}e=!1;break a}}else b.D+=
1E3*(tt(f)-f.info.duration);e=null}if(null!=e)return e}if(!YJ(a,c,k,f,b))return!1;b.I=!0;l?(rt(f,f.info.startTime),c.abort(),c.b=null,qs(f.info)):(bJ(b,d),qs(b.B),uH(c.buffered));f.B&&(c.b=f.info.b.b,a.R("initsegment",c.b));return!0},YJ=function(a,b,c,d,e){b=XJ(a,b,c);
return 0!=b?(2!=b&&(d.info.b.info.video?(a=a.o,a.o=Math.floor(.5*a.o),a.K=Math.floor(.5*a.K),a.b=Math.floor(.5*a.b),a.g=Math.floor(.5*a.g)):(a=a.o,a.C=Math.floor(.5*a.C),a.M=Math.floor(.5*a.M),a.b=Math.floor(.5*a.b)),iJ(e)),!1):!0},ZJ=function(a,b,c){a=1E3*(tt(a)-a.info.duration);
return c-(b.D+a)},XJ=function(a,b,c){try{vw(a.b)?b.appendBuffer(c):b.append(c)}catch(d){return 11==d.code?(a.xd(!1,"html5.invalidstate",{updating:""+ +b.updating,
mrs:a.b.A.readyState}),2):22!=d.code&&0!=d.message.indexOf("Not enough storage")?(Pi(d),4):1}return rw(a.b)?3:0},QJ=function(a,b,c){var d=b.A.info.audio?a.o.C:a.o.o;
!a.o.H&&a.D.b.isLocked()&&(d=Math.max(d,b.A.info.audio?a.o.M:a.o.K));c&&(d+=a.o.J);b=a.D.b.isLocked()?b.g?b.g.b.info.b:b.A.info.b:b.U;d/=b;0<a.o.b&&(d=Math.min(d,a.o.b));a.o.ca&&(c=By(a.F),d=Math.min(d,25+a.o.Y+Math.max(b-Math.max(1-.4*a.o.aa,0)*c,0)*a.o.Ga/b));return d},aK=function(a){if(a.B.isLive){if(!a.g.A.index.sf())return window.NaN;
var b=a.g.A.index.Lf(),c=a.g.A.index.Jb(),d=a.g.A.index;return 1>a.o.liveChunkReadahead?d.Fe(c)+d.Ee(c)-.2:d.Fe(Math.max(b,c-a.o.liveChunkReadahead+1))+.2}return Math.floor(Math.min(a.g.A.index.Eg(),a.A.A.index.Eg()))},bK=function(a,b,c,d){if(b.A.Xc())if(d){var e=wH(d.buffered,c),f=window.NaN,k=b.B;
k&&(f=wH(d.buffered,k.b.index.Fe(k.o)));if(e==f&&kJ(b))return c;d=dJ(b,c);if(0<=d)return d;hJ(b,b.A.Bf()?1:2);b.A.info.video&&b.B&&!b.B.C&&!oba(b)&&b.A.Bf()&&(d=b.B,b.b.length&&(d=db(b.b).info),d=b.g||d,d=At(d.b,d,d.range.length-(d.g+d.A)),TI(b,TJ(a,d)));if((0,window.isNaN)(e))return fJ(b,c);fJ(b,e+IJ.b)}else fJ(b,c);else b.A.A||JJ(a,b,!1),0!=c&&gJ(b);return c},cK=function(a,b,c){b.A!=c&&(b.A=c,c.A||JJ(a,b,!1))},JJ=function(a,b,c){var d=c?65536:0;
c&&!(0,window.isNaN)(a.o.I)&&(d=Math.min(a.o.g,Math.floor(Math.max(d,a.o.I*b.A.info.b))));c=b.A.Xo(d);E(c,function(a){if("f"!=a.b[0].b.info.A){var c=TJ(this,a);!ms(a.b[a.b.length-1])&&TI(b,c)}},a);
b.A.A=!0},dK=function(a){if(!a.A.g)return"";
a=Nr(a.A.g.b.C.b);return a.substr(0,a.indexOf("."))},KJ=function(a,b,c){a.ka[b]=c?window.performance.timing.navigationStart+c:Bt()},MJ=function(a){a.g&&hJ(a.g,0);
a.A&&hJ(a.A,0)},eK=function(a,b,c,d,e){F.call(this);
this.B=a;this.H=b;this.F=c;this.o=d;this.b=e;this.sessionId="";this.g=this.G=this.C=this.D=null;this.A=new or(this);G(this,this.A);this.o?(this.A.S(this.o,"message",this.IG),this.A.S(this.o,"keystatuseschange",this.vB)):this.b&&(pr(this.A,this.b,["mskeymessage","webkitkeymessage"],this.Sq),pr(this.A,this.b,["mskeyerror","webkitkeyerror"],this.Rq),pr(this.A,this.b,["mskeyadded","webkitkeyadded"],this.Qq))},fK=function(a,b){F.call(this);
this.g=a;this.b=b;this.C={};this.A=null;this.B=new or(this);G(this,this.B);this.o=this.D=null},hK=function(a){if(a.b.g)return a.b.g.createMediaKeys().then(Li(w(function(a){this.D=a;
this.g.setMediaKeys(a)},a)));
cu(a.b)?gK(a):du(a.b)?(gK(a),a.g.webkitSetMediaKeys(a.o)):vba(a);return null},vba=function(a){pr(a.B,a.g,["keymessage",
"webkitkeymessage"],a.LG);pr(a.B,a.g,["keyerror","webkitkeyerror"],a.KG);pr(a.B,a.g,["keyadded","webkitkeyadded"],a.JG)},gK=function(a){a.o=new (bu())(a.b.A)},iK=function(a,b){var c=a.C[b.sessionId];
!c&&a.A&&(c=a.A,a.A=null,c.sessionId=b.sessionId,a.C[b.sessionId]=c);return c},jK=function(){this.keys=[];
this.values=[]},wba=function(a){a.keys=[];
a.values=[]},kK=function(a,b){return gb(a.keys,function(a){return Gb(b,a)})},xba=function(a,b,c){this.url=a;
this.interval=b;this.b=c},yba=function(a,b,c){this.b=a;
this.headers=b;this.message=c},mK=function(a,b,c,d,e,f){F.call(this);
this.g=a;this.b=d;this.b.subscribe("oauthtoken",this.Ys,this);this.A={session_id:e};this.H=f;this.G=0;a=this.g.B;du(this.g)&&(a=c.b.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));lK(this,a);this.C=this.D=!1;var k;try{k=b.createSession(c)}catch(m){b="t.g",m instanceof window.DOMException&&(b+=";c."+m.code),this.b.R("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),k=null}if(this.o=
k)b=this.o,c=this.TF,k=this.SF,b.D=this.UF,b.C=c,b.G=k,b.g=this,G(this,this.o)},zba=function(a,b){this.message=a;
this.number=b;this.b=!1},lK=function(a,b){if(Aba.test(b)){for(var c in a.A)b=Xg(b,c,a.A[c]);
a.B=b}else nK(a,"drm.net",!0,"t.u")},nK=function(a,b,c,d,e){a.isDisposed()||a.b.R("licenseerror",b,c,d,e);
c&&a.dispose()},oK=function(a,b){this.b=a;
this.contentType=b||null},qK=function(a,b,c,d,e,f){kk.call(this);
a.addKey||a.webkitAddKey||bu()||iu(c);this.ba=c;this.D=a;this.b=b;this.U=!!f;this.subscribe("newlicense",this.UB,this);this.subscribe("newsession",this.VB,this);this.subscribe("sessionready",this.HC,this);this.P=e||Iv();this.H=null;this.A=new jK;this.g=[];this.B=pK;this.G=new fK(a,b);G(this,this.G);this.o=null;cu(b)&&(this.o=new fK(a,b),G(this,this.o));this.J=2;this.F=new or(this);G(this,this.F);this.I=!1;this.K=null;this.C=!1;a=this.D;this.b.g?this.F.S(a,"encrypted",this.bB):(b=cu(this.b)?["msneedkey"]:
["needkey","webkitneedkey"],pr(this.F,a,b,this.SB));(a=hK(this.G))?a.then(Li(w(this.HB,this)),Li(w(this.jA,this))):this.C=!0;this.o&&hK(this.o);this.M=d},sK=function(a,b,c){a.isDisposed()||cu(a.b)==c||a.I&&"widevine"==a.b.b&&!a.M||(a.I=!0,a.A.get(b.b)||(a.g.push(b),1<a.g.length||a.C&&a.A.set(b.b,rK(a,b))))},rK=function(a,b){a.A.get(b.b);
var c=new mK(a.b,a.G,b,a,a.P,a.U);c.Ys(a.H);"playready"==a.b.b&&a.ba.$("playready_on_borg")&&(kc(c.A,{prob:"1"}),lK(c,c.B));return c},tK=function(a){this.g={};
this.g.c1a=w(this.B,this);this.g.c3a=w(this.C,this);this.g.c6a=w(this.o,this);(this.b=a)&&this.b.ea?this.A=Fj(this.b.ea):this.A=[]},uK=function(a,b,c,d){this.videoData=a;
this.b=b;this.reason=c;this.g=d},Bba=function(a,b){this.T=a;
this.g=b;this.b=null;this.T.experiments.b("html5_auto_format_cap_on_battery")&&window.navigator.getBattery&&window.navigator.getBattery().then(w(function(a){this.b=a},this))},vK=function(a,b){return Bu(Bu(a.T.Re,b.th),b.yh)},xK=function(a,b){var c=uI();
return"auto"!=c?yu("auto",c,!1):wK(a,b)},wK=function(a,b){if(XH(a.T)&&Qw(a.T.F,Kw))return Au;
var c;c=!!b.g.b;var d;ZH(a.T)&&(d=window.screen&&window.screen.width?new bf(window.screen.width,window.screen.height):null);d||(d=a.T.Vd?a.T.Vd.clone():a.g.Da());(VH||yK||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.g.videoInfos;if(d.length){var f=.85;2==d[0].video.projectionType?f*=.5:3==d[0].video.projectionType&&(f*=.25);for(var k=0;k<d.length&&!(e=d[k].video,null===c||e.width*f<c.width&&e.height*f<c.height);k++);e=yu("auto",e.quality,!1)}else e=Au;c=e.b;Sp()&&(c=Math.max(c,Hr.hd1080));
(Mp("armv7")||Mp("android"))&&!XH(a.T)&&Br(b.g.videoInfos[0])&&(c=Math.min(c,Hr.large));d=a.T.experiments.b("html5_auto_format_cap_on_battery");f=1<b.g.videoInfos[0].video.projectionType;!d||a.T.jf||!a.b||a.b.charging||f||(c=Math.min(d,c));c=Math.max(c,Hr.medium);e.b!=c&&(e=new xu(e.g,c,e.A));return e},Cba=function(a){this.o=this.b=window.NaN;
this.g=this.A=!1;this.B=!!a},zK=function(a,b){a.b=b;
a.A=!0},cz=function(a,b,c,d){var e=1<d;
e&&(a.g=!0);if(a.A)b!=a.b&&(a.A=!1);else if(0<b&&a.b==b)return c-a.o>(e||!a.g?1500:400);a.b=b;a.o=c;return a.B&&a.g&&0>=d},AK=function(a){if(a.$l)return 4;
var b=Oh("visibilityState",window.document);return b&&"visible"!=b?3:a.jf?2:a.am?1:0},Dba=function(){this.g=0;
this.b=this.C=this.A=this.o=window.NaN;this.B=0;this.G=this.H=this.D=this.F=window.NaN},BK=function(){this.endTime=this.startTime=-1;
this.Ck="-";this.playbackRate=1;this.visibilityState=0;this.zk=""},Eba=function(a,b,c,d,e,f,k,m,l){this.videoData=a;
this.b=b;this.o=c;this.B=d;this.g=e;this.C=f;this.G=k;this.F=m;this.D=l||function(){};
this.A=null},HB=function(a){return CK(a)()},CK=function(a){a.A||(a.A=qa(function(a){return Math.round(Bt()-a)/1E3},Bt()));
return a.A},JB=function(a){var b=a.o();
a=a.videoData;var c={};a.A&&(c.fmt=zr(a.A),a.C&&zr(a.C)!=zr(a.A)&&(c.afmt=zr(a.C)));c.plid=a.playbackId;c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.hi&&(c.infringe=1);a.Cg&&(c.splay=1);a.sa&&(c.live=a.Zd?"dvr":"live");a.Zc&&(c.autoplay=1);a.Ve&&(c.sdetail=a.Ve);a.P&&(c.partnerid=a.P);a.osid&&(c.osid=a.osid);ta(b,c);return b},mB=function(a){var b=new BK;
b.Ck=a.o().cc||"-";var c=a.b;b.playbackRate=c.Be&&c.Be.b.playbackRate||1;c=AK(a.b);0!=c&&(b.visibilityState=c);a=a.F();a.Lb&&a.Lb.id&&"und"!=a.Lb.id&&(b.zk=a.Lb.id);return b},DK=function(a,b){this.state=a;
this.b=b},QB=function(a,b){return U(a.state,b)&&!U(a.b,b)?1:!U(a.state,b)&&U(a.b,b)?-1:0},EK=function(a,b,c,d,e){kk.call(this);
this.za=new Cba(a.experiments.$("html5_always_underrun_on_empty_buffer"));this.D=c;this.Fa=d;this.C=new MA(w(this.getCurrentTime,this),w(this.dF,this),w(this.getPlayerState,this),e);G(this,this.C);this.ea=window.NaN;this.K=this.F=null;this.T=a;this.ia=new Bba(a,this.Fa);this.H=!1;this.I=this.B=null;this.ba=[];this.aa=new QI;this.P=new QI;this.yb=this.Aa=!1;this.wa=window.NaN;this.o=new Xy;this.ma=[];this.G=b;this.Z=this.ga=null;this.J=window.NaN;this.ca=new or;G(this,this.ca);this.b=new ox;this.g=
this.Y=null;this.U=window.NaN;this.A=null;this.ib=this.ub=!1;this.ka=window.NaN;this.Ua=this.Za=this.gb=this.ra=!1;this.Ca=this.$a=window.NaN;this.Ib=a.experiments.$("html5_force_play_on_suspend_event");this.Ub=a.experiments.$("html5_force_play_on_suspend_event_limited");this.M=null;this.jc=this.T.experiments.$("html5_playing_event_buffer_underrun");this.Ja=new xI(50);this.Bb=D();this.qb=!1},FK=function(a){lv()?nv(a.ka):O(a.ka)},GK=function(a){if(a.A){var b=a.A;
if(!b.isDisposed()&&b.o){b.C="paused";var c=MB(b);c.ca=!0;c.send();c=b.g;"PL"==c.g&&(c.g="N");var d=HB(c.b);vB(c,d,"vps",[c.g]);c.oh(d);O(b.B);b.dispose()}Nb(a.A);a.A=null}},IK=function(a){if(Ox(a.b))return!0;
HK(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1},JK=function(a,b){a.Aa=!!b;
IK(a)&&!a.aa.g&&(a.aa.start(),a.A&&a.A.tg(),a.Eo())},TK=function(a){a.g&&CH(a.g);
JK(a);IK(a)&&!U(a.o,128)&&(a.P.g||(a.P.start(),KK(a,dz(a.o,8)),Rx(a.b)||KK(a,dz(a.o,1))),PK(a))},PK=function(a){a.isDisposed();
if(!a.P.b&&a.aa.b&&!U(a.o,128)&&!a.ba.length&&(a.C.o||a.C.tg(),!UK(a))){if(a.B){var b=a.B;a.yb=!!b.K&&!!b.U}a.P.b=!0;a.b.sa&&(a.seekTo(window.Infinity,!0),VK(a,!0),a.T.experiments.$("disable_live_background_seek_to_head")||3!=AK(a.T)||(a.ib=!0));if(a.A){b=a.A;b.b.videoData.enableCardio&&b.b.videoData.enableCardioBeforePlayback&&(b.pj("connected"),TB(b));if(b.b.videoData.sa){var b=b.g,c=b.b.videoData.b;c&&Qt(c)&&yB(b,"live-segment-"+Qt(c).toFixed(1));c=Wx(b.b.videoData,b.b.b.experiments);yB(b,"live-readahead-"+
c)}b=a.b;b.b&&b.b.g&&zB(a.A.g,"manifestless","1",void 0)}a.R("playbackready",a);Rv("pbr",a.D.b)||a.D.g("pbr")}},XK=function(a,b,c,d){a.b.A=c;
a.b.C=d||c;if(a.A){var e=a.b,f=wK(a.ia,e),e=fb(e.g.videoInfos,w(f.o,f)),e=new uK(a.b,c,b,e?zr(e):"");d&&"i"==b&&WK(a,b,d);d=a.A.g;c=HB(d.b);vB(d,c,"vfs",[e.b.id,e.g,d.X,e.reason]);d.X=e.b.id;e=d.b.G();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],f=window.devicePixelRatio||1,1<f&&e.push(f),vB(d,c,"view",e));vB(d,c,"vps",[d.g]);d.oh(c)}a.R("internalvideoformatchange",a.b,"m"==b)},WK=function(a,b,c){a.b.C=c;
if(a.A){var d=a.A.g;c=new uK(a.b,c,b,"");var e=HB(d.b);c.b.id!=d.H&&(vB(d,e,"afs",[c.b.id,d.H,c.reason]),d.H=c.b.id)}"i"!=b&&a.R("internalaudioformatchange",a.b,"m"==b)},HK=function(a,b,c,d){var e,f;
Vb(Fba,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||P(e),messageKey:e};KK(a,az(a.o,128,b));FK(a);YK(a);ZK(a)},UK=function(a){return!!a.ba.length||0<IA(a.C.b,-0x8000000000000).length},$K=function(a){a.T.experiments.$("html5_crossorigin_video")&&a.g&&(a.b.mf||!a.b.g||a.b.g.b?KH(a.g,!1):KH(a.g,!0))},bL=function(a,b){a.g&&aL(a);
a.g=b;Gba(a);$K(a)},aL=function(a){a.b&&a.T.experiments.$("new_ended_replay")&&(a.b.startSeconds=a.getCurrentTime());
a.I=null;a.B&&(VJ(a.B),a.B.H=!0);a.g&&(a.A&&a.aa.g&&U(a.o,64)&&!a.b.be&&cL(a),dL(a),qr(a.ca),GH(a.g),a.g=null)},hL=function(a){if(!U(a.o,128))if(a.qb)a.qb=!1,eL(a);
else if(TK(a),U(a.o,64)&&KK(a,dz(a.o,8)),a.P.b&&a.g)if(a.b.g){a.T.experiments.$("new_ended_replay")&&U(a.o,2)&&a.seekTo(0,!0);if(a.b.sa){var b=a.getCurrentTime()<Nx(a.b),c=Tx(a.b)&&U(a.o,4);(b||c)&&a.seekTo(window.Infinity,!0);fL(a)?VK(a,!0):a.H&&a.seekTo(window.Infinity,!0)}if(a.b.g.b)b=gL(a),a.B.resume();else{YK(a);var b=a.b.ig.g(),c=a.b,d={};c.Y&&(d.ptk=c.Y,d.oid=c.Ke,d.ptchn=c.Yd,d.pltype=c.Le);ta(b.g,d);c=a.T.g;ta(b.g,{c:c.c,cver:c.cver})}(c=a.g.g)&&c.Na(b)?EH(a.g):Hba(a,b)}else b=a.b.sa&&!Iw()?
"html5.unsupportedlive":"fmt.noneavailable",HK(a,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1")},iL=function(a){dL(a);
YK(a);gL(a)},kL=function(a){if(a.b.g){var b=jL(a)||Au;
a=ge(a.b.g.videoInfos,w(b.o,b));for(var b=[],c={},d=0;d<a.length;d++){var e=a[d].video;c[e.quality]||(b.push(e),c[e.quality]=!0)}a=b}else a=[];return a},lL=function(a){return Bu(Bu(vK(a.ia,a.b),xK(a.ia,a.b)),jL(a))},jL=function(a){return a.b.Tk?Au:a.F?a.F.B:Dx(a.b)&&a.b.g.b&&Dt(a.b.b)?pK:Au},mL=function(a,b,c){if(!a.isDisposed()&&!U(a.o,128)&&(c&&(a.b.yh=c),Dx(a.b))){"m"==b&&c&&zu(c)&&(b="a");
c=lL(a);if(a.b.g.b){if(a.B&&"i"!=b){var d=a.B;d.isDisposed()||((c=gba(d.D,c,b))&&d.R("videoformatchange",c),cK(d,d.A,II(d.D)),d.D.b.isLocked()&&"m"==b&&(iJ(d.A),iJ(d.g)),nJ(d.A)&&SJ(d,d.A,d.g),VJ(d))}}else{d=a.b;a:{var e=a.b.K;if(c.b){for(var f=0;f<e.length;f++){var k=e[f].Dc,m=Hr[k.video.quality];if((!c.A||"auto"!=k.video.quality)&&m<=c.b){c=e[f];break a}}c=e[e.length-1]}else c=e[0]}d.ig=c;XK(a,b,a.b.ig.Dc)}a.o.Ya()&&hL(a)}},nL=function(a){Rt(a.b.b,{c:a.T.g.c,
cver:a.T.g.cver});var b=a.T,c=a.b,d=new ZF;b.experiments.$("html5_use_tight_max_buffer_depth")&&(d.ca=!0,d.Ga=b.experiments.b("html5_tight_max_buffer_allowed_impaired_time")||d.Ga,d.aa=b.experiments.b("html5_tight_max_buffer_allowed_bandwidth_stddevs")||d.aa,d.Y=b.experiments.b("html5_tight_max_buffer_abr_avoidance_padding")||d.Y);d.ba=b.experiments.b("html5_throttle_rate")||d.ba;b.experiments.$("html5_streaming_xhr")&&(d.F=!0);b.experiments.$("dash_html5_timeouts_before_metadata")&&(d.ea=!0);if(Rp()||
b.experiments.$("dash_html5_safari8_workarounds"))d.X=!0;Rp()&&(d.P=-1);if(Mp("trident/")||Mp("edge/"))d.b=240;Dq&&(d.K=41943040);if(XH(b)||!uw()){var e=b.experiments;d.o=8388608;d.C=524288;d.J=2097152;d.g=1048576;d.ra=1.5;d.ka=15;d.H=!uw();d.Sa=!1;Qp()&&!e.D&&(d.G=625E3);Pp()&&(d.G=75E4);d.Aa=!0;d.A*=1.3;d.B*=1.3;d.U=!0}Sp()&&(e="CHROMECAST/ANCHOVY"==b.g.cmodel,d.o=20971520,d.C=1572864,e&&(d.G=812500,d.D=1E3));d.Pa=b.B;d.liveChunkReadahead=Wx(c,b.experiments);d.Ca=!b.experiments.$("disable_fpa_sei_removal")&&
Mp("windows nt")&&(Vx(c)||Xx(c));c.b&&c.b.g&&(d.wa=.2);b.experiments.B&&(d.G=window.NaN);if(c=b.experiments.b("html5_deadzone_multiplier"))d.A*=c,d.B*=c;if(c=b.experiments.b("html5_request_sizing_multiplier"))d.za=c;b.experiments.$("html5_strip_emsg")&&(d.ma=!0);b.experiments.$("disable_html5_remove_extra_init")&&(d.U=!1);if(c=b.experiments.b("dash_html5_max_request_size_factor"))d.g*=c,d.I*=c;d.b=b.experiments.b("html5_max_buffer_duration")||d.b;a.B=new IJ(a.ga,d,a.b.b,a.b.g);a.B.subscribe("initsegment",
a.uB,a);a.B.subscribe("videoformatchange",a.DB,a);a.B.subscribe("audioformatchange",a.CB,a);a.B.subscribe("error",a.Mj,a);a.B.subscribe("seekrequired",a.WD,a);b=kb(a.ba,"spacecast")||a.Aa;d=a.ln();d=d.Lb.isDefault?void 0:d;a.B.initialize(a.b.startSeconds,lL(a),b,d);a.b.probeUrl&&(a.B.P=a.b.probeUrl);if(a.ba.length||a.Aa)a.B.H=!0;a.Aa&&cL(a)},cL=function(a){var b=new DK(new Xy(4),a.o);
SB(a.A,b)},YK=function(a){a.B&&(a.B.dispose(),a.B=null);
a.I&&(a.I.dispose(),a.I=null)},gL=function(a){a.I||(a.B?a.B.seek(a.getCurrentTime()):nL(a),a.I=new mw(a.g.fa(),a.b.lengthSeconds,a.b.g.videoInfos[0].mimeType,a.b.g.b[0].mimeType,a.T.B),nw(a.I,w(a.B.Cw,a.B)),ow(a.I,w(function(a){HK(this,"fmt.unplayable",void 0,"msi.1;ename."+a.name)},a)));
try{return pw(a.I)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),HK(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1"),null}},eL=function(a){Cx(a.b);
!a.b.be&&a.b.Ti||a.gb||(a.gb=!0,a.R("signatureexpired"))},oL=function(a){return a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)},ZK=function(a){a.g&&(a.g.pause(),dL(a),YK(a),a.b&&(a.b.startSeconds=a.getCurrentTime()),a.J=window.NaN,GH(a.g),U(a.o,128)||KK(a,az(a.o)))},Iba=function(a){if(!a.g)return 0;
if(Tx(a.b))return 1;if(Ux(a.b)){if(a.H)return 1;var b=a.g,c=FH(b),b=(0<xH(c)&&b.b.duration?c.end(c.length-1):0)-Nx(a.b);a=pL(a,!0)-Nx(a.b);return Math.max(0,Math.min(1,b/a))}return IH(a.g)},qL=function(a,b){var c={};
if(b){a.A?ta(c,FB(KB(a.A,"playback"))):a.b&&(c.cpn=a.b.clientPlaybackNonce);if(a.g){var d;d=a.g;d={vct:d.getCurrentTime().toFixed(3),vd:d.b.duration.toFixed(3),vpl:uH(d.b.played||tH()),vbu:uH(FH(d)),vpa:d.b.paused,vsk:d.b.seeking,ven:d.b.ended,vpr:d.b.playbackRate,vrs:d.b.readyState,vns:d.b.networkState,vec:d.fb(),vvol:d.b.volume};ta(c,d)}if(a.B){d=a.B;var e={lct:d.C.toFixed(3),lsk:d.J,lmf:d.D.b.isLocked(),lbw:By(d.F).toFixed(3),lhd:BI(d.F).toFixed(3),ltd:(1E9*AI(d.F)).toFixed(3),laa:d.g.B?qs(d.g.B):
"",lva:d.A.B?qs(d.A.B):"",lar:d.g.g?qs(d.g.g):"",lvr:d.A.g?qs(d.A.g):"",lvh:dK(d)};d.b&&!rw(d.b)&&(e.lab=uH(d.b.b.buffered),e.lvb=uH(d.b.g.buffered));ta(c,e)}c.state=a.o.g.toString(16);U(a.o,128)&&(c.debug_error=a.o.b);UK(a)&&(c.preroll="1");a.b.Gh&&(c.ismb=a.b.Gh);a.b.isLowLatencyLiveStream&&(c.lowlatency="1");a.b.sa&&(a.b.b&&Qt(a.b.b)&&(c.segduration=Qt(a.b.b)),a.M&&(d=a.M.o,c.lat=d.b[d.g]||0))}c.debug_videoId=a.b.videoId;return c},rL=function(a,b){a.R("internalvideodatachange",b||"dataupdated",
a,a.b)},Gba=function(a){E("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.ca.S(this.g,a,this.fF,this)},a);
a.T.jc&&(a.ca.S(a.g,"webkitplaybacktargetavailabilitychanged",a.$z,a),a.ca.S(a.g,"webkitcurrentplaybacktargetiswirelesschanged",a.aA,a))},sL=function(a){var b=a.getCurrentTime(),c=a.b;
!Rv("pbs",a.D.b)&&$v.measure&&$v.getEntriesByName&&($v.getEntriesByName("mark_navigation_requested")[0]?$v.measure("measure_above_the_fold","mark_navigation_requested"):$v.measure("measure_above_the_fold"));c.videoId&&a.D.info("docid",c.videoId);c.eventId&&a.D.info("ei",c.eventId);c.clientPlaybackNonce&&a.D.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.D.info("start",c.startSeconds.toString());a.g&&a.g.b.paused&&a.D.info("paused",1);c.A?a.D.info("fmt",zr(c.A)):a.D.info("fmt","-1");c.Ua&&a.D.info("yt_pre",
a.yb?"2":"1");a.T.jf&&a.D.info("yt_fs","1");a.D.info("cmt",b.toFixed(3));if(a.B){b=a.B;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.U),c.length&&(c=c[0],KJ(b,"vri",c.fetchStart),KJ(b,"vdns",c.domainLookupEnd),KJ(b,"vreq",c.requestStart),KJ(b,"fvb",c.responseStart),KJ(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.K),c.length&&(c=c[0],KJ(b,"ari",c.fetchStart),KJ(b,"adns",c.domainLookupEnd),KJ(b,"areq",c.requestStart),KJ(b,
"avb",c.responseStart),KJ(b,"arc",c.responseEnd)));var b=b.ka,d;for(d in b)a.D.g(d,b[d])}},Jba=function(a){if(a.ea&&a.g){var b=a.g.b.seekable||tH();
b.length&&b.end(0)>a.ea&&(a.g.b.currentTime=a.ea,a.ea=window.NaN,a.Pa=a.ca.S(a.g,"canplay",a.UA,a))}},tL=function(a,b){if(a.g&&a.b){var c=a.getCurrentTime();
if(c<Nx(a.b))a.seekTo(pL(a,!1),!0);else{if(a.H){var d=pL(a,!1);if(c<d-10){if(a.b.ag||Tx(a.b)&&a.T.experiments.$("html5_live_only_stick_to_head")){a.seekTo(d,!0);return}a.b.sa&&VK(a,!1)}}else a.b.sa&&fL(a,c)&&VK(a,!0);if(a.B&&(d=a.B,d.b)){d.resume();if(d.J&&!rw(d.b)){var e=d.C<=c&&c<d.C+10,f=0<=vH(d.b.g.buffered,d.C+IJ.b);e&&f&&(d.J=!1)}d.J||(d.C=c);WJ(d)}5<c&&(a.b.startSeconds=c);(d=lv())?nv(a.ka):O(a.ka);!hz(a.o)&&a.g.b.paused||U(a.o,128)||(e=w(a.Wx,a),a.ka=0==(a.g.b.played||tH()).length?d?mv(e,
100):Mi(e,100):d?mv(e,500):Mi(e,500));a.b.Ij=c;!b&&a.o.Ya()&&a.A&&(c=a.A,c.A.update(),Rx(c.b.videoData)&&c.b.videoData.qf&&!c.J&&pB(c.A)>=c.b.videoData.qf&&(c.o&&c.b.videoData.qf&&(d=KB(c,"delayplay"),d.za=!0,d.send(),c.J=!0),PB(c)),d=c.P,d.A||!d.b.yb||d.b.Oe||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=pB(d.o)>=e),d&&c.P.send());D()>a.Bb+1E3&&(a.Bb=D(),yI(a.Ja,$y(a.g)));a.R("progresssync",a,b)}}},KK=function(a,b){var c=a.o;
if(b.g!=c.g||b.b!=c.b){c=new DK(b,a.o);a.o=b;var d=!a.ma.length;a.ma.push(c);0>QB(c,8)&&(O(a.U),a.U=window.NaN,VK(a,!1));0<QB(c,8)&&!a.b.be&&(0,window.isNaN)(a.U)&&(a.U=Mi(w(a.Gq,a),15E3));0<QB(c,32)&&VK(a,!1);if(U(c.state,2)&&Ux(a.b)){var e=a.getCurrentTime();a.b.lengthSeconds!=e&&(a.b.lengthSeconds=e,rL(a));tL(a,!0)}0<QB(c,2)&&a.Cm();a.T.experiments.$("html5_check_for_reseek")&&0<QB(c,1)&&(a.Ca=Mi(w(a.SD,a),5E3));a.A&&SB(a.A,c);if(d)try{for(d=0;d<a.ma.length;d++){var c=a.ma[d],f=a.C,e=c;if(f.o&&
!f.D&&(f.Qd(),U(e.b,16))){var e=f,k=LA(e.b,Math.max(e.A-2E3,0));null!=k&&0x7ffffffffffff>k&&e.B.start()}a.R("statechange",c)}}finally{a.ma.length=0}}},uL=function(a){U(a.o,2)||U(a.o,32)||(a.J=window.NaN)},VK=function(a,b){a.b.sa&&a.H!=b&&(a.H=b,a.R("liveviewshift",b))},Hba=function(a,b){Kba(a,b);
a.T.Te?Mi(w(function(){EH(this.g)},a),0):EH(a.g)},Kba=function(a,b){a.D.g("vta");
CH(a.g,b);if(Lx(a.b)&&Lx(a.b)&&!a.F&&a.g){var c=a.b.F;if(c){var d=a.g.fa();a.F=new qK(d,c,a.T.experiments,a.b.sa,a.b.drmSessionId,a.T.experiments.$("html5_disable_drm_retry"));a.F.subscribe("newsession",a.TB,a);a.F.subscribe("licenseerror",a.xB,a);a.F.subscribe("qualitychange",a.yB,a);a.F.subscribe("heartbeatparams",a.eF,a);c=a.F;d=a.b.oauthToken;c.H=d;c.R("oauthtoken",d)}else HK(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}a.I&&qv();O(a.U);a.b.be||(a.U=Mi(w(a.Gq,a),15E3))},
dL=function(a){a.F&&(a.F.dispose(),a.F=null)},pL=function(a,b){if(!a.g)return 0;
if(!a.b.sa){var c=a.b;return c.b&&!(0,window.isNaN)(Ot(c.b))?Ot(c.b):c.lengthSeconds}if(b&&(a.H||Tx(a.b)))return a.getCurrentTime();if(a.B)return c=aK(a.B),Math.max(c,Nx(a.b))||0;c=a.g.b.seekable||tH();return(1>c.length?window.NaN:c.end(c.length-1))||0},fL=function(a,b){void 0==b&&(b=a.getCurrentTime());
return b>=pL(a,!1)-1},wL=function(a,b){F.call(this);
this.app=a;this.b=null;this.A={};this.o={};this.C={};this.B={};this.g=null;this.playerType=b;V(this,"cueVideoById",this.mn);V(this,"loadVideoById",this.on);V(this,"cueVideoByUrl",this.iF);V(this,"loadVideoByUrl",this.tF);V(this,"playVideo",this.ed);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.Uj);V(this,"clearVideo",this.gF);V(this,"getVideoBytesLoaded",this.oF);V(this,"getVideoBytesTotal",this.pF);V(this,"getVideoLoadedFraction",this.nn);V(this,"getVideoStartBytes",this.qF);V(this,
"cuePlaylist",this.hF);V(this,"loadPlaylist",this.Ks);V(this,"nextVideo",this.Rj);V(this,"previousVideo",this.Sj);V(this,"playVideoAt",this.pn);V(this,"setShuffle",this.setShuffle);V(this,"setLoop",this.vF);V(this,"getPlaylist",this.Ic);V(this,"getPlaylistIndex",this.mF);V(this,"getPlaylistId",this.Ce);V(this,"loadModule",this.Qj);V(this,"unloadModule",this.Ps);V(this,"setOption",this.De);V(this,"getOption",this.zb);V(this,"getOptions",this.Jh);V(this,"mute",this.mute);V(this,"unMute",this.unMute);
V(this,"isMuted",this.Jc);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.Db);V(this,"seekTo",this.seekTo);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.lF);V(this,"setPlaybackRate",this.Kh);V(this,"getAvailablePlaybackRates",this.Nj);V(this,"getPlaybackQuality",this.Pj);V(this,"setPlaybackQuality",this.Tj);V(this,"getAvailableQualityLevels",this.Is);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.Ih);V(this,"addEventListener",this.addEventListener);
V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.getVideoUrl);V(this,"getDebugText",this.Oj);V(this,"getVideoEmbedCode",this.Js);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.Hs);V(this,"removeCueRange",this.Ls);V(this,"setSize",this.setSize);V(this,"getApiInterface",this.jF);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.Os);V(this,"hideVideoInfo",this.rF);vL(this,"getInternalApiInterface",this.kF);vL(this,"getAdState",this.getAdState);
vL(this,"isNotServable",this.sF);vL(this,"getUpdatedConfigurationData",this.nF);vL(this,"updateRemoteReceivers",this.xF);vL(this,"sendAbandonmentPing",this.uF);vL(this,"setAutonav",this.Ms);vL(this,"setAutonavState",this.Ns);vL(this,"setMinimized",this.wF);vL(this,"channelSubscribed",r);vL(this,"channelUnsubscribed",r)},V=function(a,b,c){a.A[b]=w(c,a)},vL=function(a,b,c){a.o[b]=w(c,a)},xL=function(a,b){wL.call(this,a,b);
V(this,"getPresentingPlayerType",this.getPresentingPlayerType);V(this,"addInfoCardXml",this.yF);V(this,"cueVideoByPlayerVars",this.zF);V(this,"loadVideoByPlayerVars",this.Vj);V(this,"preloadVideoByPlayerVars",this.Ts);V(this,"seekBy",this.fd);V(this,"updatePlaylist",this.NF);V(this,"updateLastActiveTime",this.MF);V(this,"updateVideoData",this.OF);V(this,"getStoryboardFormat",this.EF);V(this,"getProgressState",this.rf);V(this,"getHousebrandProperties",this.CF);V(this,"setPlaybackQualityRange",this.HF);
V(this,"getCurrentPlaylistSequence",this.BF);V(this,"canPlayType",this.canPlayType);V(this,"sendVideoStatsEngageEvent",this.Dg);V(this,"setCardsVisible",this.Mh);V(this,"handleGlobalKeyDown",this.FF);V(this,"getAudioTrack",this.Lh);V(this,"setAudioTrack",this.qn);V(this,"getAvailableAudioTracks",this.Qs);V(this,"getMaxPlaybackQuality",this.DF);V(this,"setSizeStyle",this.JF);V(this,"forceFrescaUpdate",this.AF);V(this,"setAutonav",this.Ms);V(this,"setAutonavState",this.Ns);V(this,"showControls",this.LF);
V(this,"hideControls",this.GF);V(this,"getVisibilityState",this.Ss);V(this,"shouldSendVisibilityState",this.KF);V(this,"getVideoContentRect",this.Rs);V(this,"setSafetyMode",this.IF);V(this,"setFauxFullscreen",this.cE);V(this,"cancelPlayback",this.to);V(this,"getVideoStats",this.ep);V(this,"updateSubtitlesUserSettings",this.Qm);V(this,"getSubtitlesUserSettings",this.ll);V(this,"resetSubtitlesUserSettings",this.zr)},yL=function(a,b){xL.call(this,a,b)},Lba=function(a){(a=hq(a.app))&&iL(a)},AL=function(a){return(a=
zL(a.app.B,"endscreen"))?Iy(a):!1},BL=function(a){var b=zL(a.app.B,"endscreen");
return b&&Py(b)?!0:(a=zL(a.app.B,"ypc"))&&a.Va()?!0:!1},CL=function(a,b){a.R("autonavcancel",b)},T=function(a){return a.app.T},Xz=function(a){var b=a.app;
a=a.playerType;return 3==b.getPresentingPlayerType()?b.F.J:hq(b,a).getPlayerState()},pF=function(a){return a.app.D},DL=function(a){return a.app.M&&!a.Ia()||!!a.Ic()},EL=function(a){if(a=zL(a.app.B,"captions"))a.J=!0,a.loaded?a.g&&a.g!=a.A.de()?PG(a):a.ir():a.load()},yy=function(a){if(Th())if(a.Ia())(a=Qh(["exitFullscreen",
"webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],window.document))&&a.call(window.document);else{a=pF(a).element;var b=Qh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)}else a.va("onFullscreenToggled")},FL=function(a){return(a=hq(a.app))?Du(vK(a.ia,a.b)):"unknown"},GL=function(a){(a=zL(a.app.B,"webgl"))?a.A?(a=a.g,a=a.b?a.b.uf():{}):a={}:a={};
return a},HL=function(a,b){var c=zL(a.app.B,"webgl");
c&&c.A&&(c=c.g,c.b&&c.b.Ph(b))},IL=function(a,b){T(a).experiments.$("ui_logging")&&dC(a,"controlclicked",{controlClicked:b})},dC=function(a,b,c,d){var e=hq(a.app);
c.event=b;a.Ia()&&(c.fs=1);c.ux=1;e.logEvent(c,d)},DF=function(a){a.R("cardstatechange",tz(a)&&JL(a)?1:0)},tz=function(a){return(a=zL(a.app.B,"iv-module"))?IF(a):!1},JL=function(a){return(a=zL(a.app.B,"iv-module"))?JF(a):!1},KL=function(a,b,c){(a=zL(a.app.B,"iv-module"))&&LF(a,b,c)},OG=function(a){(a=hq(a.app))&&a.A&&oB(a.A.A)},Zz=function(a,b){a.va("onFrescaStateChange",b);
var c=hq(a.app);if(c&&b&&c.A){var c=c.A.g,d=b.hasActiveStream;vB(c,HB(c.b),"stream",[d?"A":"I"])}},LL=function(a){return(a=zL(a.app.B,"fresca"))?!!a.B&&a.B.B.A:!1},ML=function(a){var b=hq(a.app,1);
if(!b)return!1;var c=b.getVideoData();return Ox(c)&&!Tx(c)&&2!=a.getPresentingPlayerType()&&(!UK(b)||3==a.getPresentingPlayerType())},NL=function(a){return a.app.Z.play_pause||2==a.getPresentingPlayerType()?!0:!UK(hq(a.app,1))},OL=function(a,b,c){var d=a.app;
a=c||a.playerType;if(c=hq(d,a))c.C.Fh.apply(c.C,b),a&&d.getPresentingPlayerType()!=a||iq(d,"cuerangesremoved",b)},mr=function(a,b,c){a=pF(a).element;
var d=Bb(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));Af(a,b,d);b.setAttribute("data-layer",c)},Ey=function(a){if(!T(a).gb)return!1;
var b=a.getVideoData();return!!b&&!b.ypcPreview&&!b.sa&&!kb(b.G,"ypc")&&!a.Ic()},PL=function(a){gq.call(this,a);
this.Ea="heartbeat";this.logEvent="ypc_license";this.C=!1;this.B=0;this.o=!1;this.g=window.NaN;this.A=null},QL=function(a){return Sx(a.getVideoData(),"ypc_license_checker_module")},Mba=function(a){return QL(a)?new PL(a):null},RL=function(a){var b=a.b.getVideoData();
return Lx(b)?!!a.A:!!b.heartbeatToken},SL=function(a,b){if(!a.g&&a.C){var c=a.b.getVideoData();
if(RL(a)||c.sa)c=b,void 0==c&&(c=a.o?a.A?1E3*a.A.interval:a.b.getVideoData().heartbeatInterval||6E4:1E3),a.g=Mi(w(a.YD,a),c)}},TL=function(a,b){if(a.g){a.log({errorType:b});
a.g=window.NaN;a.B++;var c=a.b.getVideoData();(c.heartbeatSoftFail?0:a.B>=(a.A?a.A.b:c.heartbeatRetries||5))?(c=P("YTP_ERROR_LICENSE"),HK(a.b.app.g,"heartbeat",c,void 0)):SL(a)}},UL=function(a){try{return Vf(a)}catch(b){return null}},VL=function(a){a.B=0;
a.g&&(O(a.g),a.g=window.NaN);a.o=!1},Nba=function(a,b,c,d){var e=WL(b);
e?(e.status="success-prefetch-1",c(e)):a&&!b?c({status:"success"}):a?(a=Kj([a,"v1/cache/videos",b,"metadata"].join("/"),d),Sj(a,{format:"JSON",method:"GET",timeout:2E3,ab:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
wc:function(){var a=WL(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})},WL=function(a){var b=window.acceleratorMeta;
return(b?b.docid:null)===a?b:null},XL=function(a){F.call(this);
this.b=a},YL=function(a,b,c,d,e,f,k){this.contentProfileToken=e||null;
this.deviceId=f||null;this.hostname=a;this.status=b;this.active=c;this.g=d;this.b=k||null},Oba=function(a){function b(){throw Error("encoding error");
}
null==a&&b();var c=a.content_profile_token||null;c&&!v(c)&&b();var d=a.device_id||null;d&&!v(d)&&b();var e=a.hostname;e&&v(e)||b();var f=a.status||0;f&&!ha(f)&&b();var k=a.last_probe_tstamp||null;null===k||ha(f)||b();var m=a.active||!1;ga(m)||b();a=!1!==a.ux;ga(a)||b();return new YL(e,f,m,a,c,d,k)},Pba=function(a){var b=0,c=a.length,d={Xb:-1640531527,
Bc:-1640531527,c:314159265},e;for(e=c;12<=e;e-=12,b+=12)d.Xb+=ZL(a,b),d.Bc+=ZL(a,b+4),d.c+=ZL(a,b+8),$L(d);d.c+=c;switch(e){case 11:d.c+=a[b+10]<<24;case 10:d.c+=(a[b+9]&255)<<16;case 9:d.c+=(a[b+8]&255)<<8;case 8:d.Bc+=ZL(a,b+4);d.Xb+=ZL(a,b);break;case 7:d.Bc+=(a[b+6]&255)<<16;case 6:d.Bc+=(a[b+5]&255)<<8;case 5:d.Bc+=a[b+4]&255;case 4:d.Xb+=ZL(a,b);break;case 3:d.Xb+=(a[b+2]&255)<<16;case 2:d.Xb+=(a[b+1]&255)<<8;case 1:d.Xb+=a[b+0]&255}return $L(d)},$L=function(a){var b=a.Xb,c=a.Bc,d=a.c,b=b-c-
d^d>>>13,c=c-d-b^b<<8,d=d-b,d=d-c^c>>>13,b=b-c,b=b-d,b=b^d>>>12,c=c-d-b^b<<16,d=d-b,d=d-c^c>>>5,b=b-c,b=b-d,b=b^d>>>3,c=c-d-b^b<<10,d=d-b,d=d-c^c>>>15;
a.Xb=b;a.Bc=c;return a.c=d},ZL=function(a,b){return aM(a[b+0])+(aM(a[b+1])<<8)+(aM(a[b+2])<<16)+(aM(a[b+3])<<24)},aM=function(a){return 127<a?a-256:a},bM=function(a){this.hash=a},Qba=function(){var a=yj("yt-accelerator-settings-meta");
return null==a?null:new bM((0,window.isNaN)(a.h)?null:a.h)},Rba=function(){return new Bd(function(a,b){"XSRF_TOKEN"in Ii?a():Zi(function(){"XSRF_TOKEN"in Ii?a():b(Error("no XSRF token after init"))})})},Sba=function(a,b,c,d){var e=Zf({appliances:zi(a,function(a){var b={active:a.active,
status:a.status,ux:a.g};null!==a.contentProfileToken&&(b.content_profile_token=a.contentProfileToken);null!==a.deviceId&&(b.device_id=a.deviceId);return b})}),f=Pba(hH(e+"v2"));
a=Qba();null!==a&&a.hash===f?c():(a=function(){var a={client_info:e};b&&(a.session_token=b);Sj("/accelerator_settings_ajax?action_update=1",{format:"JSON",method:"POST",Hb:a,timeout:3E4,ab:function(){var a=new bM(f);xj("yt-accelerator-settings-meta",(0,window.isNaN)(a.hash)?{}:{h:a.hash},600);c()},
onError:function(a){d(a)},
wc:function(){d(Error("AJAX timeout"))}})},b?a():Rba().then(a,d))},cM=function(a,b,c,d){this.status=a;
this.contentProfileToken=b||null;this.deviceId=c||null;this.b=!1!==d;this.timestamp=Date.now()},dM=function(a,b,c,d){F.call(this);
this.A=tb(a);this.C=b;this.o=d||12E4;this.B=c||5E3;this.b=this.g=null;Tba(this)},Uba=function(a,b){var c=Date.now(),d=a.o,e=!1,f=ge(a.A,function(a){var b=a.b,f=c-b>=d;
e||!a.active||f||(e=!0);return null===b||f||1!=a.status});
return b&&!e?f:ge(f,function(a){a=a.b;return null===a||c-a>=d})},Tba=function(a){if(!lb(a.A)){var b=function(c){a.g=null;
a.b=Vba(a,Uba(a,c||!1));a.b.then(function(){a.b=null;a.g=Mi(b,a.o)})};
b(!0)}},Vba=function(a,b){var c=zi(b,function(b){return Wba(a,b)});
return Nd(Jd(c),function(){zi(c,function(a){a.cancel()})})},Wba=function(a,b){var c=null;
return(new Bd(function(a){c=Sj("//"+b.hostname+"/v1/cache/summary",{format:"JSON",method:"GET",timeout:this.B,ab:function(b,c){var k=!c||!c.hasOwnProperty("ux")||!!c.ux;a(new cM(1,c&&c.cs,c&&c.gcdid,k))},
onError:function(b,c){var k=2;0===(b&&"status"in b?b.status:-1)&&(k=4);var m=!c||!c.hasOwnProperty("ux")||!!c.ux;a(new cM(k,c&&c.cs,c&&c.gcdid,m))},
wc:function(){a(new cM(3))}})},a)).then(function(a){this.C(b,a)},function(){null!==c&&(c.abort(),c=null)},a)},eM=function(a,b){F.call(this);
this.A="yt-accelerator-mutex-x-"+a;this.g="yt-accelerator-mutex-y-"+a;this.oa=b||Ra();this.b=0},Xba=function(a,b,c){var d=D()+100;
return(new Bd(w(a.o,a,d))).then(function(a){try{b.call(c)}finally{Bj(this.g)}return a},function(a){this.b&&(O(this.b),this.b=0);
throw a;},a)},fM=function(a,b){F.call(this);
this.bc="yt-accelerator-master-"+a;this.oa=b||Ra();this.b=new eM("master-"+a,this.oa)},Yba=function(a,b){return Xba(a.b,function(){var a=yj(this.bc)||null;
if(!a||a.id==this.oa||b&&5E3<D()-a.t)xj(this.bc,{id:this.oa,t:D()},120);else throw Error(a.id);},a)},gM=function(){this.b={};
this.g={}},hM=function(){var a=yj("yt-accelerator-discover"),b=new gM;
b.b=Rb(a&&a.addrmap||{},function(a){return Oba(a)});
b.g=a&&a.qparamsmap||{};return b},iM=function(a){for(var b in a.b){var c=a.b[b];
if(c.active)return c}return null},jM=function(a,b){a.g=b},Zba=function(a){return{addrmap:Rb(a.b,function(a){return{hostname:a.hostname,
content_profile_token:a.contentProfileToken,device_id:a.deviceId,status:a.status,active:a.active,ux:a.g,last_probe_tstamp:a.b}}),
qparamsmap:a.g}},lM=function(a,b,c,d){F.call(this);
this.A=new fM("discover");this.o=0;this.g=null;this.b=hM();this.C=c;this.B=fm(window,"storage",w(this.ay,this));d?jM(this.b,Dj(d,"&")):jM(this.b,{});var e=0;if(!lb(a)){var f=Date.now();a=tb(a);Lb(a);E(a,function(a){if(!va(a,"dummy")){var b=this.b.b[a]||null;if(null===b){b=this.b;a=new YL(a,0,!1,!0);if(null!=(b.b[a.hostname]||null))throw Error("entry already exists");b.b[a.hostname]=a;e++}else 12E5<f-b.b&&(b.b=0)}},this)}!b&&0<e&&!iM(this.b)&&((this.b.b[a[0]]||null).active=!0,kM(this));
b&&(this.eq(!0),this.o=Ni(w(this.eq,this),6E4))},$ba=function(a){var b=Date.now(),c=[];
E(Xb(a.b.b),function(a){a.active&&(!a.b||12E5<b-a.b)?(a.active=!1,a.status=0):!a.active&&1!=a.status&&a.b&&12E5<b-a.b&&c.push(a)});
c&&E(c,function(a){delete this.b.b[a.hostname]},a)},kM=function(a){cc(a.b.b)?a.reset():xj("yt-accelerator-discover",Zba(a.b),259200);
Sba(Xb(a.b.b),a.C,function(){},function(){})},mM=function(){F.call(this);
this.g=this.b=null},nM=function(a){a=a.fmt_list;
if(!a)return{};var b=[];E(a,function(a){a.itag&&(b[a.itag.toString()]=!0)});
return b},oM=function(a,b,c,d,e){if(!a)return null;
var f=b.docid;b=nM(b);return f&&b?aca(a,f,b,c,d,e):null},aca=function(a,b,c,d,e,f){d=zi(d.split(","),Fj);
var k=ge(d,function(a){return!!c[a.itag]});
if(!k.length)return null;var m=Hg(a)||"",l=Ig(a),p={};E(k,function(a){if(a){var b=pM(a);b&&(p[b]=a)}});
var t=[];E(d,function(a){if(c[a.itag]){var d=$g(Zg(lh(a.url),m),l),k=Fg(a.url),d=hh(hh(d,"orig_host",Dg(k[1],k[2],k[3],k[4])),"scid",b),C;for(C in f)d.b.get(C)||hh(d,C,f[C]);a.url=d.toString();a.isAccelerated="1";e&&(a.isAcceleratedUiEnabled="1")}else if((C=pM(a))&&p[C])return;t.push(Og(a))});
return t.join(",")},pM=function(a){return a.quality?a.quality:a.quality_label||""},qM=function(a){gq.call(this,a);
this.logEvent=this.Ea="spacecast";this.g=null;this.A={}},bca=function(a){return a.getVideoData().spacecastModule?new qM(a):null},cca=function(a){this.id=a.id;
this.type=a.type;this.title=a.title;this.metadata=a.metadata;this.callToAction=a.callToAction;this.imageUrl=a.imageUrl;this.C=a.displayImages;this.A=a.animatedDisplayImages;this.F=a.iconUrl;this.left=a.left;this.width=a.width;this.top=a.top;this.aspectRatio=a.aspectRatio;this.startMs=a.startMs;this.endMs=a.endMs;this.videoId=a.videoId;this.videoDuration=a.videoDuration;this.playlistId=a.playlistId;this.playlistLength=a.playlistLength;this.channelId=a.channelId;this.o=a.htmlBlob;this.G=a.isSubscribe;
this.b=a.targetUrl;this.B=a.sessionData||{};this.H=a.targetTab;this.g=a.accessibilityStr;this.impressionUrls=a.impressionUrls;this.D=a.hoverUrls;this.clickUrls=a.clickUrls},rM=function(a){this.startMs=a.startMs;
this.impressionUrls=a.impressionUrls;this.skip=a.skip||!1;this.elements=[];a=a.elements;for(var b=0;b<a.length;b++)this.elements.push(new cca(a[b]))},sM=function(a){gq.call(this,a);
this.Ea="creatorendscreen";this.A=null;this.G=!1;this.o=null;this.g={};this.C={};this.B=null;this.H=!1;this.I=null},dca=function(a){return tM(a)?new sM(a):null},tM=function(a){return uM(T(a).b)?!0:Sx(a.getVideoData(),"iv_endscreen_url")},uM=function(a){return"creator-endscreen-editor"===a},vM=function(a,b){jq(a);
a.B&&(vq(a.B),a.B.dispose(),a.B=null);for(var c in a.g){var d=a.g[c];vq(d);d.dispose()}a.g={};a.C={};if((a.A=b)&&b.elements){c=[];d=new dq(b.startMs,0x7ffffffffffff,{id:"ytp-ce-in-endscreen"});c.push(d);a.B=new Q(["div","ytp-ce-shadow"]);mr(a.b,a.B.element,4);for(var e=0;e<b.elements.length;++e){var f=b.elements[e],d=(d={VIDEO:a.Kw,PLAYLIST:a.Jw,CHANNEL:a.Iw,WEBSITE:a.Lw}[f.type])?d.call(a,f):null;a.g[f.id]=d;a.C[f.id]=f;mr(a.b,d.element,4);var k=new dq(f.startMs,f.endMs,{id:"ytp-ce-element-"+f.id});
c.push(k);eca(a,d,f)}a.ob(c);a.tn()}},wM=function(a,b){var c=b.C.thumbnails;
!uM(T(a.b).b)&&a.I&&b.A&&b.A.thumbnails&&(c=b.A.thumbnails);return c[c.length-1].url},xM=function(a){return a?{style:"background-image: url("+a+")"}:{}},eca=function(a,b,c){b.N("mouseenter",w(a.$s,a,c));
b.N("mouseleave",w(a.gt,a,c));b.N("click",w(a.Cq,a,c));b.N("keypress",w(a.Cq,a,c));b.N("focus",w(function(a,b){J(a.element,"ytp-ce-force-expand");this.$s(b)},a,b,c));
b.N("blur",w(function(a,b){he(a.element,"ytp-ce-force-expand");this.gt(b)},a,b,c));
var d=w(function(a,b,c){c=Ef(c);E(c,function(c){d(c);Qf(c)&&(a.S(c,"focus",w(function(a,b){J(a.element,"ytp-ce-force-expand");yM(this,b.id,!0)},this,a,b)),a.S(c,"click",w(function(a,b){J(a.element,"ytp-ce-force-expand");
yM(this,b.id,!0);this.H=!0},this,a,b)),a.S(c,"blur",w(function(a,b){this.H?(this.H=!1,a.element.focus()):(he(a.element,"ytp-ce-force-expand"),yM(this,b.id,!1))},this,a,b)))},this)},a,b,c);
d(b.element)},yM=function(a,b,c){K(a.B.element,"ytp-ce-shadow-show",c);
for(var d in a.g)d!=b&&K(a.g[d].element,"ytp-ce-element-shadow-show",c)},zM=function(a,b,c){function d(){k||(f++,f==e.length&&(m.stop(),c&&c()))}
if(!b||uM(T(a.b).b))c&&c();else{var e=fca(a,b),f=0,k=!1,m=new be(function(){k=!0},1E3,a);
m.start();for(a=0;a<e.length;a++)Wp(e[a],d)}},fca=function(a,b){for(var c=a.b.getVideoData().clientPlaybackNonce,d=a.b.getCurrentTime().toFixed(2),c={CPN:c,
MT:d},d=[],e=0;e<b.length;e++)d.push(gca(b[e],c));return d},gca=function(a,b){return a.replace(/%5B[a-zA-Z_:]+%5D|\[[a-zA-Z_:]+\]/g,function(a){var d=(0,window.unescape)(a),d=d.substring(1,d.length-1);
return b[d]?(0,window.escape)(b[d]):a})},hca=function(a,b){var c=new window.Image;
c.onload=w(function(){this.I=0<c.width&&0<c.height;b()},a);
c.onerror=w(function(){this.I=!1;b()},a);
c.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"},AM=function(a){gq.call(this,a);
this.Ea="ypc_clickwrap";this.logEvent="ypc-clickwrap";Ri({YTP_YPC_START_RENTAL_HEADER:"B\u1ea1n c\u00f3 mu\u1ed1n ch\u1ea1y video cho thu\u00ea n\u00e0y kh\u00f4ng?",YTP_YPC_START_RENTAL_BUTTON:"B\u1eaft \u0111\u1ea7u giai \u0111o\u1ea1n cho thu\u00ea"});this.A=this.g=null},ica=function(a){return Sx(a.getVideoData(),"ypc_clickwrap_module")?new AM(a):null},BM=function(a,b,c){this.G=0;
this.D=a;this.B=b||.5;this.C=c||0;this.F="index";this.g=0;this.o=[]},DM=function(a,b){CM(a,"value");
var c=b*a.g,d=0,e=window.NaN;a.o.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e},CM=function(a,b){a.F!=b&&(a.F=b,Eb(a.o,b))},EM=function(a){this.o=a;
this.g=[]},jca=function(a){this.b=a;
this.D=this.F=0;this.g=-1;this.I=new xI(100);this.H=0;this.J=Bt();this.o=new BM(4,.6);this.C=new zI(4);this.B=0;this.G=new EM(this.b.b);this.K=new BM(this.b.b,.5,.1);this.b.B?this.A=new zI(this.b.b):this.A=new BM(this.b.b,.5,.1);a=yj("yt-player-bandwidth")||{};this.A.b(this.b.o,0<a.byterate?a.byterate:this.b.A);0<a.delay&&this.o.b(1,Math.min(+a.delay,2));0<a.tailDelay&&this.C.b(1,+a.tailDelay);this.g=Bt()},EJ=function(a,b,c){b=Math.max(b,.05);
a.A.b(b,c/b);FM(a)},FJ=function(a,b){a.o.b(1,b);
-1<a.g&&3E4<Bt()-a.g&&GM(a)},HM=function(a,b,c){(0,window.isNaN)(c)||(a.D+=c);
(0,window.isNaN)(b)||(a.F+=b);a.G.b(b,c/b);FM(a)},IM=function(a,b,c){b=Math.max(b,8192);
a.C.b(1,c/b);-1<a.g&&3E4<Bt()-a.g&&GM(a)},BI=function(a){a=a.o.A();
a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)},AI=function(a){return a.C.A()||0},By=function(a){var b=a.b.C&&a.B&&6E4>Bt()-a.B?a.K.A():a.A.A(),b=0<b?b:1;
a=a.G.A();a=0<a?a:1;return a>2*b?(b+a)/2:b},JM=function(a){var b={};
b.delay=BI(a);b.tailDelay=AI(a);b.byterate=By(a);return b},GM=function(a){xj("yt-player-bandwidth",JM(a),2592E3);
a.g=Bt()},FM=function(a){var b=Bt();
a.J=b;500<b-a.H&&(yI(a.I,1/(1/By(a)+AI(a))),a.H=b)},KM=function(a){return 4E3<=Bt()-a.J},kca=function(){this.b=17;
this.A=13E4;this.o=.5;this.C=this.B=!1;this.g=0},LM=function(){F.call(this);
this.b=[];this.C={};this.A={};this.o={};this.g=this.D=null;this.B=[];this.F=null},MM=function(a){a.b=ge(a.b,function(a){try{a.destroy()}catch(c){Pi(c)}return!1},a)},lca=function(a,b,c){NM(a);
a.F=b;a.B=tb(c);E(a.b,function(a){0<=jb(c,a.Ea)&&(a.F=b,a.dj(!!a.F))})},NM=function(a){E(a.B,function(a){if(a=zL(this,a))a.F=null,a.dj(!1)},a);
a.F=null;a.B=[]},OM=function(a){a=zL(a,"iv-module");
return!(!a||!a.loaded)},PM=function(a,b){if(!b)return zi(a.b,function(a){return a.Ea});
var c=zL(a,b);return c?c.tf():[]},zL=function(a,b){return fb(a.b,function(a){return a.Ea==b})},mca=function(a){var b={};
E(a.b,function(a){ta(b,a.Oh())});
return b},QM=function(a,b,c){this.b=b;
this.g=c;this.B=a;this.A=!0},RM=function(a,b){mc.call(this,"adError");
this.A=a;this.b=b?b:null},SM=function(a,b,c){mc.call(this,a);
this.A=b;this.b=null!=c?c:null},TM=function(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var f=fc(b,e),f=f.toString();
if(!z(A(f)))return(0,window.encodeURIComponent)(f).replace(/%2C/g,",")}catch(k){}return a})},nca=function(a){this.b=a},oca=function(){var a=UM();
return VM(a,"disableExperiments")},VM=function(a,b){if($b(a.b,b)){var c=a.b[b];
if(ga(c))return c}return!1},pca=function(a){if($b(a.b,"forceExperimentIds")){a=a.b.forceExperimentIds;
var b=[],c=0;ea(a)&&E(a,function(a){ha(a)&&(b[c++]=a)});
return b}return null},WM=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""},XM=function(){this.A="always";
this.C=1;this.g=!1;this.B=!0;this.G=!1;this.D=!0;this.F=null},UM=function(){var a=W;
if(null==a.F){var b={},c=(new N(sf().location.href)).b;if(rh(c,"tcnfp"))try{b=Vf(c.get("tcnfp"))}catch(d){}a.F=new nca(b)}return a.F},YM=function(a,b,c,d){this.oa=a;
this.b=Ve(c||0,0,1);this.g=null!=d?d:!0},ZM=function(a){this.oa=a;
this.g=new sg;this.b=null},qca=function(a){var b=Math.random(),c=0,d=a.g.Ha();
E(d,function(a){c+=a.b},a);
var e=1<c?c:1;a.b=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].b,f/e>=b){a.b=d[k];break}},sca=function(){this.g=null!=aa.G_testRunner;
this.b=new sg;$M(this,31061770,.05);$M(this,31061771,.05);$M(this,31061772,.05);$M(this,31061773,.05);$M(this,31061774,.01);$M(this,31061775,.01);$M(this,41351016,.05);$M(this,41351017,.05);$M(this,41351020,.01);$M(this,41351021,.01);$M(this,41351088,.01);$M(this,41351089,.01);$M(this,136961001,.01);$M(this,136961002,.01);$M(this,41351032,.05);$M(this,41351033,.05);$M(this,41351078,.1);$M(this,41351079,.1);$M(this,231422001,.05);$M(this,231422002,.05);$M(this,420706002,.01);$M(this,420706003,.01);
rca(this);var a;a=UM();a=pca(a);null!=a&&(this.g=!1,aN(this,a.map(String)))},cN=function(){bN||(bN=new sca);
return bN},tca=function(){var a=cN();
E(a.b.La(),function(a){va(a,"FORCED_PUB_EXP_LAYER_")&&this.b.remove(a)},a)},$M=function(a,b,c){z(A("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new YM(b,0,c),dN(a,"GvnExternalLayer").g.set(b.getId(),b))},rca=function(a){oca()||E(a.b.Ha(),function(a){qca(a)},a)},aN=function(a,b,c){E(b,function(a){var b=Number(a);
a="FORCED_PUB_EXP_LAYER_"+a;if(!((0,window.isNaN)(b)||0>=b||z(A(a)))){var f=null!=c?c:!0;dN(this,a).b=new YM(b,0,0,f)}},a)},eN=function(a,b){return a.g?!1:Ph(a.b.Ha(),function(a){return!!a.b&&a.b.getId()==b})},fN=function(a){return cN().g?!1:Ph(a,function(a){return eN(cN(),a)})},gN=function(a){if(a.g)return"";
var b=[];E(a.b.Ha(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});
return b.sort().join(",")},dN=function(a,b){var c=a.b.get(b);
null==c&&(c=new ZM(b),a.b.set(b,c));return c},hN=function(){return fN([9418778,
9417893,9417894,9417895,9419817])},jN=function(a){return null!=a?iN(uca,a):!1},iN=function(a,b){try{var c=(new N(b)).g,c=c.replace(/^www./i,"");
return Ph(a,function(a){return vca(a,c)})}catch(d){return!1}},vca=function(a,b){if(z(A(b)))return!1;
a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b},lN=function(a){var b=!1;
kN(a,wca)?b=!1:jN(a)?b=!0:"https:"==window.location.protocol&&(kN(a,xca)||W.b())&&(b=!0);if(b){b=new N(a);if("https"==b.o)return a;Yg(b,"https");return b.toString()}return a},kN=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)},mN=function(a){window.open(a,"_blank")},oN=function(a,b,c){null!=a?(hh(a,"label",b),null!=c&&hh(a,"value",c.join(";")),a=a.toString()):a="";
nN(a)},nN=function(a,b,c,d,e){null!=a&&null!=b&&(a=TM(a,b));
try{if(null!=c){b=a;var f=(c||{}).viewability||"na";if(z(A(f)))a=b;else{var k=new N(b);rh(k.b,"label")?(hh(k,"acvw",f),a=k.toString().replace(/%2C/g,",")):a=b}}a:{c=a;var m=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=m||!e&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(e=e||window.Goog_AdSense_Lidar_getUrlSignalsArray(),m={},f=0;f<e.length;++f){m.URL_SIGNALS=e[f];var l=TM(c,m);if(2048>l.length){a=l;break a}}a=c}}catch(t){}try{a=lN(a);var p=!W.b()||eN(cN(),41351089);null!=d&&d?pN.Pr(a,
p):W.D?pN.Or(a,p):pN.Kr(a,p)}catch(t){}},qN=function(a,b){null!=a&&E(a,function(a){nN(a,b)})},yca=function(a,b){if(z(A(b)))return a;
var c=new N(a),d=c.g;return null!=d&&wa(d,".g.doubleclick.net")?(hh(c,"ged",b),c.toString()):a},rN=function(a,b){this.message=a;
this.errorCode=b},tN=function(a,b,c){return sN("adLoadError",a,b||null,vb(arguments,2))},uN=function(a,b,c){return sN("adPlayError",a,b||null,vb(arguments,2))},vN=function(a,b,c,d,e){var f=a.apply(null,sb([c,
d],vb(arguments,3)));b.V(new SM("log",null,f))},sN=function(a,b,c,d){if(c instanceof QM)return c;
var e=b.errorCode;b=b.message;if(0<d.length)for(var f=0;f<d.length;f++)b=b.replace(new RegExp("\\{"+f+"\\}","ig"),d[f]);a=new QM(a,b,e);a.o=c;return a},wN=function(a,b,c,d){var e=uN.apply(null,sb([b,
c],vb(arguments,3)));a.V(new RM(e))},yN=function(){return!xN()&&(rc("iPod")||rc("iPhone")||rc("Android")||rc("IEMobile"))},xN=function(){return rc("iPad")||rc("Android")&&!rc("Mobile")||rc("Silk")},zN=function(){return yN()||xN()},BN=function(){return zca&&!AN||Na(qc,"iPod")},CN=function(){return BN()||AN},FN=function(a,b){if(null==DN[b]){var c=EN(a);
c?(c=c.replace(/_/g,"."),DN[b]=0<=Ua(c,b)):DN[b]=!1}return DN[b]},EN=function(a){z(GN)&&(a=a.exec(qc))&&(GN=a[1]);
return GN},HN=function(){var a=qc;
return a?Na(a,"Nintendo WiiU"):!1},IN=function(){var a;
(a=Na(qc,"CrKey")||Na(qc,"PlayStation")||Na(qc,"Roku"))||(a=(a=qc)?Na(a,"AppleTV")||Na(a,"GoogleTV")||Na(a,"HbbTV")||Na(a,"NetCast.TV")||Na(a,"Opera TV")||Na(a,"POV_TV")||Na(a,"SMART-TV")||Na(a,"SmartTV"):!1);return a||Na(qc,"Xbox")},KN=function(){return BN()||kI&&(!kI||!FN(JN,4))||!W.b()&&IN()?!1:!0},LN=function(a){return!(a.Ni()||a.bh()||W.b()||WH||CN())},MN=function(){this.reset()},NN=function(){this.g=this.b=null},PN=function(){this.b=ON();
this.G=-1;this.J=this.K=this.C=this.F=this.g=null;this.B=ON();this.o=null;this.P=this.H=this.I="";this.D=this.M=this.X=this.A=null;this.U=!1},ON=function(){return Math.floor(4503599627370496*Math.random())},QN=function(a){if(W.g){var b;
return"h.3.0.0"}b="h."+a.P;null!=a.A&&(b+="/n."+a.A,null!=a.g&&(b+="/"+a.g));return b},RN=function(){this.g=.01>Math.random();
this.A=Math.floor(4503599627370496*Math.random())},Aca=function(a,b){b.id="";
var c=SN();b.c=a.A;b.domain=c.g;return b},SN=function(){var a=sf(),b=window.document;
return new N(a.parent==a?a.location.href:b.referrer)},TN=function(){},UN=function(){return Math.round(D()/1E3)},Bca=function(a){var b;
b=window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing.domLoading?Math.round(window.performance.timing.domLoading/1E3):null;return null!=b?b:null!=a?a:UN()},VN=function(a){for(var b=[],c=a=sf(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);
else break;return b},WN=function(){this.b={};
this.g=0},XN=function(a,b){this.B=a;
this.A=!0;this.b=b},YN=function(a,b){XN.call(this,String(a),b);
this.o=a;this.b=!!b},ZN=function(a,b){XN.call(this,a,b)},$N=function(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");
var b=Number(a[0]),c=Number(a[1]);return new ZN("",new fg(c,b,Number(a[3])-c,Number(a[2])-b))}return new ZN("",new fg(0,0,0,0))},bO=function(){aO||(aO=new WN);
return aO},cO=function(a){var b=new fg(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new fg(0,0,0,0);
if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){var e;a:{e=b;var f=a[d],k=Math.max(e.left,f.left),m=Math.min(e.left+e.width,f.left+f.width);if(k<=m){var l=Math.max(e.top,f.top),f=Math.min(e.top+e.height,f.top+f.height);if(l<=f){e.left=k;e.top=l;e.width=m-k;e.height=f-l;e=!0;break a}}e=!1}if(!e)return c}return b},dO=function(a,b){var c=a.getBoundingClientRect(),d=Tq(a,b);
return new fg(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))},eO=function(a,b,c){if(b&&c){var d;
a:{d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(f<=k){d=new fg(d,f,e-d,k-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;a.setItem(new XN("vp",d));d&&0<d?(e=gg(b),f=gg(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new YN(512,e));d&&0<d?(e=gg(b),f=gg(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new YN(1024,e));d&&0<d?(e=gg(b),f=gg(c),
e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new YN(2048,e));d&&0<d?(b=gg(b),c=gg(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new YN(4096,c))}},Cca=function(){this.g=-1},fO=function(){this.b={};
return this},gO=function(a,b){a.b.eb=fc(a.b,"eb",0)|b},Dca=function(a,b){var c=0;
Zb(sf(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=bO();d.b={};var f=new YN(32,!0);f.A=!1;d.setItem(f);f=sf().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new YN(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var m;var l=sf().top;try{m=!!l.location.href||""===l.location.href}catch(u){m=!1}if(m){var p=VN(e);k=p&&0!=p.length?"1":"0"}else k="2"}catch(u){k="2"}d.setItem(new YN(256,
"2"==k));d.setItem(new YN(128,"1"==k));p=m=sf().top;"2"==k&&(p=sf());l=dO(e,p);d.setItem(new ZN("er",l));var t;try{t=p.document&&!p.document.body?null:of(p||window)}catch(u){t=null}t?(p=rf(hf(p.document).b),d.setItem(new YN(16384,!!p)),t=p?new fg(p.x,p.y,t.width,t.height):null):t=null;d.setItem(new ZN("vi",t));if(t&&"1"==k){k=VN(e);e=[];for(p=0;p<k.length;p++)(f=dO(k[p],m))&&e.push(f);e.push(t);t=cO(e)}eO(d,l,t);d.g&&(k=UN()-d.g,d.setItem(new XN("ts",k)));d.g=UN()}else d=bO(),d.b={},d.g=UN(),d.setItem(new YN(32,
!1));this.A=d;this.b=new fO;this.b.set("ve",4);c&&gO(this.b,1);Zb(sf(),"ima","video","client","crossdomainTag")&&gO(this.b,4);Zb(sf(),"ima","video","client","sdkTag")&&gO(this.b,8);Zb(sf(),"ima","video","client","jsTag")&&gO(this.b,2);b&&fc(b,"fullscreen",!1)&&gO(this.b,16);this.g=d=null;if(c&&(c=Zb(sf(),"ima","video","client"),c.getEData)){this.g=c.getEData();if(c=Zb(sf(),"ima","video","client","getLastSnapshotFromTop"))if(k=c())this.g.extendWithDataFromTopIframe(k.tagstamp,k.playstamp,k.lactstamp),
c=this.A,d=k.er,k=k.vi,d&&k&&(d=$N(d).getValue(),k=$N(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new ZN("er",e))),c.getItem("vi")&&(t=c.getItem("vi").getValue(),t.top+=d.top,t.left+=d.left,m=[],m.push(t),m.push(d),m.push(k),d=cO(m),eO(c,e,d),c.setItem(new ZN("vi",k))));a:{if(this.g){if(this.g.getTagLoadTimestamp){d=this.g.getTagLoadTimestamp();break a}if(this.g.getTimeSinceTagLoadSeconds){d=this.g.getTimeSinceTagLoadSeconds();break a}}d=
null}}this.b.set("td",UN()-Bca(d))},Eca=function(a,b){try{var c=new Dca(a,b),d=[],e=Number(c.b.get("eb"));
c.b.remove("eb");var f,k=c.b,m=[],l;for(l in k.b)m.push(l+k.b[l]);(f=m.join("_"))&&d.push(f);if(c.g){var p=c.g.serialize();p&&d.push(p)}var t,u=c.A;f=e;k=[];f||(f=0);for(var x in u.b){var B=u.b[x];if(B instanceof YN)B.getValue()&&(f|=B.o);else{var C,H=u.b[x];(C=H.A?H.g():"")&&k.push(x+C)}}k.push("eb"+String(f));(t=k.join("_"))&&d.push(t);c.b.set("eb",e);return d.join("_")}catch(L){return"tle;"+Ma(L.name,12)+";"+Ma(L.message,40)}},hO=function(a){try{return!!a&&null!=a.location.href&&pc(a,"foo")}catch(b){return!1}},
iO=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},jO=function(a){return(a=Fca.exec(a))&&a[0]||""},Gca=function(){var a=aa;
try{for(var b=null;b!=a;b=a,a=a.parent)switch(a.location.protocol){case "https:":return!0;case "http:":case "file:":return!1}}catch(c){}return!0},Hca=function(){var a=kO;
if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec((0,window.decodeURIComponent)(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""},Ica=function(a,b){this.g=a;
this.b=b},Jca=function(a){this.url=a;
this.Vp=!1;this.depth=ha(void 0)?void 0:null},mO=function(a){a=a?a:lO();
for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.Vp){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new Ica(c,d)},lO=function(){var a=aa,b=[],c,d=null;
do{var e=a;hO(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new Jca(c));try{a=e.parent}catch(f){a=null}}while(a&&e!=a);a=0;for(e=b.length-1;a<=e;++a)b[a].depth=e-a;e=aa;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)c=b[a],c.url||(c.url=e.location.ancestorOrigins[a-1],c.Vp=!0);return b},nO=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)},oO=function(a,
b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)},pO=function(a,b,c,d,e){this.B=c||2048;
this.o=a||"&";this.C=b||",$";this.A=n(d)?d:"trn";this.F=e||null;this.g={};this.D=0;this.b=[]},qO=function(a,b){var c={};
c[a]=b;return[c]},rO=function(a,b,c,d){a.b.push(b);
a.g[b]=qO(c,d)},Lca=function(a,b,c,d){b=b+"//"+c+d;
var e=Kca(a)-d.length-0;if(0>e)return"";a.b.sort(function(a,b){return a-b});
d=null;c="";for(var f=0;f<a.b.length;f++)for(var k=a.b[f],m=a.g[k],l=0;l<m.length;l++){var p=sO(m[l],a.o,a.C);if(p){p=c+p;if(e>=p.length){e-=p.length;b+=p;c=a.o;break}null==d&&(d=k)}}e="";a.A&&null!=d&&(e=c+a.A+"="+(a.F||d));return b+e+""},Kca=function(a){if(!a.A)return a.B;
var b=1,c;for(c in a.g)b=c.length>b?c.length:b;return a.B-a.A.length-b-a.o.length-1},sO=function(a,b,c,d,e){var f=[];
iO(a,function(a,m){var l=tO(a,b,c,d,e);l&&f.push(m+"="+l)});
return f.join(b)},tO=function(a,b,c,d,e){if(null==a)return"";
b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],k=0;k<a.length;k++)f.push(tO(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?(0,window.encodeURIComponent)(sO(a,b,c,d,e+1)):"...";return(0,window.encodeURIComponent)(String(a))},vO=function(a,b,c,d){try{var e;
c instanceof pO?e=c:(e=new pO,iO(c,function(a,b){var c=e,d=c.D++,f=qO(b,a);c.b.push(d);c.g[d]=f}));
if(Math.random()<(d||a.b)){var f=Lca(e,a.g,a.A,a.o+b+"&");uO(aa,f)}}catch(k){}},uO=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);
var d=a.document.createElement("img");if(c){var e=function(a){c(a);oO(d,"load",e);oO(d,"error",e)};
nO(d,"load",e);nO(d,"error",e)}d.src=b;a.google_image_requests.push(d)},wO=function(a,b,c){this.A=a;
this.B=b;this.g=c;this.o=this.b},xO=function(a,b,c){this.message=a;
this.fileName=b||"";this.lineNumber=c||-1},zO=function(a,b,c,d,e){var f;
try{f=c()}catch(l){var k=a.g;try{var m=yO(l),k=(e||a.o).call(a,b,m,void 0,d)}catch(p){a.b("pAR",p)}if(!k)throw l;}finally{}return f},BO=function(a,b,c,d){var e=AO;
return function(){for(var f=[],k=0;k<arguments.length;++k)f[k]=arguments[k];return zO(e,a,function(){return b.apply(c,f)},d)}},yO=function(a){return new xO(CO(a),a.fileName,a.lineNumber)},CO=function(a){var b=a.toString();
a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b},DO=function(a,b,c,d){return BO(a,b,c,d)},EO=function(a,b){return BO(a,b,void 0,void 0)},Mca=function(){for(var a=X,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,hO(a)&&(b=a);
return b},FO=function(a){return{visible:1,
hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0},HO=function(){var a;
GO.mozVisibilityState?a="mozvisibilitychange":GO.webkitVisibilityState?a="webkitvisibilitychange":GO.visibilityState&&(a="visibilitychange");return a},IO=function(a){a=a.match(/[\d]+/g);
if(!a)return"";a.length=3;return a.join(".")},JO=function(a,b){var c=a||X;
c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new bf(-1,-1):b?(new bf(c.innerWidth,c.innerHeight)).round():of(c||window).round()}catch(d){return new bf(-12245933,-12245933)}},Nca=function(){var a=KO.getInstance().C,b=0<=LO?MO()-LO:-1,c=NO?MO()-OO:-1,d=0<=PO?MO()-PO:-1,e;
if(79463068==a)return 500;if(947190538==a)a=[4E3],e=[250,1E3];else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var f=b;-1!=c&&c<b&&(f=c);for(var k,b=0;b<a.length;++b)if(f<a[b]){k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k},MO=function(){return(new Date).getTime()-Oca},QO=function(){var a=M("div");
a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a},RO=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Iq(a,"display"))return!0;
b=a;a=a.parentElement}if(b&&(a=ff(b))){var c,d;try{if(c=sf(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return RO(d)}return!1},UO=function(a){SO.e=-1;
SO.i=6;SO.n=7;SO.t=8;if(!TO){var b=[];E(Yb(SO),function(a){b[SO[a]+1]=a});
var c=b.join("");TO=(c=a&&a[c])&&w(c,a)}return TO},WO=function(){return yK&&eu&&fu("6.0.1")&&0<=Ua(VO,"10.1")?!0:!1},Pca=function(){this.D=[0,
0,0,0,0];this.B=[0,0,0,0,0];this.g=[0,0,0,0,0];this.G=[0,0,0,0,0];this.A=this.H=this.F=this.o=-1;this.b=0;this.C=-1},XO=function(a,b,c,d){c=BO(d||"osd_or_lidar::"+b,c,void 0,void 0);
nO(a,b,c,void 0);return c},YO=function(a,b){this.o=null;
this.D=a;this.G=b||1;this.b="u"},ZO=function(a,b){var c=b.right-b.left,d=b.bottom-b.top,e=Math.floor(c/2),f=Math.floor(d/2);
switch(a.G){case 4:return a.D?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new $e(e,f),new $e(c-e,f),new $e(e,d-f),new $e(c-e,d-f)]):[new $e(e,0),new $e(0,f),new $e(e,d-1),new $e(c-1,f)];case 3:return[new $e(c-1,0),new $e(e,f),new $e(0,d-1)];default:return[new $e(e,f)]}},$O=function(a,b){var c;
try{c=b||a.o.getBoundingClientRect()}catch(e){c=new eg(0,0,0,0)}var d=ZO(a,c);E(d,function(a){a.x+=c.left;a.y+=c.top});
return d},aP=function(a,b){YO.call(this,a,b);
this.g=[];this.F=!1;this.A=-1;this.B=this.C=0},Qca=function(a,b,c){this.snapshot=a;
this.g=b;this.b=c},Rca=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ua(VO,"11")&&c)||qf&&9>wc||0<a.g.length)return!1;
try{var d=b.getBoundingClientRect()}catch(p){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=ff(b),k=[];if(e){var m=QO(),d=ZO(a,d);E(d,function(a,b){var d=new bP("e",f,c,String(b));this.g.push(d);k.push(w(d.Qp,d,m,a))},a);
Af(b,m,0)}else d=$O(a,d),E(d,function(a,d){var e=new bP("e",f,c,String(d));this.g.push(e);k.push(w(e.Pp,e,b,a))},a);
var l=!0;E(k,function(a){l=l&&a()});
l?(a.b="l",a.o=b,a.F=!e):(E(a.g,function(a){a.remove()}),a.g=[]);
return l},Sca=function(a){if(a.o&&a.F){var b=$O(a);
E(b,function(a,b){this.g[b]&&this.g[b].setPosition(a)},a)}},cP=function(a){E(a.g,function(a){a.remove()});
a.g=[];a.b="d"},Xca=function(a){var b=D(),c=a.C?b-a.C:0,d=-1,e=zi(a.g,function(a){return dP(a,b)});
4==a.g.length?d=a.D?Tca(e):Uca(e):3==a.g.length?d=Vca(e):1==a.g.length&&(d=[-1,0,1,2,3,5][dP(a.g[0],b)+1]);a.B=d==a.A?a.B+c:0;c=new Qca(d,a.A,c);a.A=d;a.C=b;Wca(a,d);Sca(a);return c},fP=function(a){var b=Jb(Ub(eP));
E(a,function(a){0<=a&&++b[a]});
return b},Uca=function(a){a=fP(a);
return 4==a[4]?6:3<=a[4]?5:0<a[4]?4:4==a[2]?2:4==a[1]?1:4==a[0]?0:3},Vca=function(a){var b=fP(a);
return 4==a[0]&&4==a[2]?6:4==a[1]?5:0<b[4]?4:3==b[2]?2:3==b[1]?1:3==b[0]?0:3},Tca=function(a){a=fP(a);
return 3<=a[4]?5:2==a[4]?8:0<a[4]?7:4==a[2]?2:4==a[1]?1:4==a[0]?0:3},Wca=function(a,b){if(0==b&&gP(a))a.b="n";
else switch(b){case -1:a.b="d";break;case 0:a.b="l";break;case 1:a.b="f";break;case 2:a.b="c";break;case 3:case 4:case 5:case 6:a.b="r"}},gP=function(a){return"n"==a.b?!0:"l"==a.b&&3E3<=a.B},bP=function(a,b,c,d){this.b=null;
this.o=a;this.oa="e"==a?String(c)+"~"+String(d):"";this.g=[];this.A=-1;this.C=0;this.B=Jb(Ub(Yca));this.D=Jb(Ub(eP));"e"==this.o&&(hP[this.oa]=w(this.by,this));qf?(a=b.createElement("div"),a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="opacity:0;-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity=0)\';filter:alpha(opacity=0)"><param name="movie" value="'+iP(this,!0)+'"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param></object>',
a=a.firstChild,a.id=String(Math.random())):a=Zca(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.b=a},Zca=function(a,b){function c(a,c,d){var e=b.createElement("param");
e.name=c;e.value=d;a.appendChild(e)}
var d=iP(a),e=b.createElement("object");e.type="application/x-shockwave-flash";e.data=d;c(e,"movie",d);c(e,"allowscriptaccess","always");c(e,"wmode","opaque");e.style.visibility="s"==a.o?"":"hidden";e.style.opacity=0;return e},iP=function(a,b){var c=Pg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.oa);
"s"==a.o&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Pg(c,"delay","1"));return c},dP=function(a,b){if("e"==a.o){var c=null;
try{c=a.b.it()}catch(f){}null===c?(c=0,0<a.A&&(c=2)):c=c?3:4;++a.D[c+1];a.A=c}else{var d=Number(b),e=jP(a);$ca(a,e,d);c=a.g[a.g.length-1];if(null===e){if(e=d=0,0<a.A||ha(c.vj))e=d=2}else null===c.vj||c.timeMs>=d?(d=10<=e?4:0,e=0):e>c.vj?(c=(e-c.vj)/(d-c.timeMs)*1E3,d=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.C&&6==c&&(c=7),e=c):e=d=1;6==a.C&&(--a.B[6],4==e||8==e?++a.B[5]:++a.B[7]);++a.B[e];a.A=d;a.C=e}return a.A},jP=function(a){var b=null;
try{b=a.b.fc()}catch(c){}return b},$ca=function(a,b,c){var d=c-1E3,e=a.g.length;
E(a.g,function(a,b){a.timeMs<=d&&(e=Math.min(e,b+1))});
var f=a.g.length-e;0<f&&a.g.splice(e,f);a.g.unshift({vj:b,timeMs:c})},kP=function(){this.C=!0;
this.g=new bP("s",GO);this.B=!1;this.G=this.F=this.M=this.b=this.o=this.D=this.I=this.J=this.K=this.A=this.H=null},lP=function(a,b){b!==a.b&&(a.b=b,a.K(b))},mP=function(a){var b=jP(a.g);
null===a.M&&null!==b&&null!==a.F&&(a.M=D()-a.F);return b},nP=function(a){var b=a.H.getBoundingClientRect(),c;
c=null!=a.I?a.I.clone():new $e(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.B&&(c.x+=b.left,c.y+=b.top);return c},oP=function(a){a.B&&(a.J=nP(a));
a.g.setPosition(a.J);a.D=X.setTimeout(EO("osd_or_lidar::sfm_tpto",w(a.U,a)),125)},ada=function(a){if(a.C){var b=w(function(){1===FO(GO)?(this.o=null,oP(this)):(X.clearTimeout(this.D),lP(this,0))},a),c=HO();
if(c){var d=XO(GO,c,b,"osd_or_lidar::sfm_pv");a.G=function(){oO(GO,c,d);this.G=null}}a.C=!1;
a.b=null;b()}},pP=function(a){a.C||(X.clearTimeout(a.D),null===a.G||a.G(),a.C=!0)},qP=function(a,b){YO.call(this,a,b);
this.g=[];this.B=this.F=null;this.A=!0;this.C=null},bda=function(a,b,c){if(null!==a.B)return!1;
a.o=b;a.F=c;c=b.getBoundingClientRect();c="DIV"==b.tagName||"INS"==b.tagName?ZO(a,c):$O(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new kP,k;k=f;var m=b,l=w(a.H,a),p=e;if(null===k.F){var t="DIV"==m.tagName||"INS"==m.tagName;k.B=!t;k.H=m;e=nP(k);if(null!=p){e=p;p=new $e(0,0);if(k.B){var u=k.H.getBoundingClientRect();p.x+=u.left;p.y+=u.top}k.I=new $e(e.x-p.x,e.y-p.y)}k.K=l;t?(k.A=QO(),Af(m,k.A,0),m=k.g.Qp(k.A,e)):m=k.g.Pp(m,e);m?(k.F=D(),k.J=e,k=!0):(k.g.remove(),k.A&&Bf(k.A),k=!1)}else k=!1;if(!k)return rP(a),
a.b="c",!1;a.g.push(f)}a.B=D();a.b="l";return!0},eda=function(a){var b=Jb(Ub(cda));
E(a.g,function(a){null!=a.b&&0<=a.b&&++b[a.b]});
switch(a.G){case 4:return dda(a,b);case 3:return 1==a.g[0].b&&1==a.g[2].b?3:1==a.g[1].b?2:0<b[1]?1:0;default:return 1==b[1]?2:0}},dda=function(a,b){var c=b[1];
if(a.D){if(3<=c)return 2;if(2==c)return 5;if(0<c)return 4}else{if(4==c)return 3;if(3==c)return 2;if(0<c)return 1}return 0},sP=function(a){a.A&&null!==a.B&&"d"!=a.b&&(E(a.g,function(a){ada(a)}),a.b="r",a.A=!1)},tP=function(a){a.A||(E(a.g,function(a){pP(a)}),a.A=!0)},rP=function(a){tP(a);
E(a.g,function(a){pP(a);a.g&&(a.g.remove(),a.g=null);a.A&&(Bf(a.A),a.A=null)});
a.g=[];a.b="d"},KO=function(){this.B=!1;
this.C=void 0;this.g=!hO(X.top);var a=lO();this.D=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Hg(a[a.length-1].url)||"":"";this.A=this.o=this.b=null;this.F=0},vP=function(a,b,c,d){this.position=uP.clone();
this.Cd=0;this.g=new Pca;this.ub=-2;this.Jg=(new Date).getTime();this.Oe=-1;this.Sa=c;this.U=-1!=c;this.Ga=-1;this.Mc=this.Ad=null;this.xf=d;this.Yd=r;this.Qe=function(){};
this.X=this.element=b;this.A=null;this.P=1;this.ra=!1;this.o=null;this.Ub=this.Aa=!1;this.gb=1;this.Ne=!0;this.wf=KO.getInstance().F++},fda=function(a,b,c,d,e){if(a.U){var f=X.innerWidth,k=X.innerHeight,m=new eg(Math.round(X.mozInnerScreenY),Math.round(X.mozInnerScreenX+f),Math.round(X.mozInnerScreenY+k),Math.round(X.mozInnerScreenX));
c=new eg(X.screenY+d,X.screenX+c.width,X.screenY+c.height,X.screenX);e||(d=new eg(m.top-c.top,m.right-c.left,m.bottom-c.top,m.left-c.left),d.top>a.position.top?a.position=d:(a.position.right=a.position.left+f,a.position.bottom=a.position.top+k),a.Cd=f*k);a.ze(m,c,b,e,!0,!0)}},hda=function(a,b,c){if(a.U){var d=UO(X&&X.document);
if(d){c||wP(a,X,!0);if(a.Ub)var e=gda(a,d),d=!0;else var e=Math.floor((a.position.left+a.position.right)/2),f=Math.floor((a.position.top+a.position.bottom)/2),k=rf(window.document),e=d(e-k.x,f-k.y)?.5:0,d=!1;a.ze(a.position,e,b,c,!0,d)}}},xP=function(a,b,c){var d;
if(c(b))return b;for(;;){d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}},gda=function(a,b){var c=rf(window.document),d=a.gb,e=Math.floor(a.position.left-c.x)+1,f=Math.floor(a.position.top-c.y)+1,k=Math.floor(a.position.right-c.x)-d,m=Math.floor(a.position.bottom-c.y)-d,c=(m-f)*(k-e);
if(f>m||e>k)return 0;var d=!!b(e,f),l=!!b(k,m);if(d&&l)return 1;var p=!!b(k,f),t=!!b(e,m);if(d)m=xP(f,m,function(a){return!!b(e,a)}),k=xP(e,k,function(a){return!!b(a,f)});
else if(p)m=xP(f,m,function(a){return!!b(k,a)}),e=xP(k,e,function(a){return!!b(a,f)});
else if(t)f=xP(m,f,function(a){return!!b(e,a)}),k=xP(e,k,function(a){return!!b(a,m)});
else if(l)f=xP(m,f,function(a){return!!b(k,a)}),e=xP(k,e,function(a){return!!b(a,m)});
else{var u=Math.floor((e+k)/2),x=Math.floor((f+m)/2);if(!b(u,x))return 0;f=xP(x,f,function(a){return!!b(u,a)});
m=xP(x,m,function(a){return!!b(u,a)});
e=xP(u,e,function(a){return!!b(a,x)});
k=xP(u,k,function(a){return!!b(a,x)})}return(m-f)*(k-e)/c},ida=function(a,b,c,d,e){a.U&&(d||wP(a,X,e),a.ze(a.position,c,b,d,!1,!0))},yP=function(a,b,c){a.U&&a.ze(a.position,a.g.b,b,c,!0,!0)},zP=function(a){var b=-1;
1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.3<=a?b=3:0<a&&(b=4);return b},AP=function(a,b){a.P=3;
if(!a.X||WO()||WO())return a.ra=!0,!1;var c=new aP(!1,a.P),d=Rca(c,a.X,String(a.wf));d?(a.Qe=b,a.A=c):a.ra=!0;return d},CP=function(a,b){if(!a.element||!WO())return!1;
a.P=3;var c=new qP(!1,a.P),d=bda(c,a.element,w(function(a){BP(this,MO(),!1,b,[0,.01,.5,1,.01,.3][a])},a));
d&&(a.o=c,sP(c));return d},BP=function(a,b,c,d,e){a.U&&DP(a)&&(c?a.o&&tP(a.o):(wP(a,d,!0),a.o&&sP(a.o)),d=e||0,ha(e)||-1==a.g.A||(d=[1,
.75,.5,.3,.01][a.g.A]||0),a.ze(a.position,d,b,c,!1,!1),!a.ke()||a.Xl()||a.o&&rP(a.o))},DP=function(a){return null!==a.o&&"d"!=a.o.getStatus()},wP=function(a,b,c){b=c?b:b.top;
try{var d=uP.clone(),e=new $e(0,0);if(a.X){if(c||1!=a.xf||!RO(a.X))d=a.X.getBoundingClientRect();e=Tq(a.X,b)}var f=e.x,k=e.y;a.position=new eg(Math.round(k),Math.round(f+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(f))}catch(m){a.position=uP.clone()}a.Cd=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)},EP=function(a,b){var c=Math.pow(10,b);
return Math.floor(a*c)/c},jda=function(a){a.A&&cP(a.A);
a.o&&rP(a.o)},kda=function(){this.b={};
for(var a in FP)this.b[FP[a]]=0},GP=function(a,b){0==a.b[b]&&(a.b[b]=1)},lda=function(a){var b=0,c;
for(c in a.b){var d=(0,window.parseInt)(c,10);1==a.b[d]&&(b+=d,a.b[d]=2)}return b},mda=function(){this.H=this.C=0;
this.g=-1;this.B=this.A=this.F=this.G=this.b=0;this.D=!1;this.o=[0,0,0,0,0]},HP=function(a,b,c){var d=a.H;
NO||c||-1==a.g||(d+=b-a.g);return d},nda=function(a){var b=a.C;
a.C=0;return b},oda=function(a){var b=a.B;
a.B=0;return b},pda=function(a){var b=a.A;
a.A=0;return b},IP=function(a,b,c,d){vP.call(this,0,b,c,d);
this.G=new mda;this.Bb=[0,0,0,0,0];this.yb=[0,0,0,0,0];this.ga=[0,0,0,0,0];this.$a=this.ba=0;this.F={};this.D=new kda;this.Vd={};this.lg=this.C="";this.Ud=!1;this.Ua=[];this.K=void 0;this.Wd=this.Te=this.Ue=this.hd=!1;this.I=void 0;this.J=-1;this.ca=this.H=this.aa=this.qb=void 0;this.wa=this.ka=this.Y=0;this.Ca=1>Math.random()?1:0;this.Pa=0;this.Ja=-1;this.jc=!1;this.za=this.ib=0;this.ea=!1;this.Z=this.Ib=this.Fa=this.ma=this.b=this.M=this.Pe=0;this.ia=-1;this.Le=this.Ke=0;this.Se=this.Xd=this.Ve=
this.B=!1;this.Me=0;this.Re=!1;this.Za=r;b=KO.getInstance();wP(this,a,b.g)},JP=function(a){return n(a)&&0<=a&&1>=a},KP=function(a,b){var c=b-a.Sa||1,d=1E4;
n(a.J)&&-1!=a.J&&(d=Math.max(d,a.J/3));return c>d?1:c},qda=function(a){var b=0;
.5<=a.g.b&&(b+=1);JP(a.H)&&(b+=2);a.ea&&(b+=4);a.B&&(b+=8);-1!=a.Ga&&(b+=16,1==a.Ga&&(b+=32));a.ca&&(b+=128);a.ca&&0<a.g.b&&(b+=256);return b},rda=function(a){a.Ub=!0;
a.gb=2},LP=function(a,b){ub(a.Ua,Jb(b-a.Ua.length+1));
a.Ua[b]=EP(a.g.b,2)},OP=function(a,b){var c=a.Vd[b];
if(null!=c)return c;if(a.Aa)return{"if":0};c=a.position.clone();c.round();var d=zi(a.Ua,function(a){return 100*a|0}),e=KO.getInstance(),f=a.G,k={};
k["if"]=e.g?1:void 0;k.sdk=a.I?a.I:void 0;k.t=a.Jg;k.p=[c.top,c.left,c.bottom,c.right];k.tos=a.g.D;k.mtos=a.g.B;k.ps=void 0;k.pt=d;k.vht=HP(f,MO(),!!a.K);k.mut=f.G;k.a=a.H;k.ns=a.Me;k.fs=a.B?1:0;k.ft=a.ib;k.at=f.F;k.as=f.D?1:0;k.atos=f.o;k.uac=a.Pe;k.vpt=a.Pa;k.is=qda(a);k.ic=lda(a.D);if("h"==a.I||"as"==a.I)k.gmm="2";"fully_viewable_audible_half_duration_impression"==b&&(k.std="csm");a.Ub&&(k.efpf=a.gb);a.A&&(k.swf=a.A.getStatus(),k.px=a.P);a.o&&(k.sfm=a.o.getStatus(),k.px=a.P);0<a.Le&&(k.nnut=a.Le);
k.tcm=a.Ca;k.nmt=a.Ib;k.bt=a.Z;k.pst=a.ia;k.mmct=a.Ke;k.vpaid=a.qb;k.dur=a.J;k.vmtime=a.ka;k.vmtos=a.Bb;k.vmmtos=a.yb;sda(a,b)&&(a.ke()&&(k.dtos=nda(f),k.vmdtos=a.ba,a.ba=0,k.dav=oda(f),a.$a++,k.dtoss=a.$a),k.dat=pda(f),k.dft=a.za,a.za=0);!a.ke()&&2E3<=a.ba&&(k.vmdtos=a.ba);e.A&&(k.ps=[e.A.width,e.A.height]);k.dom=e.D;a.ra&&(k.fmf="1",k.px=a.P);a.hd&&(k.ven="1");a.Ue&&(k.veh="1");a.M&&(k.vds=a.M);a.b&&(k.vmer=a.b);a.ma&&(k.vmmk=a.ma);a.Fa&&(k.vmiec=a.Fa);MP()?(k.c=EP(a.g.b,2),k.ss=EP(tda(a),2)):k.tth=
MO()-NP;k.mc=EP(a.g.C,2);k.lte=EP(a.ub,2);return k},tda=function(a){if(a.B)return 1;
var b=X.screen.width*X.screen.height;return 0>=b?-1:a.Cd*a.g.b/b},sda=function(a,b){if(kb(uda,b))return!0;
var c=a.F[b];return n(c)&&(a.F[b]=!0,!c)?!0:!1},XP=function(){if(!PP){PP=!0;
var a=aa.requestAnimationFrame||aa.webkitRequestAnimationFrame||aa.mozRequestAnimationFrame||aa.oRequestAnimationFrame||aa.msRequestAnimationFrame;if(!QP){var b;if(a){var c=BO("osd_or_lidar::throttled_scroll_raf_callback",RP,void 0,void 0);b=function(){a(function(){X.setTimeout(c,0)})}}else b=RP;
SP=new wm(BO("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=w(SP.Of,SP);QP=XO(X,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!TP){if(a){var d=BO("osd_or_lidar::throttled_resize_raf_callback",UP,void 0,void 0);b=function(){a(function(){X.setTimeout(d,0)})}}else b=UP;
VP=new wm(BO("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=w(VP.Of,VP);TP=XO(X,"resize",b,"osd_or_lidar::throttled_resize")}vda();WP()}},UP=function(){YP(!1);
RP()},RP=function(){ZP($P(),!1)},yda=function(){var a,b=KO.getInstance();
aQ&&(b.b=JO(X,aQ));if(wda)return a=new bQ,a.G=!0,a;if(xda)return a=new bQ,a.B=!0,a;if(cQ){a=dQ;YP(!1);var c=KO.getInstance(),d=c.o,b=d.height-a;0>=b&&(b=d.height,a=0);c.b=new bf(d.width,b);b=new bQ;b.D=!0;b.A=c.b;b.g=d;b.o=a;return b}if(eQ)return a=new bQ,a.C=!0,a;if(fQ)return a=new bQ,a.F=!0,a;if(gQ)return a=new bQ,a.H=!0,a;a:{var b=b.b,e=new bQ;e.A=b;e.b=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var f=aQ,k=X||X,k=k.top,c=b||JO(k,f),d=rf(hf(k.document).b);
a=-1==c.width||-12245933==c.width?new eg(c.width,c.width,c.width,c.width):new eg(d.y,d.x+c.width,d.y+c.height,d.x)}catch(m){a=e;break a}e.I=a;e.b=!0}a=e}return a},ZP=function(a,b){var c;
if(!hQ)if(window.clearTimeout(iQ),iQ=null,0==a.length)b||jQ();else{var d=yda();try{var e=MO();if(d.B)for(c=0;c<a.length;c++)yP(a[c],e,b);else if(d.G)for(c=0;c<a.length;c++)yP(a[c],e,b);else if(d.D)for(c=0;c<a.length;c++)fda(a[c],e,d.g,d.o,b);else if(d.C)for(c=0;c<a.length;c++)hda(a[c],e,b);else if(d.F)E(a,function(a){if(b){if(a.A){var c=a.A;3<=c.A&&(c.A=3);a.g.A=-1}}else if(a.A&&"d"!=a.A.getStatus()){var c=Xca(a.A),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.g.A=zP(d[c.g+1]);a.ze(a.position,
e,a.Sa+c.b,!1,!0,!1);!a.ke()||a.Xl()||a.Ne||a.A&&cP(a.A);(c=2==c.snapshot||gP(a.A))||(c=a.A,c="f"==c.b&&3E3<=c.B);c&&(a.Qe(a),a.Ne=!1,a.A&&cP(a.A))}});
else if(d.H)for(c=0;c<a.length;c++)BP(a[c],e,b,X);else if(d.b){var f=KO.getInstance();for(c=0;c<a.length;c++)ida(a[c],e,d.I,b,f.g)}++zda}finally{b?E(a,function(a){a.g.b=0}):jQ()}}},vda=function(){var a=WP,b=HO();
b&&(kQ=kQ||XO(GO,b,a,"osd_or_lidar::visibility"))},WP=function(){var a=MP(),b=MO();
a?(NO||(OO=b,E(lQ,function(a){var d=a.G;d.H=HP(d,b,!!a.K)})),NO=!0,YP(!0)):(NO=!1,NP=b,E(lQ,function(a){a.U&&(a.G.g=b)}));
ZP($P(),!a)},MP=function(){if(Ada())return!0;
var a=FO(X.document);return 1==a||0==a},jQ=function(){X&&(iQ=X.setTimeout(EO("osd_or_lidar::psamp_to",function(){ZP($P(),!1)}),Nca()))},Bda=function(a){return fb(lQ,function(b){return b.C==a})},$P=function(){return 0==lQ.length?mQ:0==mQ.length?lQ:sb(mQ,lQ)},Cda=function(){var a=X.document;
return a.body&&a.body.getBoundingClientRect?!0:!1},YP=function(a){var b=KO.getInstance();
b.b=JO(X,aQ);if(!a){b.o=X&&X.outerWidth?new bf(X.outerWidth,X.outerHeight):new bf(-12245933,-12245933);var c;a=X;a.top!=a&&(a=a.top);var d=0,e=0,f=KO.getInstance().b;try{var k=a.document,m=k.body,l=k.documentElement;if("CSS1Compat"==k.compatMode&&l.scrollHeight)d=l.scrollHeight!=f.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=f.width?l.scrollWidth:l.offsetWidth;else{var p=l.scrollHeight,t=l.scrollWidth,u=l.offsetHeight,x=l.offsetWidth;l.clientHeight!=u&&(p=m.scrollHeight,t=m.scrollWidth,u=
m.offsetHeight,x=m.offsetWidth);p>f.height?p>u?(d=p,e=t):(d=u,e=x):p<u?(d=p,e=t):(d=u,e=x)}c=new bf(e,d)}catch(B){c=new bf(-12245933,-12245933)}b.A=c}},Dda=function(a,b){var c=!1;
E(lQ,function(b){b=CP(b,a);c=c||b});
(gQ=c)&&E(lQ,function(a){DP(a)||b(a)});
return c},Eda=function(a){var b=!1;
E(lQ,function(c){c=AP(c,a);b=b||c});
(fQ=b)&&E(lQ,function(b){b.A||a(b)});
return b},Fda=function(a){E(a,function(a){null==fb(lQ,function(c){return c.element==a.element&&c.lg==a.lg})&&lQ.push(a)})},Ada=function(){return Ph(lQ,function(a){return a.B})},bQ=function(){this.g=this.A=null;
this.o=0;this.I=null;this.b=this.H=this.F=this.C=this.D=this.B=this.G=!1},nQ=function(){this.g=-1;
this.g=64;this.b=Array(4);this.B=Array(this.g);this.o=this.A=0;this.reset()},oQ=function(a,b,c){c||(c=0);
var d=Array(16);if(v(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.b[0];c=a.b[1];var e=a.b[2],f=a.b[3],k;k=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[3]+3250441966&4294967295;
c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[10]+4294925233&4294967295;
e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[6]+3225465664&
4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[9]+568446438&
4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[12]+2368359562&
4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(k<<
16&4294967295|k>>>16);k=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[12]+3873151461&4294967295;f=b+(k<<11&4294967295|k>>>21);
k=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+
(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[13]+1309151649&4294967295;c=e+(k<<21&4294967295|k>>>11);
k=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.b[2]=a.b[2]+e&4294967295;a.b[3]=a.b[3]+f&4294967295},Gda=function(){var a=lO(),b=a.length-1,c=mO(a),a=c.g,d=c.b,c=[];
d?(a&&c.push(pQ(b,[d.url,2],0,[a.url,0],a.depth)),c.push(pQ(b,[d.url,2],0))):a&&a.url&&(c.push(pQ(b,void 0,void 0,[a.url,0],a.depth)),(d=jO(a.url))&&c.push(pQ(b,[d,1],a.depth)));c.push(pQ(b));return c},pQ=function(a,b,c,d,e){a=[a];
if(n(b)&&n(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(n(d)&&n(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a},qQ=function(){var a=Gda();
return zi(a,function(a){return tO(a)})},rQ=function(a){return function(b){return!n(b[a])&&n(0)?0:b[a]}},sQ=function(){return function(a){if(!n(a.tth))return"1"}},uQ=function(){var a=[0,
2,4];return function(b){b=b.tos;if(ea(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return n(a)?tQ(c,a):c}}},vQ=function(a,b){return function(c){c=c[a];
if(ea(c))return tQ(c,b)}},tQ=function(a,b){return ge(a,function(a,d){return kb(b,d)})},Hda=function(a){if(!a)return"";
var b=a.document,c=[];c.push("url="+(0,window.encodeURIComponent)(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+(0,window.encodeURIComponent)(b.referrer.substring(0,512)));return c.join("&")},wQ=function(){this.B=this.A=this.g=this.o=!1;
this.b={};this.b.start=this.wy;this.b.firstquartile=this.jy;this.b.midpoint=this.qy;this.b.thirdquartile=this.yy;this.b.complete=this.fy;this.b.pause=this.ty;this.b.resume=this.uy;this.b.skip=this.vy;this.b.viewable_impression=this.Ay;this.b.mute=this.ry;this.b.unmute=this.zy;this.b.fullscreen=this.ky;this.b.exitfullscreen=this.iy;this.b.fully_viewable_audible_half_duration_impression=this.ly;this.b.measurable_impression=this.oy;this.b.abandon=this.ey;this.b.engagedview=this.hy;this.b.impression=
this.my;this.b.creativeview=this.gy},Jda=function(a){if(!a.o){a.o=!0;
try{LO=MO(),1>Math.random()&&(a.B=!0),xQ=Mca(),YP(!1),Cda()?(window.setTimeout(function(){},1),KO.getInstance().g?Ida(a):XP()):yQ=!0}catch(b){throw lQ=[],mQ=[],b;
}}},Ida=function(a){var b;
if(Dq&&ha(X.screenX)&&ha(X.mozInnerScreenX)&&ha(X.outerWidth)){b=X.navigator.userAgent;var c=b.indexOf("Firefox/");if(0<=c){var c=Math.floor(b.substr(c+8))||-1,d=b.indexOf("Mac OS X 10."),e=-1;0<=d&&(e=Number(b.substr(d+12,1))||-1);var f=0<e?-1:b.indexOf("Windows NT "),d=-1;0<=f&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(f+11,3)]||-1);b=148;5<=e?b=4<=c?108:3<=c?127:108:0<=d&&(16==c||17==c||18==c)&&(b=[[146,146,146],[148,147,148],[131,130,136]][d][c-16])}else b=null;null!==b&&(dQ=b,cQ=!0);b=!0}else b=
!1;if(b)XP();else if(b=X&&X.document,b=qf&&xc(8)&&ia(UO(b))?eQ=!0:!1,b)XP();else{if(WO()){if(Dda(X,w(a.zl,a))){XP();a.A=!0;return}}else if(Eda(w(a.zl,a))){XP();a.g=!0;return}window.clearTimeout(iQ);iQ=null;zQ="i";hQ=!0}},AQ=function(a,b){var c=a.G;
c.H=HP(c,MO(),!!a.K);c=!MP();ZP([a],c);a.K=!0;return OP(a,b)},Kda=function(a,b,c){b.Se||(b.Se=!0,"i"!=zQ&&(hQ=!1),!a.g||b.A||b.ra||AP(b,w(a.zl,a)),a.A&&!DP(b)&&CP(b,X),b.F={},b.F.firstquartile=!1,b.F.midpoint=!1,b.F.thirdquartile=!1,b.F.complete=!1,b.F.pause=!1,b.F.skip=!1,b.F.viewable_impression=!1,b.$a=0,a=n(c)?c.opt_nativeTime:void 0,PO=a=ha(a)?a:MO(),b.U=!0,c=!1,MP()||(c=!0,b.G.g=a),ZP([b],c))},BQ=function(a){if(v(a)){var b=eb(lQ,function(b){return b.C==a});
0<=b&&(jda(lQ[b]),pb(lQ,b))}},Lda=function(a,b,c){var d=fb(lQ,function(a){return a.element==c});
null!==d&&d.C!=b&&(BQ(d.C),d=null);d||(d=CQ(a,c),d.C=b,d.I="h");return d},CQ=function(a,b){var c;
c=new IP(X,b,-1,7);c.Yd=w(a.yl,a);KO.getInstance().C=79463069;Fda([c]);XP();return c},Mda=function(a,b){var c=ac(DQ,function(b){return b==a}),c={v:"442v",
e:EQ[c]},d=OP(b,a);kc(c,d);b.Vd[a]=d;return FQ(c,GQ)},FQ=function(a,b,c,d,e){var f={};
if(n(a))for(var k in b){var m=b[k];k in Object.prototype||null!=m&&(ia(m)?f[k]=m(a):f[k]=a[m])}n(c)&&kc(f,c);a=Nda(f);0!=a.length&&n(d)&&n(e)&&(e=e(a),a+="&"+d+"="+e);return a},Pda=function(a,b,c,d){var e=b.toLowerCase();
if(b=ac(DQ,function(a){return a==e})){b={v:"442v",
e:EQ[b]};if(yQ)return b.msg="ue",b;c=a.cp(c,d);b.nas=lQ.length;if(!c)return b.msg="nf",b;Jda(a);"i"==zQ&&(c.Aa=!0,a.Dm(c));rda(c);var f=d.opt_fullscreen;n(f)&&(c.B=!!f);kb(Oda,e)&&(Kda(a,c,d),a.B&&a.kp(c));if(f=a.b[e])if(a=f.call(a,c,d),n(a))return kc(b,a),b}},HQ=function(a,b){var c=a[b];
n(c)&&(a[b]=Math.floor(1E3*c))},Nda=function(a){var b=[];
Pb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(ea(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")},IQ=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1},KQ=function(a){return!!(1<<a&JQ)},Uda=function(){try{Qda()}catch(d){}var a="a=1&b="+JQ+"&",b=[],c=99;
E(Rda,function(a,c){var f=!1;try{f=a(X)}catch(k){}b[c/32>>>0]|=f<<c%32});
E(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;E(Sda,function(b){var e="false";try{e=b(X)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
E(Tda,function(b){var e="";try{var f=b(X),e=lH(hH(f),!0)}catch(k){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)},Qda=function(){if(!LQ){var a=function(){MQ=!0;
X.document.removeEventListener("webdriver-evaluate",a,!0)};
X.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){NQ=!0;X.document.removeEventListener("webdriver-evaluate-response",b,!0)};
X.document.addEventListener("webdriver-evaluate-response",b,!0);LQ=!0}},OQ=function(){wQ.call(this)},Wda=function(a,b,c){var d=fb(lQ,w(function(a){return a.element?PQ(a.element,c)==b&&a.lg==c:!1},a));
null!==d&&d.C!=b&&(BQ(d.C),d=void 0);if(d)return d;d=Vda(c);if(d=fb(d,w(function(a){return PQ(a,c)==b},a)))return d=CQ(a,d),d.I="as",d.C=b,d.lg=c,d},Vda=function(a){var b=X.document,c=Kb(zi(["embed",
"object"],function(a){return tb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=ge(c,function(a){if(!a||!ka(a)||1!=a.nodeType||!ia(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ia(a[d])?!0:!1})},PQ=function(a,b){var c="metricID"+b;
if(!a||!a[c]||!ia(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID},QQ=function(a,b){KO.getInstance();
var c;switch(a.I){case "h":c=q("ima.common.triggerExternalActivityEvent");break;case "a":c=q("ima.common.triggerExternalActivityEvent");break;case "n":c=q("ima.bridge.triggerExternalActivityEvent");break;case "as":var d="triggerExternalActivityEvent"+a.lg;a.element&&ia(a.element[d])&&(c=function(b,c,e){a.element[d](e)});
break;default:return a.M|=4,!1}if(ia(c)){var e=Mda(b,a);try{return c(a.C,e,b),!0}catch(f){a.M|=2}}else a.M|=1;return!1},RQ=function(a){return function(b){var c=new nQ;
c.update(b+a);var d=Array((56>c.A?c.g:2*c.g)-c.A);d[0]=128;for(b=1;b<d.length-8;++b)d[b]=0;var e=8*c.o;for(b=d.length-8;b<d.length;++b)d[b]=e&255,e/=256;c.update(d);d=Array(16);for(b=e=0;4>b;++b)for(var f=0;32>f;f+=8)d[e++]=c.b[b]>>>f&255;return Maa(d).slice(-8)}},Xda=function(a,b,c){a=KO.getInstance();
if(a.B!=b){a.B=b;var d=Ph(lQ,function(a){return a.Re});
E(lQ,function(a){b||d||(a.Sa=c);a.Xd=b;a.Re=!1})}},SQ=function(){var a={};
a.moatInit=Uda();return a},TQ=function(a,b,c){var d={},e=OQ.getInstance(),f={};
kc(f,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});a=f.opt_bounds?{v:"442v",e:a,msg:"ol"}:Pda(e,a,b,f);d.viewability=FQ(a,GQ);b=JQ=(new Date).getTime();c=KQ(5);b=(MQ?!c:c)?b|2:b&-3;c=KQ(2);b=(NQ?!c:c)?b|8:b&-9;b={s1:(b>>>0).toString(16)};d.moatViewability=FQ(a,Yda,b,"h",RQ("kArwaWEsTs"));d.integralAdsViewability=FQ(a,Zda,{},"h",RQ("b96YPMzfnx"));d.doubleVerifyViewability=FQ(a,$da,{},"h",RQ("yb8Wev6QDg"));d.googleViewability=FQ(a,aea,b);return d},UQ=function(){I.call(this);
this.b=null;this.D=new ym(this);G(this,this.D);this.g=new sg;this.B=null;this.H=new sg;this.o=this.C=null;this.A=!1;this.F=(ia(null),null)},WQ=function(){null!=VQ||(VQ=new UQ);
return VQ},YQ=function(a){if(null==a)return!1;
if(BN()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=XQ(a);return 0>=b-a.width&&42>=c-a.height},XQ=function(a){return ia(a.getBoundingClientRect)&&Jf(ff(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,
top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},bea=function(a,b){a.C=b},$Q=function(a,b,c,d,e){if(a.A){if(a.F)return a.F(b,c,e);
e=e||{};if(d=d?a.H.get(d):W.o)null!=e.opt_fullscreen||(e.opt_fullscreen=YQ(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.C&&(e.opt_bounds=XQ(a.C));return zO(AO,"lidar::handlevast_html5",qa(TQ,b,c,e),void 0,ZQ)||{}}return{}},cea=function(){var a=WQ();
if(!a.A)return null;if(null!=a.o)return a.o;a.o=zO(AO,"lidar::getinitsignals_html5",SQ,void 0,ZQ)||null;return a.o},aR=function(a,b){var c=[];
a.g.forEach(qa(function(a,b,c,k){c==b&&a.push(k)},c,b));
E(c,a.g.remove,a.g);a.B==b&&(a.B=null)},bR=function(a){if(ia(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};
b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.b.send("activityMonitor","pageSignals",b)}},dea=function(a,b,c){if(!W.B)return"";
var d=b?a.H.get(b):W.o;a={};null!=c&&(a.fullscreen=c);c="";try{c=Eca(function(){return d},a)}catch(e){c="sdktle;"+Ma(e.name,12)+";"+Ma(e.message,40)}return c},cR=function(a,b,c){if(lb(a))return null;
a=ge(a,function(a){var b=a.o;return"application/x-mpegurl"==A(a.b).toLowerCase()||"progressive"==b});
lb(c)||(c=zi(c,function(a){return a.toLowerCase()}),a=ge(a,function(a){return kb(c,A(a.b).toLowerCase())}));
if(!ha(b)||0>=b)b=yN()?500:1E3;return eea(a,b)},eea=function(a,b){return fea(a,b)||gea(a,b)||hea(a,b)},fea=function(a,b){var c=null;
E(a,function(a){var e=a.pe,f=a.ud;e>b||f<b||!(null==c||c.pe>e)||(c=a)});
return c},gea=function(a,b){var c=null;
E(a,function(a){var e=a.pe,f=a.ud;f>b||(null==c||c.ud<f?c=a:null!=c&&c.ud==f&&c.pe>e&&(c=a))});
return c},hea=function(a,b){var c=null;
E(a,function(a){var e=a.pe,f=a.ud;if(!(e<b))if(null!=c&&c.pe==e&&c.ud<f)c=a;else if(null==c||c.pe>e)c=a});
return c},dR=function(){I.call(this);
this.C=this.G=this.J=this.D=!1;this.g=0;this.o=[];this.F=!1;this.M=this.K=window.Infinity;this.A=0;this.I=!1;this.B=new ym(this);this.H={}},eR=function(a,b){null==b||a.D||(a.b=b,iea(a),a.D=!0)},gR=function(a){null!=a.b&&a.D&&(fR(a),a.D=!1,a.G=!1,a.C=!1,a.g=0,a.o=[],a.F=!1)},iea=function(a){fR(a);
!(a.b instanceof I)&&"ontouchstart"in window.document.documentElement&&CN()?(a.H={touchstart:w(a.ZC,a),touchmove:w(a.YC,a),touchend:w(a.XC,a)},Pb(a.H,function(a,c){this.b.addEventListener(c,a,!1)},a)):a.B.N(a.b,"click",a.tp)},fR=function(a){a.B.qa(a.b,"click",a.tp);
Pb(a.H,function(a,c){this.b.removeEventListener(c,a,!1)},a);
a.H={}},jea=function(a,b){a.o=[];
E(b,function(a){ob(this.o,a.identifier)},a)},hR=function(a,b){return Ph(b,function(a){return kb(this.o,a.identifier)},a)},iR=function(a){null!=a?iN(kea,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=jN(a)?lea(a):null:a=null;
return a},jR=function(a,b,c){if(null==a)return null;
c=new N((null!=c?c:"//www.youtube.com/")+"watch");var d=c.b;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");bh(c,d);return c.toString()},kR=function(a){return null===a?!1:"pharma"==(new N(a)).F().toLowerCase()},lea=function(a){if(z(A(a)))return null;
var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=(new N(a)).b;return rh(a,"v")?a.get("v").toString():rh(a,"video_id")?a.get("video_id").toString():null},mea=function(a){return z(A(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"},lR=function(){I.call(this)},
mR=function(a){I.call(this);
this.b=a;this.P=new um(4);this.A=0;this.M=this.o=this.I=this.F=!1;this.J=this.sd();this.H=this.je();this.U=15E3;this.K=!1},oR=function(a){a.I=!1;
a.o=!1;a.F=!1;a.A=0;a.M=!1;a.P.clear();nR(a);Nb(a.B)},qR=function(a){a.o||(a.o=!0,nR(a),a.V("start"),KN()||!kI||kI&&FN(JN,3)||BN()&&(!CN()||!FN(pR,4))||a.Hl())},rR=function(a){for(var b=a.b.buffered.length-1;0<=b;){if(a.b.buffered.start(b)<=a.b.currentTime)return a.b.buffered.end(b);
b--}return 0},nR=function(a){a.G&&(ae(a.G),a.G=null)},tR=function(){I.call(this);
this.g=new sR;this.b=new ym(this);var a=UM();if(a){a:{if($b(a.b,"videoElementMockDuration")&&(a=a.b.videoElementMockDuration,ha(a)))break a;a=window.NaN}this.duration=a}},nea=function(){var a=["video/mp4"],b=["video/ogg"],c=new tR;
c.canPlayType=function(c){return kb(a,c)?"probably":kb(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c},oea=function(a){this.startTime=0;
this.endTime=a},sR=function(){this.length=0;
this.b=[]},uR=function(){throw Error("Do not instantiate directly");
},vR=function(){uR.call(this)},wR=function(){uR.call(this)},xR=function(a,b){var c;
a:{var d=a(b||pea,void 0,void 0);c=hf().createElement("DIV");d=qea(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c},qea=function(a){if(!ka(a))return String(a);
if(a instanceof uR){if(a.md===yR)return a.Wb();if(a.md===zR)return Ha(a.Wb())}return"zSoyz"},AR=function(a,b){return null!=a&&a.md===b},BR=function(a){if(null!=a)switch(a.Fd){case 1:return 1;
case -1:return-1;case 0:return 0}return null},CR=function(){uR.call(this)},Y=function(a){return null!=a&&a.md===yR?a:a instanceof Ke?DR(Le(a),a.Kf()):DR(Ha(String(String(a))),BR(a))},ER=function(){uR.call(this)},FR=function(){uR.call(this)},GR=function(){uR.call(this)},HR=function(){uR.call(this)},IR=function(){uR.call(this)},JR=function(a,b){this.content=String(a);
this.Fd=null!=b?b:null},KR=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}},NR=function(a,b,c){var d="key_"+a+":"+b,e=LR[d];
if(void 0===e||0>e)LR[d]=0,MR[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');},OR=function(a,b){var c=MR["key_"+a+":"+b];
c||""==b||(c=MR["key_"+a+":"]);return c?c:rea;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');},rea=function(){return""},SR=function(a){return AR(a,yR)?String(String(a.Wb()).replace(PR,"").replace(QR,"&lt;")).replace(sea,RR):Ha(String(a))},TR=function(a){return AR(a,yR)?String(String(a.Wb()).replace(PR,"").replace(QR,"&lt;")).replace(tea,RR):String(a).replace(uea,RR)},vea=function(a){return"%"+a.charCodeAt(0).toString(16)},VR=function(a){a=
xa(String(a));
UR.lastIndex=0;return UR.test(a)?a.replace(UR,vea):a},aS=function(a){if(AR(a,WR)||AR(a,XR))return YR(a);
a instanceof Ae?a=YR(Be(a)):a instanceof Ge?a=YR(He(a)):(a=String(a),a=wea.test(a)?a.replace(ZR,$R):"#zSoyz");return a},bS=function(a){if(AR(a,WR)||AR(a,XR))return YR(a);
a instanceof Ae?a=YR(Be(a)):a instanceof Ge?a=YR(He(a)):(a=String(a),a=xea.test(a)?a.replace(ZR,$R):"about:invalid#zSoyz");return a},dS=function(a){var b=cS[1]||(cS[1]=new BA(1)),c=BR(a);
null==c&&(c=qe(a+"",AR(a,yR)));return yea(c!=b.b?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")},RR=function(a){return zea[a]},$R=function(a){return Aea[a]},YR=function(a){return String(a).replace(ZR,$R)},Bea=function(a,b,c){return""+OR("a",a.yi)(a,null,c)},Cea=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(dS(a.jd))+">"+Y(a.jd)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'},
Dea=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(dS(a.jd))+">"+Y(a.jd)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Y(a.eg)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'},Eea=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'},
eS=function(a){return""+OR("b",a.yi)(a,null,void 0)},Fea=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction">'+Y(a.kE)+'<div class="videoAdUiSkipIcon"></div></button></div>'},fS=function(){return"T\u00ecm hi\u1ec3u th\u00eam "+Y("")},gS=function(a){var b="";
a=2<=a.Ah&&1<=a.Kg?"Qu\u1ea3ng c\u00e1o "+(Y(a.Kg)+(" trong t\u1ed5ng s\u1ed1 "+(Y(a.Ah)+(" "+Y(a.zh))))):"Qu\u1ea3ng c\u00e1o c\u00f2n "+Y(a.zh);return b+=a},iS=function(){var a=hS(),b=DR("</a>"),a="Truy c\u1eadp "+(Y(a)+("C\u00e0i \u0111\u1eb7t qu\u1ea3ng c\u00e1o"+(Y(b)+" c\u1ee7a Google \u0111\u1ec3 t\u00ecm hi\u1ec3u th\u00eam v\u1ec1 c\u00e1ch qu\u1ea3ng c\u00e1o \u0111\u01b0\u1ee3c nh\u1eafm m\u1ee5c ti\u00eau ho\u1eb7c \u0111\u1ec3 ch\u1ecdn kh\u00f4ng tham gia qu\u1ea3ng c\u00e1o \u0111\u01b0\u1ee3c c\u00e1 nh\u00e2n h\u00f3a.")));
return DR(""+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))},hS=function(){return DR('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')},jS=function(a){return DR("<div class='videoAdUiPopupBackground'><div class='videoAdUiPopupCloseIcon'><svg height=\"100%\" viewBox=\"0 0 24 24\" width=\"100%\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" fill=\"#fff\"></path></svg></div><div class='videoAdUiPopupPositioner'><form class='videoAdUiPopupFrame'><div class='videoAdUiPopupHeading videoAdUiHideIfEmpty'>"+
Y(a.heading)+"</div><div class='videoAdUiPopupText'>"+Y(a.message)+"</div><div class='videoAdUiPopupButtons'>"+Y(a.buttons)+"</div></form></div></div>")},Gea=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+Y(c[e])+"</li>";
b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Y(a.Wk)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Y(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Y(a.control)+"</a>";a=""+jS({heading:kS(""+Y(a.heading)),message:kS(b),buttons:kS("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+Y(a.close)+"</button>")});return DR(a)},Hea=function(a){for(var b=""+Y(a.question),
c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+SR(e)+"'><input type='radio' id='videoAdUiMuteOption"+SR(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+SR(e)+"' />"+Y(f)+"</label>");
a=""+jS({heading:kS(Y(a.heading)+" <a class='videoAdUiMuteUndo'>"+Y(a.undo)+"</a>"),message:kS(b),buttons:kS("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")});return DR(a)},Iea=function(a){var b=String(""+a.heading);
return DR(jS({heading:b?new JR(b,void 0):"",message:kS(""+Y(a.message)),buttons:kS("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))},Jea=function(){return DR('<div class=\'videoAdUiMuteToggleButton\'><div class=\'videoAdUiMutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9.6314915,5.9285684 L10.6837982,4.9386188 L12.8157457,6.9442323 L14.9476933,4.9386188 L16,5.9285684 L13.8680525,7.9341818 L16,9.9397952 L14.9476933,10.9297447 L12.8157457,8.9241313 L10.6837982,10.9297447 L9.6314915,9.9397952 L11.7634391,7.9341818 L9.6314915,5.9285684 Z" fill="#fff"></path></svg></div><div class=\'videoAdUiUnmutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9,11.4457379 C10.7427023,10.9390412 12,9.5931906 12,7.9969959 C12,6.4008011 10.7427023,5.0549506 9,4.5492552 L9,11.4457379 Z" fill="#fff"></path><path d="M14.2494529,8 C14.2494529,11.0361747 12.0131291,13.5866817 9,14.3156841 L9,16 C12.9934354,15.2419577 16,11.9484291 16,8 C16,4.0505695 12.9934354,0.7570409 9,0 L9,1.6833146 C12.0131291,2.4123169 14.2494529,4.9638253 14.2494529,8 L14.2494529,8 Z" fill="#fff"></path></svg></div></div>')},
mS=function(a,b,c){if(null==a||!Jf(ff(a),a))throw uN(lS,null,"containerElement","element");
this.B=a;this.g=this.b=null;this.o=b;this.C=c||!1;this.A=null;this.b=M("div",{style:"display:none;"});a=UM();VM(a,"useVideoElementMock")?(a=nea(),b=M("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),ta(b,a),a.Mg=M("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.uj=M("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),a.Mg.appendChild(a.uj),b.appendChild(a.Mg),a.b.N(a,["loadeddata","playing",
"pause","ended"],a.mD),a=b):a=M("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:"Qu\u1ea3ng c\u00e1o"});a.setAttribute("webkit-playsinline",!0);this.g=a;this.B.appendChild(this.b);this.b.appendChild(this.g);this.o&&(a=M("div",{id:this.o,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.b.appendChild(a));this.C&&(this.A=M("div",{style:"position:absolute;width:100%;height:100%;"}),this.b.appendChild(this.A))},pS=function(a){I.call(this);
this.K="ima-chromeless-video";var b=null;null!=a&&(v(a)?this.K=a:b=a);this.M=new ym(this);this.C=null;this.o=!1;this.ca=this.sd();this.Z=this.je();this.H=-1;this.ba=!1;this.D=-1;this.A=this.X=this.I=null;this.U="";this.g=!1;this.aa=null!=b;this.ga=this.J=this.Y=this.b=null;this.B=void 0;this.G=this.ea=null;this.F=this.ia=0;this.aa?(this.g=!0,this.b=b,this.B=2):(a=w(this.Xw,this),nS?a():(oS.push(a),a=window.document.createElement("script"),a.src="https://www.youtube.com/iframe_api",b=window.document.getElementsByTagName("script")[0],
b.parentNode.insertBefore(a,b)))},qS=function(a,b,c){var d={autoplay:"1"};
if(null!=a.A){var e=a.A.C;null!=e&&(d.agcid=e);e=a.A.o;null!=e&&(d.adformat=e);e=a.A.B;null!=e&&(d.ad_query_id=e);(e=a.A.D)&&(d.cta_conversion_urls=e);a.A.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.A.H?1:3;a.A.F&&(d.noiba=1);a.A.J&&(d.utpsa=1);a.A.I&&(d.autoplay="1");a.A.A&&kc(d,a.A.A)}e=iR(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;!W.b()&&eN(cN(),41351017)&&(d.enabled_engage_types="3,4,5");
a.o=!1;a.A&&a.A.g?(a.ea=d,a.b.preloadVideoByPlayerVars(a.ea)):a.b.cueVideoByPlayerVars(d);a.V("loaded")},rS=function(a){a.M.qa(a.C,"tick",a.zq);
null!=a.C&&(a.C.stop(),a.C=null)},sS=function(a){null!=a.ka&&ae(a.ka)},tS=function(a){I.call(this);
this.sessionId=a||Xa();this.g=[]},uS=function(a,b,c,d,e){mc.call(this,a);
this.Gc=b;this.Md=c;this.sp=d;this.A=e},vS=function(a,b){tS.call(this,b);
this.A=a;this.$c=null;this.o=new ym(this);this.logger=null;this.o.N(sf(),"message",this.receive)},wS=function(a){if(null==a||!v(a)||!va(a,"ima://"))return null;
a=a.substr(6);try{return Vf(a)}catch(b){return null}},Kea=function(a,b,c,d){var e={};
e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.sessionId;e.channel=a.A;return"ima://"+Zf(e)},xS=function(a,b){if(null==b)return!1;
var c=b.channel;if(null==c||c!=a.A)return!1;c=b.sid;return null==c||"*"!=a.sessionId&&c!=a.sessionId?!1:!0},yS=function(a,b){I.call(this);
this.o=a;this.A=b;this.b={};this.g=new ym(this);this.g.N(sf(),"message",this.B)},AS=function(a,b,c,d){a.b.hasOwnProperty(b)||(c=new vS(b,c),a.g.N(c,a.o,function(a){a=new zS(a.type,a.Gc,a.Md,a.sp,a.getOrigin(),b);
this.V(a)}),c.$c=d,c.connect(),a.b[b]=c)},zS=function(a,b,c,d,e,f){uS.call(this,a,b,c,d,e);
this.b=f},CS=function(){var a=q("google.ima.gptProxyInstance",sf());
if(null!=a)return a;ym.call(this);this.A=new yS("gpt",!0);G(this,this.A);this.N(this.A,"gpt",this.C);this.b=null;BS()||sf().top===sf()||(this.b=new yS("gpt",!1),G(this,this.b),this.N(this.b,"gpt",this.B))},BS=function(){return!!q("googletag.cmd",sf())},DS=function(){var a=q("googletag.console",sf());
return null!=a?a:null},ES=function(a,b,c,d,e,f,k,m,l,p,t,u,x){this.o=a;
this.B=p;this.C=b;this.D=d;this.F=m;this.G=u;this.H=e;this.J=f;this.I=x;this.b=k;this.g=l;this.A=t},Lea=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();
if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,m,l,p,t,u){if("%"==p)return"%";var x=c.shift();if("undefined"==typeof x)throw Error("[goog.string.format] Not enough arguments");arguments[0]=x;return FS[p].apply(null,arguments)})},HS=function(a,b){I.call(this);
this.o=new ym(this);this.F=!1;this.G=Xa();this.C=new sg;var c=this.G,d=(eN(cN(),41351079)?Gca()?"https:":"http:":"https:"==window.document.location.protocol?"https:":"http:")+Lea("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en"),e;a:{var f=window;try{do{try{if(0==f.location.href.indexOf(d)||0==f.document.referrer.indexOf(d)){e=!0;break a}}catch(k){}f=f.parent}while(f!=f.top)}catch(k){}e=!1}e&&(d+="?f="+c);c=M("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});
Em(this.o,c,"load",this.wx);a.appendChild(c);this.g=c;c=this.C.get("*");null==c&&(c=new vS(this.G,"*"),this.F&&(c.$c=Kf(this.g),c.connect()),this.C.set("*",c));this.B=c;this.D=b;this.b=this.D.C;this.A=null;this.o.N(this.B,"mouse",this.Nx);this.o.N(this.B,"touch",this.cy);null!=this.b&&(this.o.N(this.B,"displayContainer",this.Kx),this.o.N(this.B,"videoDisplay",this.Zx),this.o.N(this.b,Xb(Mea),this.or),this.o.N(this.b,GS,this.or));c=sf();d=q("google.ima.gptProxyInstance",c);null==d&&(d=new CS,ba("google.ima.gptProxyInstance",
d,c))},IS=function(a,b){var c=Qq(a.g),d=zi(b,function(a){return window.document.createTouch(window,this.g,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);
return window.document.createTouchList.apply(window.document,d)},JS=function(a,b,c,d,e){if(!(e||null!=a&&Jf(ff(a),a)))throw uN(lS,null,"containerElement","element");
this.G=!1;this.A=a;var f=e=null!=b||null!=d,k=!1;W.g||(W.g||CN()||kI&&(!kI||!FN(JN,4))||IN())&&e||(zN()||IN()||(k=!0),f=!1);this.B=f;this.F=k||f&&null!=d;W.g?a=null:(e=M("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.g=a;this.b=this.B||!this.g||W.g||!zN()?null:new mS(this.g,null,!0);a=null;this.B?b?a=new mR(b):d&&(a=new pS(d)):this.b&&(a=new mR(this.b.g));this.o=(this.C=a)?c||null:null;this.H=null!=this.o;RN.getInstance().b(8,{enabled:this.B,yt:null!=d,customClick:null!=
this.o});null===this.g?(b=this.A,W.o=b):this.B&&b&&!ia(b.getBoundingClientRect)&&(b=this.A,W.o=b);this.D=null==this.g||W.g?null:new HS(this.g,this)},KS=function(a){return a.H&&a.o?a.o:null!=a.b?a.b.A:null},MS=function(a,b){var c=[],d="",e="";
if(null!=b){for(var d=b,e=[],f=0;d&&25>f;++f){var k;a:{if(d&&d.nodeName&&d.parentElement){k=d.nodeName.toString().toLowerCase();for(var m=d.parentElement.childNodes,l=0,p=0;p<m.length;++p){var t=m[p];if(t.nodeName&&t.nodeName.toString().toLowerCase()===k){if(d===t){k="."+l;break a}++l}}}k=""}e.push((d.nodeName&&d.nodeName.toString().toLowerCase())+""+k);d=d.parentElement}d=e.join();if(b){e=(e=b.ownerDocument)&&(e.defaultView||e.parentWindow)||null;f=[];if(e)try{var u=e.parent;for(k=0;u&&u!==e&&25>
k;++k){for(var x=u.frames,m=0;m<x.length;++m)if(e===x[m]){f.push(m);break}e=u;u=e.parent}}catch(B){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(u=0;u<LS.length-1;++u)c.push(Ug(a,LS[u])||"");u=Ug(a,"videoad_start_delay");x="";u&&(u=(0,window.parseInt)(u,10),x=0>u?"postroll":0==u?"preroll":"midroll");c.push(x)}else for(u=0;u<LS.length;++u)c.push("");c=c.join(":");u=c.length;if(0==u)c=0;else{x=305419896;for(d=0;d<u;d++)x^=(x<<5)+(x>>2)+c.charCodeAt(d)&4294967295;c=0<x?x:4294967296+x}return c.toString()},
NS=function(){I.call(this);
this.currentTime=0},OS=function(a){NS.call(this);
this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw uN(lS,null,"content","currentTime");this.g=a;this.b=new Yd(250);this.A=new ym(this);Am(this.A,this.b,"tick",this.o,this)},QS=function(a,b){I.call(this);
this.b=a;this.C=!!b;this.o=PS(this);if(!this.o){var c=qf&&!xc("7")?"readystatechange":"load";this.g=Qc(this.b,c,this.B,!1,this);this.A=window.setInterval(w(this.B,this),100)}},RS=function(a){a.A&&(window.clearInterval(a.A),a.A=null)},PS=function(a){var b=!1;
try{if(a.C||!qf||xc("11"))var c=a.b,d=(c.contentDocument||c.contentWindow.document).body,b=a.C?!!d&&!!d.firstChild:!!d;else b="complete"==a.b.readyState}catch(e){}return b},SS=function(){I.call(this);
this.o=!1;this.impressionUrls=[]},TS=function(a,b,c){mc.call(this,a);
this.A=b||null;this.b=c||null},US=function(a,b){this.F=a;
this.D=zi(b,function(a){return a.clone()});
this.C="";this.g=null;this.A=this.B=0;this.o=!0;this.b=[]},VS=function(a,b,c,d,e){a.C="<div></div>";
a.g=b;a.B=c;a.A=d;a.o=!1;a.b=e||[]},WS=function(a){a.C="";
a.g=null;a.B=0;a.A=0;a.o=!0;a.b=[]},XS=function(){SS.call(this);
this.F=[];this.C=!1;this.A="not_loaded";this.g=null;this.B=0;this.b=null;this.G=new ef},YS=function(a){var b=["googletag",
"googletag.cmd"];return fb(a,function(a){return Bg(b,function(b){return null!==q(b,a)})})||null},ZS=function(a){return a.o?zi(a.F,function(a){return a.clone()}):[]},Nea=function(a){a=ZS(a);
return null!=a?zi(a,function(a){return a.D}):void 0},aT=function(a,b,c){var d=0,e=0;
null!=b&&(b=new N(b.b),d=Number(b.b.get("pod")||0),e=Number(b.b.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession($S.b,d,e,c)}catch(f){}},Oea=function(a,b){var c=bT(a);
if(null!==c){aT(c,b,!0);try{c.refreshAllSlots()}catch(d){}}},dT=function(a,b,c){a=cT(a);
if(null!=a)try{a.setVideoContent(b,c)}catch(d){}},eT=function(a,b){a.D=b;
dT(a,"","");var c=bT(a);null===c||aT(c,null,!1)},bT=function(a){null==a.b&&fT(a);
return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null},cT=function(a){null==a.b&&fT(a);
return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null},gT=function(a){a.g&&(a.g.stop(),a.g.qa("tick",a.Pq,!1,a),a.g.dispose(),a.g=null)},kT=function(a){if("retrieved"!=a.A&&"not_available"!=a.A&&null!==bT(a)){var b;
var c=bT(a);if(null!==c&&null!=c.getDisplayAdsCorrelator)try{b=c.getDisplayAdsCorrelator()}catch(f){b=null}else b=null;switch(b){case "not_loaded":case "not_available":a.A=b;break;default:b=Number(b),(0,window.isNaN)(b)?a.A="not_available":(a.D=b,a.A="retrieved")}}(b=hT(a))||(b=iT(a)&&"not_available"==a.A);if(b){if(!a.H&&iT(a)){var d;try{if(null==a.b)d=[];else{var e=a.b.googleGetCompanionAdSlots();d=zi(e,a.$D,a)}}catch(f){d=[]}a.F=d;a.H=!0}a.o=!0;gT(a);hT(a)?a.V(new TS("companions_success")):jT(a)}else a.g||
(a.B=D()+5E3,a.g=new Yd(100),a.g.N("tick",a.Pq,!1,a),a.g.start())},hT=function(a){return iT(a)&&"retrieved"==a.A},iT=function(a){a.C||(fT(a),a.C=null!=a.b&&null!=a.b.googleGetCompanionAdSlots);
return a.C},fT=function(a){var b=Uf(a.G);
try{a.b=YS([b,b.top])}catch(c){a.b=null}},jT=function(a){a.V(new TS("companion_initialization_failed",Error("Partial or full service initialization failure.")))},Pea=function(a,b,c){var d=new QS(b,!0);
d.o?lT(a,c,b):$c(d,"ifload",qa(function(a){lT(this,c,a)},b),!1,a)},lT=function(a,b,c){a.V(new TS("companion_slot_init",null,b));
var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Qc(d,"click",w(a.HA,a,b),!1,a)},mT=function(a,b){mc.call(this,a);
this.b=b},nT=function(a){mc.call(this,a)},oT=function(){},qT=function(a,b){if(null==a||0>=a.width||0>=a.height)throw uN(lS,null,"ad slot size",a.toString());
this.g=a;this.b=null!=b?b:new oT;this.B=pT(Qea,this.b.A)?this.b.A:"All";this.o=pT(Rea,this.b.creativeType)?this.b.creativeType:"All";this.D=pT(Sea,this.b.o)?this.b.o:"SelectExactMatch";this.F=pT(Tea,this.b.g)?this.b.g:"DisallowResize";this.A=null!=this.b.B?this.b.B:[];this.C=ha(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90},tT=function(a,b){var c=[];
E(b,function(a){!z(A(a.b.o))&&((0,window.isNaN)(a.b.b)||(0,window.isNaN)(rT(a))||rT(a)==a.b.b)&&sT(this,a)?c.push(a):(a=Uea(this,a),null!=a&&!z(A(a.b.o))&&c.push(a))},a);
return c},sT=function(a,b){var c;
if(c="Flash"!=b.nc()||uT){if(c="All"==a.B||a.B==b.b.J)c=b.nc(),c=null!=c?"All"==a.o||a.o==c:!0;c&&(c=b.A,c=lb(a.A)?!0:null!=c?0<=jb(a.A,c):!1)}if(c){var d=b.b.sc();if("IgnoreSize"==a.D||cf(a.g,d))c=!0;else if(c="SelectNearMatch"==a.D)"ResizeSmaller"==a.F&&(d=d.width<=a.g.width&&d.height<=a.g.height?d:vT(d,a.g)),c=d.width,d=d.height,c=c>a.g.width||d>a.g.height||c<a.C/100*a.g.width||d<a.C/100*a.g.height?!1:!0}else c=!1;return c},Uea=function(a,b){var c=b.g;
return null!=c?fb(c,function(a){return sT(this,a)},a):null},vT=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);
return new bf(c*a.width,c*a.height)},pT=function(a,b){return null!=b&&Vb(a,b)},wT=function(a){a=0>a?0:Math.round(a);
return 3600<=a?""+Math.floor(a/3600)+":"+("0"+Math.floor(a/60)%60).slice(-2)+":"+("0"+a%60).slice(-2):""+Math.floor(a/60)%60+":"+("0"+a%60).slice(-2)},Vea=function(a){var b={};
E(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Sa(d[0]),d=Sa(d[1]),0<a.length&&(b[a]=d))});
return b},yT=function(a,b){if(a[b])return xT(a[b]);
var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return xT(a[d]);return!1},xT=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1},zT=function(a){N.call(this,a);
this.C=new sg;a=this.A;var b=a.indexOf(";"),c=null;0<=b?(ah(this,a.substring(0,b)),c=a.substring(b+1)):ah(this,a);Wea(this,c)},Wea=function(a,b){z(A(b))||E(b.split(";"),function(a){var b=a.indexOf("=");
if(0<b){var e=ya(a.substring(0,b));a=ya(a.substring(b+1));b=this.C.get(e);null!=b?kb(b,a)||b.push(a):b=[A(a)];this.C.set(e,b)}},a)},Xea=function(a){if(z(A("ord")))return null;
a=a.C.get("ord");return null!=a?a:null},AT=function(a,b,c){z(A(b))||(c=zi(c,A),a.C.set(b,c))},BT=function(a,b){var c=[A(b)];
ub(c,Yea(a));return c.join(";")},Yea=function(a){var b=Xea(a);
null!=b?z(A("ord"))||a.C.remove("ord"):b=[A(D())];var c=[];E(a.C.La(),function(a){E(this.C.get(a),function(b){ub(c,a+"="+b)})},a);
ub(c,"ord="+b[0]);AT(a,"ord",b);return c},DT=function(a){if(null==a)return!1;
a=new N(a);var b=a.A;return wa(a.g,"googleads.g.doubleclick.net")&&CT("/pagead/(live/)?ads",b)},ET=function(a){a=a.b;
return null!=a?"bid.g.doubleclick.net"==(new N(a)).g:!1},FT=function(a){if(null==a)return!1;
var b=new zT(a);a=b.g;b=BT(b,b.A);return!wa(a,".g.doubleclick.net")&&wa(a,"doubleclick.net")&&CT("/(ad|pfad)[x|i|j]?/",b)},GT=function(a){if(null==a)return!1;
a=new N(a);var b=a.A;return wa(a.g,"doubleclick.net")&&CT("/gampad/(live/)?ads",b)},Zea=function(a){return DT(a.b)||FT(a.b)||GT(a.b)||ET(a)},$ea=function(a){a=a.b;
if(null==a)return null;a=(new N(a)).b;return null!=a.get("ms")?A(a.get("ms")):null},CT=function(a,b){return z(A(b))?!1:(new RegExp(a)).test(b)},HT=function(a){return tN(afa,null,a.parentNode.nodeName,a.nodeName)},IT=function(a){return tN(bfa,null,a.parentNode.nodeName,a.nodeName)},JT=function(a,b){return null!=a?ge(Ef(a),function(a){return a.nodeName==b}):[]},KT=function(a,b){var c=a.getAttribute(b);
return null!=c?c.toLowerCase():null},LT=function(a,b){if(null==a)return null;
var c="";E(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});
c=Sa(c);return b?Ka(c):c},MT=function(a,b,c,d){null!=a&&E(Ef(a),function(a){if(a.nodeName==b)c.call(d,a);
else throw HT(a);})},NT=function(a){return z(A(a))?window.NaN:Ya(A(a))},OT=function(a,b){if(null!=a){var c=a.split(":");
if(3==c.length)return c=new xz(0,0,0,Ya(c[0]),Ya(c[1]),Ya(c[2])),60*(60*(24*c.b+c.g)+c.A)+c.o}return null!=b?b:-1},PT=function(a,b){if(!z(A(a)))switch(a.toLowerCase()){case "true":case "1":return!0;
case "false":case "0":return!1}return null!=b?b:!1},ST=function(a,b){if(b)return a;
var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?QT(a)?0:2:-1!=a.indexOf("/pcs/view")?cfa(a)?0:2:-1!=a.indexOf("/pagead/conversion")?QT(a)?1:2:2:2;0==c||1==c?(c=RT(a,"&sdkv="+QN($S)),$S.U&&(c=RT(c,"&ssss=gima"))):c=a;return c},RT=function(a,b){var c=a.indexOf("&adurl=");
return-1!=c?Qa(a.substr(0,c),b,a.substr(c,a.length)):a+b},QT=function(a){return Bg(dfa,function(b){return Tg(a||"",b)})},cfa=function(a){return Bg(efa,function(b){return Tg(a||"",b)})},TT=function(a,b){this.b=a;
this.g=b},UT=function(a){return a.g?-1:a.b},VT=function(a,b){a.g&&(a.g=!1,a.b=a.b*b/100)},WT=function(){this.b=new sg},XT=function(a,b){this.A=a;
this.b=b},ZT=function(a,b){XT.call(this,"progress",a);
this.g=b},aU=function(a,b){E(b,function(a){var b=a.Kb().toLowerCase(),e=$T(this,b);
e.push(a);this.b.set(b,e)},a)},bU=function(a,b,c,d){b=b.toLowerCase();
var e=$T(a,b);null!=d?(d=new ZT(c,d),null!=d?e.push(d):e.push(new XT(b,c))):e.push(new XT(b,c));a.b.set(b,e)},$T=function(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]},ffa=function(a,b){var c=$T(a,"progress");
E(c,function(a){VT(a.g,b)});
Cb(c,function(a,b){return UT(a.g)-UT(b.g)})},cU=function(a,b){return zi($T(a,b)||[],function(a){return a.b})},fU=function(a,b,c){var d=new WT;
MT(a,"Tracking",function(a){var f=KT(a,"event"),k=ST(LT(a),b);dU(k)&&null!=f&&(null!=c&&(k=c(f,k)),"progress"==f?(a=KT(a,"offset"),a=eU(a),null!=a&&bU(d,f,k,a)):bU(d,f,k))});
return d},gfa=function(a){if(z(A(a)))return null;
a=new N(a);if("thismessage"!=a.o||"extensions"!=a.g)return null;a=a.A;if(!va(a,"/"))return null;a=a.substr(1);return z(A(a))?null:a},eU=function(a){if(z(A(a)))return null;
var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!(0,window.isNaN)(a)&&0<=a&&(b=new TT(a,!0))):(a=OT(a),0<=a&&(b=new TT(a,!1)));return b},dU=function(a){var b=!0;
if(z(A(a)))b=!1;else try{new N(a)}catch(c){b=!1}return b},gU=function(a,b){this.b=null!=a?a:new WT;
this.H=null!=b?b:[]},hfa=function(a,b){var c=b.b;
E(c.La(),function(a){aU(this.b,c.get(a))},a)},hU=function(a,b){var c=cU(a.b,b);
return null!=c?c:[]},iU=function(a,b){gU.call(this);
this.g=a;this.A=b},jU=function(){},kU=function(a,b){gU.call(this,b);
this.g=a},lU=function(a){gU.call(this);
this.g=a},mU=function(a){gU.call(this);
this.g=(0,window.isNaN)(a)?-1:a},nU=function(){this.X=-1;
this.D={};this.Sa="";this.Zf=new WT},oU=function(a,b,c){a.Sa=b;
a.D=c},pU=function(a,b){var c=[],d=a.Di();
E(d,function(a){a=$T(a.Zf,b)||[];c=sb(a,c)},a);
return c},qU=function(a,b,c){var d=c||!1;
return fb(b.B,function(a){var b=a.b==this.b;return a instanceof this.constructor&&(d||b)},a)},sU=function(a,b,c,d,e){nU.call(this);
z(A(a))&&(a=Xa()+"_ima");this.oa=A(a);this.za=b;this.J=c;this.Y=d;this.o=e;this.I=[];null!=this.Y?this.ia=rU[this.Y]||"Other":this.ia=null},ifa=function(){this.g=this.A=1;
this.b=this.o=0;this.B=1},tU=function(a,b,c,d){this.b=a;
this.g=b;this.A=c;this.o=null!=d?d:!1},rT=function(a){a=a.b.Wa().b;
return null!=a?a.b:window.NaN},uU=function(a,b){a.b.H=b;
E(a.g,function(a){uU(a,b)},a)},vU=function(a){return DR('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><div class="iv-endcap-image"><img src="'+SR(bS(a.image))+'"></div><div class="iv-endcap-headline" dir='+TR(a.dir)+">"+Y(a.headline)+'</div><div class="iv-endcap-description" dir='+TR(a.dir)+">"+Y(a.description)+'</div><a class="iv-endcap-action" href="'+SR(aS(a.target))+'" target="_blank" dir='+TR(a.dir)+">"+Y(a.action)+'</a></div></div><div class="iv-endcap-bottom"><svg class="iv-endcap-countdown" viewBox="0 0 20 20"><circle class="iv-endcap-countdown-inner" r="5" cx="10" cy="10" /><circle class="iv-endcap-countdown-outer" r="10" cx="10" cy="10" /></svg></div></div>')},
jfa=function(a,b,c){c=c||{};
var d;d='<div class="iv-cards-companion"><div class="iv-cards-attribution"><span class="yt-badge yt-badge-ad">Qu\u1ea3ng c\u00e1o</span>';a.Jn&&a.Ab&&(b="Mua s\u1ea3n ph\u1ea9m t\u1eeb "+Y(a.Jn),d+='<a href="'+SR(aS(a.Ab))+'" target="_blank">'+b+"</a>");d+='<div class="yt-uix-hovercard ad-info-container"><span class="yt-uix-hovercard-target" data-position="topright" data-orientation="horizontal"><span class="ad-info-icon"></span></span><div class="yt-uix-hovercard-content"><p>'+Y(a.Bd)+'</p></div></div></div><div class="iv-cards-slider"><div class="iv-cards-slider-body"><ul class="iv-cards-slider-list">';
b=a.cards;for(var e=b.length,f=0;f<e;f++){var k;k=b[f];k=DR('<div class="iv-cards-slider-unit"><a href="'+SR(aS(k.target))+'" target="_blank"><div class="iv-cards-slider-image"><span class="iv-cards-image-helper"></span><img src="'+SR(bS(k.image))+'"></div><div class="yt-ui-ellipsis yt-ui-ellipsis-4 iv-cards-slider-text">'+Y(k.headline)+'</div><span class="iv-cards-slider-action">'+Y(k.action)+"</span></a></div>");d+='<li class="iv-cards-slider-item">'+k+"</li>"}d+="</ul></div>"+(a.Gy?'<button class="iv-cards-slider-button iv-cards-slider-prev" type="button" onclick="'+
(c.Ok?"/*"+c.Ok+"*/":"")+';return false;"><span class="iv-cards-slider-prev-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+SR(a.Qn)+'" title="'+SR(a.Qn)+'" /></button><button class="iv-cards-slider-button iv-cards-slider-next" type="button" onclick="'+(c.Ok?"/*"+c.Ok+"*/":"")+';return false;"><span class="iv-cards-slider-next-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+SR(a.Mn)+'" title="'+SR(a.Mn)+'"></span></button>':"")+"</div></div>";return DR(d)},wU=function(a,b,c){F.call(this);
this.g=a;this.A=b;this.C=c;this.B=0;this.b=new ym(this);kfa(this)},kfa=function(a){a.C.forEach(function(a,c){this.b.N(c,"mousedown",this.D);
this.b.N(c,"mouseup",this.G)},a);
a.b.N(a.A,"mouseover",a.F)},xU=function(a,b,c,d){if(d)c=a+("&"+b+"="+c);
else{var e="&"+b+"=",f=a.indexOf(e);0>f?c=a+e+c:(f+=e.length,e=a.indexOf("&",f),c=0<=e?a.substring(0,f)+c+a.substring(e):a.substring(0,f)+c)}return 2E3<c.length?n(void 0)?xU(a,b,void 0,d):a:c},yU=function(a,b){a[b]||(a[b]=[]);
return a[b]},zU=function(a,b){return a[b]?a[b].length:0},AU=function(a,b){if(null==a||null==b)return null==a==(null==b);
if(a.constructor!=Array&&a.constructor!=Object)throw Error("Invalid object type passed into JsProto.areObjectsEqual()");if(a===b)return!0;if(a.constructor!=b.constructor)return!1;for(var c in a)if(!(c in b&&lfa(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0},lfa=function(a,b){if(a===b||!(!0!==a&&1!==a||!0!==b&&1!==b)||!(!1!==a&&0!==a||!1!==b&&0!==b))return!0;
if(a instanceof Object&&b instanceof Object){if(!AU(a,b))return!1}else return!1;return!0},BU=function(a,b,c){this.type=a;
this.label=b;this.Ea=c},CU=function(a,b){return new BU(a,1,b)},DU=function(a){new BU(a,2,void 0)},EU=function(a,b){return new BU(a,3,b)},FU=function(a){return CU("m",a)},GU=function(a){return EU("m",a)},IU=function(){var a=window.event||HU;
if(!a)return null;var b;(b=a.which?1<<mfa[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b},JU=function(a,b,c){F.call(this);
this.g=a;this.B=b;this.H=c;this.o=0;this.b={};this.A=new ym(this);G(this,this.A);nfa(this)},nfa=function(a){E(a.H,function(a){this.A.N(a.element,"mousedown",this.D,!0);
this.A.N(a.element,"mouseup",qa(this.G,a),!0)},a);
a.A.N(a.B,"mouseenter",a.F)},ofa=function(a,b){Pb(a.b,function(a,d){b=Xg(b,d,a)});
return b},KU=function(a,b,c,d,e){sU.call(this,a,b,c,d,e);
this.Z=this.A=null;this.ra=-2;this.g=null;this.Ga=this.P=r;this.U=[];this.Ca=[];this.B=!1},NU=function(a,b){a.g=b;
null!=a.A&&null!=b&&(LU(a,a.P),MU(a,a.Ga))},LU=function(a,b){null!=a.g&&null!=a.A&&E(a.U,function(a){this.g.qa(a,"click",this.P);
!z(A(this.td()))&&this.g.N(a,"click",b)},a);
a.P=b},MU=function(a,b){null!=a.g&&null!=a.A&&(a.g.qa(a.A,"creativeview",a.Ga),a.g.N(a.A,"creativeview",b));
a.Ga=b},OU=function(a,b){var c=a.oa,d={};
d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.nc()&&(d.style+="width:"+a.Ta()+"px");z(A(c))||(d.id=c);return M("div",d,b)},PU=function(a){if(!a.B)return null;
var b=pU(a,"start");ub(b,pU(a,"creativeview"));if(null!=b&&!lb(b)){var c=[];E(b,function(a){if(!z(A(a))){var b;b=hf().Cx("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:pfa});Gq(b,{display:"block",height:"0px",width:"0px"});var f="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",lN(a.b));b.setAttribute("id",f);this.Ca.push(f);ob(c,b)}},a);
return c}return null},qfa=function(a,b){var c=a.Wa().A;
if(null!=a.A)if(c&&c.Gb("cleanup_text_overlay_spam_signals")){var d=[];E(a.U,function(a){d.push({element:a,Qw:this.$k(a)})},a);
new JU(b,a.A,d)}else d=new sg,E(a.U,function(a){d.set(a,this.$k(a))},a),new wU(b,a.A,d)},rfa=function(a){var b=[],c=a.Di();
E(c,function(a){b=sb(b,a.I)},a);
return b},QU=function(a,b,c){var d=c||!1;
return fb(b.B,function(a){var b=a.b==this.b;return this instanceof a.constructor&&(d||b)},a)},RU=function(a,b){KU.call(this,"1",sfa,"Html",null,"dummy");
this.C=0;this.ga=a.length;NU(this,new ym(this));this.ca=tfa(a,b);this.Fa=lf("iv-cards-slider-list",this.ca);if(this.M=lf("iv-cards-slider-prev",this.ca))this.g.N(this.M,"click",this.wa),S(this.M,!1);(this.aa=lf("iv-cards-slider-next",this.ca))&&this.g.N(this.aa,"click",this.Aa)},tfa=function(a,b){var c=zi(a,function(a){var b=SU(a),c;
c=new TU(yU(b.b,"offer")[0]);a=a.g(0);var d=c.b.merchant;c=c.b.price;return{headline:UU(b),description:VU(b),image:WU(XU(b)),action:null!=c?c:"",target:YU(a),merchant:null!=d?d:""}}),d=3<a.length;
return xR(jfa,{cards:c,Jn:c[0].merchant,Mn:DR("Ti\u1ebfp theo"),Qn:DR("Tr\u01b0\u1edbc"),Bd:iS(),Ab:b,Gy:d})},ZU=function(a){a.Fa.style.left=125*-a.C+"px";
a.M&&S(a.M,0<a.C);a.aa&&S(a.aa,a.C<a.ga-3)},$U=function(a,b,c,d,e,f,k,m,l,p){this.o=a;
this.b=b;this.D=c;(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e=0:(0,window.isNaN)(e)&&!(0,window.isNaN)(f)?e=f:!(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e:!(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)&&(e=f=d);this.pe=e;this.ud=f;this.C=k;this.B=m;this.g=lN(A(l));this.A=p},aV=function(a,b,c,d,e,f){nU.call(this);
this.og(a);this.A=b;this.g=c;this.K=tb(d);this.ea=null;this.o=e;this.ka=tb(f);xb(this.ka,null,function(a){return a.G})},bV=function(a){var b=new sg,c=a.Di();
E(c,function(a){if(a instanceof aV){var c=a.g;E(c.La(),function(a){b.set(a,sb(c.get(a),b.get(a)||[]))},this)}},a);
return b},cV=function(a,b){var c=fb(a.K,function(a){return!z(A(a.b))&&-1!=a.b.indexOf(b)&&("VPAID"==a.A||"surveys"==a.A)});
return null!=c?c.g:null},eV=function(a,b,c,d,e,f,k,m,l,p,t,u,x,B,C,H){this.ca=a;
this.Z=b;this.I=c;this.Ca=d;this.ma=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.Ga=m?tb(m):[];this.H=l?tb(l):[];this.B=p?tb(p):[];this.aa=[];this.F=[];this.G=null;this.K=[];this.ga=!0;this.g=this.b=null;this.D=new sg(u);this.P=null!=H;this.Aa=(this.U=null!=x)?B||!1:!1;this.wa=this.qz?C||!1:!1;this.Fa=A(x);this.Ja=A(H);this.za=this.A=null;this.o=new ifa;this.Y=new bf(0,0);this.J=String(Math.floor(1E9*Math.random()));this.X=this.ba=this.C=null;this.ra=D();this.ka=this.ia=0;this.Sa=this.ea=!1;this.M=
[];E(this.B,function(a){a.H=this},this);
dV(this,t)},lV=function(a){var b=a.getExtension("AdFormat");
if(null!=b)return b.g+"_"+b.A+"_"+b.o;b=fV(a);b=gV(a,hV)?"14":yT(b,"hideMaster")||yT(b,"blockAllAds")?"3":a.tb()?iV(a)?"2_3":a.isSkippable()?jV(a)?"2_1":"2_2":"2":"1";return kV(a)+"_"+b},kV=function(a){return mV(a)?4:gV(a,hV)?14:gV(a,ufa)?15:nV(a,vfa)||nV(a,oV)?1:pV(a)?2:0},qV=function(a){return null!=a.Z?a.Z:""},rV=function(a){return null!=a.g?sb(rV(a.g),a.Ga):a.Ga},sV=function(a){return null!=a.g?sb(sV(a.g),a.H):a.H},tV=function(a){return null!=a.g?sb(a.F,tV(a.g)):a.F},fV=function(a){return null!=
a.b?a.b.D:{}},wfa=function(a){var b={};
E(a.B,function(a){a=a.D;for(var d in a)b[d]=a[d]});
return b},uV=function(a){return null!=a.b?a.b.Sa:""},xfa=function(a){var b=[];
E(a.D.Ha(),function(a){ub(b,hU(a,"companionClick"))});
return b},wV=function(a,b){a.b=b;
a.Y=null!=a.b&&a.b instanceof KU?a.b.sc():new bf(0,0);if(yfa(a)&&W.b()&&(fN([9435278,9435279])||(eN(cN(),9435277)?0:null!=a.A&&a.A.Gb("generate_shopping_companions_on_desktop")))&&(lb(tV(a))||eN(cN(),9435278))){var c=new RU(a.M,vV(a));c.H=a;c.B=!0;a.F=[new tU(c,[],null,!0)]}},xV=function(a){return null!=a.ca?a.ca:""},zV=function(a){if(null==a.g||yV(a.g.I))return[];
var b=[xV(a.g)];ub(b,zV(a.g));return b},zfa=function(a){var b=zV(a).reverse();
b.push(xV(a));return b},AV=function(a){if(null==a.g||yV(a.g.I))return[];
var b=[qV(a.g)];ub(b,AV(a.g));return b},BV=function(a){if(!W.b())return null;
if(null!=a.g){var b=BV(a.g);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.g:null},Afa=function(a){var b=AV(a).reverse();
b.push(qV(a));return b},yV=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a},CV=function(a){if(null==a.g)return[a.I];
var b=CV(a.g);b.push(a.I);yV(b[0])&&b.shift();return b},DV=function(a){a=a.getExtension("waterfall");
return null!=a&&-1!=a.Pb()?a.Pb():-1},EV=function(a){if(-1!=a.ma)return a.ma;
a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1},FV=function(a,b,c,d){a=tV(a);
return tT(new qT(new bf(b,c),d),a)},GV=function(a){var b=a.A.Tf,c=a.A.Sf;
if(!b||!c)if(a=a.A.b?Ug(a.A.b,"sz"):null)a=a.split("x"),2==a.length&&(b=(0,window.parseInt)(a[0],10)||0,c=(0,window.parseInt)(a[1],10)||0);return new bf(b,c)},Bfa=function(a,b){var c=fS(),d=new HV;
d.b.type=4;var e=a.getExtension("AdSense"),f=new IV;f.b.hide_in_drawer=!0;f.b.show_in_endcap=!0;f.b.show_in_cta=!0;d.o=function(){return f};
var k=new JV;k.b.headline=e&&e.g||"";KV(k).b.image_url=b;k.b.description="";d.B=function(){return k};
var m=[new LV];m[0].Sd.target=vV(a)||"";m[0].setTitle(c);d.g=function(a){return m[a]};
d.A=function(){return m.length};
a.K=[d]},Cfa=function(a,b){var c=ge(b,function(a){return MV(a.o())});
0==c.length&&0<b.length&&a.A.Gb("enable_ad_video_end_renderers")&&(c=b.slice(1,2));return c},Dfa=function(a){if(!a.A||gV(a,NV)&&!gV(a,["ADSENSE/ADX"]))return[];
var b=GV(a);if(0>=b.width||0>=b.height)return[];var c=new oT;c.creativeType="All";c.A="All";c.o="SelectNearMatch";c.b=40;var d=FV(a,b.width,b.height,c);if(!lb(d))return d;c.g="ResizeSmaller";d=ge(tV(a),function(a){return a.b.eh()},a);
return tT(new qT(new bf(b.width,b.height),c),d)},OV=function(a){if(lb(a.K))return!1;
var b=a.K[0].Kb();return a.A.Gb("enable_ad_video_end_renderers")&&1==b||a.A.Gb("enable_website_actions_info_cards")&&4==b},Efa=function(a){var b=null,c=0;
E(Dfa(a),function(a){var e;e=GV(this);e=!a.b.eh()||a.Ta()<=e.width&&a.getHeight()<=e.height?a.b.sc():vT(a.b.sc(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);
return b},PV=function(a,b){return b||null==a.g?a.aa:sb(a.aa,PV(a.g))},dV=function(a,b){a.aa=b?tb(b):[];
E(a.aa,function(a){ub(this.F,tb(a.b))},a);
E(a.F,function(a){uU(a,this)},a);
W.b()&&a.tb()&&(a.F=ge(a.F,function(a){return 60>=a.getHeight()}))},QV=function(a,b){return Ph(a.B,function(a){return a instanceof aV&&"linear"==b||a instanceof KU&&"nonlinear"==b?!0:!1})},SV=function(a){return-1!=RV(a)&&0!=RV(a)&&7>=RV(a)},TV=function(a){var b=a.b;
return gV(a,NV)&&null!=b&&b instanceof KU&&(90<a.Y.height||null!=a.A&&a.A.If)},UV=function(a,b){if(null==b)return null;
var c=b.getExtension("adx");return null!=c?c:UV(a,b.g)},VV=function(a){var b=UV(a,a.g);
if(null!=b){if("skippable"==b.g)return b.A;if("nonskippable"==b.g)return null}var b=null,c=new TT(5,!1),d=Ffa(a);"implicit"==d&&(b=c);var e=a.b;null==b&&null!=e&&e instanceof aV&&(b=e.o);null!=b||"explicit"!=d||(b=c);return W.b()&&a.tb()&&null!=b?(0,window.isNaN)(a.A.C)?c:new TT(a.A.C,!1):b},Ffa=function(a){if(null!=fb(a.D.Ha(),function(a){return!lb(hU(a,"skip"))}))return"implicit";
var b=a.D.get("DFP");if(b instanceof kU)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.b;return W.b()&&null!=a&&(a=a.Zf,null!=a&&!lb($T(a,"skip")))?"explicit":"none"},WV=function(a){if(null==a.A)return!1;
var b=a.A.b;null!=b&&wa(b,"/PrefetchedAd")&&null!=a.g&&(b=a.g.D.get("LocalRedirect"),b=null!=b?b.Gd():null);(a=DT(b)||GT(b)||FT(b))||(null!=b?(b=(new N(b)).g,a=wa(b,"viral.adsense.net")):a=!1);return a},jV=function(a){if(null==a.Z||null==a.A)return!1;
var b;(b=WV(a)||!1)&&!(b=gV(a,NV)&&!gV(a,["ADSENSE/ADX"]))&&(gV(a,oV)?(b=a.D.get("DFP"),b=null!=b?"InstreamSelect"==b.g:!1):b=!1);if(b||a.g&&a.g.P&&WV(a.g))return!0;a=nV(a,["ADSENSE/ADX"])||a.g&&pV(a);return W.b()&&!a},vV=function(a){return null===a.b?null:a.b.td()},XV=function(a){return null!==a.G?10:OV(a)?(a=a.A.Fi("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3)):0},RV=function(a){return(null!=a.b?a.b.X:-1)+XV(a)},YV=function(a){return null===a.b?null:a.b.Ol()},
ZV=function(a){return null===a.b?null:a.b.Nl()},mV=function(a){return null!=a.g&&mV(a.g)||gV(a,Gfa)},iV=function(a){var b=YV(a);
return gV(a,["402"])||v(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")},$V=function(a){return gV(a,NV)&&jV(a)&&!SV(a)&&!z(A(a.C))&&null!==VV(a)&&0<UT(VV(a))},pV=function(a){return nV(a,NV)||nV(a,["402"])},aW=function(a){a=a.getExtension("InfoCards");
return null!=a?a.g:null},bW=function(a){a=a.getExtension("InfoCardsTracking");
return null!=a?a.g:null},gV=function(a,b){return null!=a.Z?kb(b,a.I):!1},nV=function(a,b){for(var c=CV(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(kb(b,c[d]))return!0;
break}return!1},yfa=function(a){return a.tb()&&0<a.M.length&&Bg(a.M,function(a){return 1==a.Kb()})},cW=function(){I.call(this);
this.A=[]},dW=function(){return new eV("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new sg)},eW=function(a){cW.call(this);
this.b=a;this.D=null;this.F=!1;this.o=null;this.B=new ym;Am(this.B,this.b,["companions_success","companion_initialization_failed"],this.GC,this);Am(this.B,this.b,"companion_display_error",this.JA,this);Am(this.B,this.b,["companion_slot_init","companion_click"],this.FA,this);this.b.o?this.F=!0:this.b.initialize()},iW=function(a,b){Nb(a.g);
a.g=new I;a.o=b;a.C=!0;a.F?fW(a):(a.C=gW(hW(b),[]),a.C||(a.o=null,a.g=null));return a.g},fW=function(a){var b=a.o;
a.o=null;if(null!=a.b)if(lb(a.A))jW(a,Error("Companion slots not available."));else if(null!=b){var c=Hfa(a,b),d=a.b;try{d.b.googleSetCompanionAdContents(zi(a.A,d.zw,d)),d.ng()}catch(f){d.V(new TS("companion_display_error",f))}if(0<c.length&&b.ga){a=a.b;if(d=0!=c.length)d=CV(b),d=yV(d[0])&&1<d.length?d[1]:d[0],d="GDFP"==d;if(d){for(var d=[],e=0;e<c.length;e++)d.push(c[e].F);b=b.A;c=bT(a);if(null!==c){aT(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else jW(a,Error("Invalid master ad."))},jW=
function(a,b){a.V(new mT("companion_display_error",b))},Hfa=function(a,b){var c=[],d=[];
E(a.A,function(a){WS(a);Ph(a.D,function(d){a:{d=FV(b,d.width,d.height);if(!lb(d)&&(d=Ifa(d,c),null!=d)){var e=d.A;if(null!=e&&0!=a.F.indexOf(e)){d=!1;break a}e=d.b.I;ub(e,xfa(b));var l=W.b()&&"Html"==d.b.J&&d.o;c.push(d);if(l)VS(a,d.ac(),d.Ta(),d.getHeight(),e);else{l=d.Wb();b.A.Gb("force_https_companions")&&"Static"==d.b.J&&(l=lN(l));var p=d.Ta(),t=d.getHeight();d="IFrame"!=d.b.J;a.C=l;a.g=null;a.B=p;a.A=t;a.o=d;a.b=e||[]}d=!0;break a}d=!1}return d},this)||d.push(a)},a);
var e=hW(b);a.C=gW(e,c);a.C||E(a.A,function(a){WS(a)},a);
return d},gW=function(a,b){if(null==a)return!0;
var c=a.b;return"all"==a.g?Jfa(c,b):"any"==a.g?Kfa(c,b):!0},hW=function(a){return null==a||null==a.b||(0,window.isNaN)(a.b.b)?null:fb(PV(a,!0),function(a){a=a.b;
return lb(a)?!1:(0,window.isNaN)(a[0].b.b)?!1:a[0].b.b==rT(a[0])})},Jfa=function(a,b){return Bg(a,function(a){return kb(b,a)})},Kfa=function(a,b){return Ph(a,function(a){return kb(b,a)})},Ifa=function(a,b){return fb(a,function(a){return!kb(b,a)})},kW=function(a){this.b=a},lW=function(a,b){mc.call(this,"adsManagerLoaded");
this.b=a;this.A=b},mW=function(a,b,c,d){a.b.ld(new kW(b),c,d);
return a.b},nW=function(a){mc.call(this,a);
this.o=[];this.A={};this.B=null;this.b=!0},oW=function(){this.A=new sg;
this.g=!W.b()&&.01>Math.random();this.o=0;this.b="0";this.B=""},Lfa=function(){var a=oW.getInstance();
a.sendMessage("ff",a.o);a.o=0},pW=function(a,b,c,d){d=d||{};
var e=new N("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc="+Mfa());d.cid=Nfa(a);d.utv=b;d.utt=c;d.cd6=QN($S);b=gN(cN());z(A(b))||(d.xid=b);Pb(d,function(a,b){hh(e,b,a)},a);
return e.toString()},Pfa=function(a,b){if(null!=b){var c=ya(b),d=Ofa.exec(c),c=A((new N(c)).b.get("client"));
a.b=d&&2==d.length?d[1]:z(c)?"0":c}else a.b="0"},Mfa=function(){var a=$S.A,b="html5";
null!=a&&(Na(a,"android")?b="android":Na(a,"ios")&&(b="ios"));return b},Nfa=function(a){z(a.B)&&(a.B="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var c=16*Math.random()|0;
return("x"==a?c:c&3|8).toString(16)}));
return a.B},qW=function(a,b,c){this.C=b;
this.o=c;this.B=null;this.g=new ym(this);this.H=a;this.A=this.b=null;this.F=!1},Qfa=function(a){if(null===a.B)rW(a);
else{var b=new N(a.B.b),c=A(b.b.get("vid")),b=A(b.b.get("cmsid")),d=a.o.I,e=a.o.H;a.o.I=c;a.o.H=b;if(z(A(c))||z(A(b)))rW(a);else if(c==d&&b==e)rW(a);else{var f=a.C.cf();dT(f,c,b);Oea(f,a.B);a.A=new Yd(100);Am(a.g,a.A,"tick",function(){var a;a:{var b=cT(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&rW(this)},a);
a.A.start()}}},Rfa=function(a){a.b=new Yd;
Fm(a.g,a.b,"tick",function(){rW(this)},a);
Zd(a.b,a.H);a.b.start()},rW=function(a){null!=a.g&&(a.g.dispose(),a.g=null);
null!=a.b&&(a.b.stop(),a.b=null);null!=a.A&&(a.A.stop(),a.A=null);a.F=!0;null===a.D||a.D()},sW=function(){I.call(this);
this.b=new sg;this.g=null;this.H=new ym(this);G(this,this.H);this.C="";this.o=this.I=this.F=this.A=null;this.G=-1},uW=function(){null!=tW||(tW=new sW);
return tW},vW=function(a,b){var c={};
c.queryId=a;c.viewabilityString=b;uW().V(new SM("measurable_impression",null,c))},wW=function(a,b){var c={};
c.queryId=a;c.viewabilityString=b;uW().V(new SM("viewable_impression",null,c))},xW=function(a,b,c){var d={};
d.queryId=a;d.viewabilityString=b;d.eventName=c;uW().V(new SM("externalActivityEvent",null,d))},Sfa=function(a,b){a.A=b},Tfa=function(a,b){if(a.g)if(a.o){var c=D()-a.G;
b(a.o+"_ct"+c)}else{var c=200,d=cN();eN(d,31061771)?c=300:eN(d,31061772)?c=400:eN(d,31061773)&&(c=500);var e=a.b,c=window.setTimeout(function(){b("timeout");E(e.La(),function(a){e.get(a)===b&&e.remove(a)})},c);
a.b.set(c,b);d={};a.B&&(d.isFullscreen=a.B.je());d.osdId=a.C;d.eventId=c;RN.getInstance().g&&(a.D=D(),d.loggingId=Math.random(),RN.getInstance().b(43,{step:"sendingMessage",logid:d.loggingId,time:a.D}));a.g.send("activityMonitor","fetchAdTagUrl",d)}else b("")},Ufa=function(a){return ia(a.getBoundingClientRect)&&Jf(ff(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,
top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},Vfa=function(a,b,c,d){if(a.g){var e={};
e.queryId=c;e.vastEvent=b;a.C&&(e.osdId=a.C);a.B&&(e.isFullscreen=a.B.je());e.isOverlay=null!=a.A;a.A&&(e.overlayBounds=Ufa(a.A));if(eN(cN(),41351021)){var f={};f.opt_fullscreen=e.isFullscreen;e.isOverlay&&(f.opt_bounds=e.overlayBounds);d(TQ(b,c,f))}else{var k=a.b;b=window.setTimeout(function(){d({viewability:"timeout"});E(k.La(),function(a){k.get(a)===d&&k.remove(a)})},200);
a.b.set(b,d);e.eventId=b}a.g.send("activityMonitor","reportVastEvent",e)}else d({})},yW=function(){},zW=function(a,b,c){this.g=a;
this.b=c;this.A=b},Wfa=function(a){this.A=a},AW=function(a){this.A=a;
this.g=this.b=!1},Xfa=function(a,b,c){this.b=a;
this.g=b;this.A=c},BW=function(){this.b=new sg},CW=function(a,b,c){if((0,window.isNaN)(c)||!ha(c))throw Error("Incorrect time offset.");
var d=[];ug(a.b,c)&&(d=a.b.get(c,[]));E(b,function(a){null!=a&&ob(d,a)});
a.b.set(c,d)},DW=function(a,b){this.b=a;
this.g=b},Zfa=function(a){var b=new BW;
E(Ef(Gf(a.b)),function(a){switch(a.nodeName){case "Preroll":a=EW(this,a);CW(b,a,0);break;case "Midroll":var d=KT(a,"timeOffset"),e=OT(d);if(-1==e)throw tN(FW,null,"timeOffset",A(d));a=EW(this,a);CW(b,a,e);break;case "Postroll":a=EW(this,a);CW(b,a,-1);break;default:throw tN(GW,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.b.La().length)throw tN(Yfa);return b},EW=function(a,b){var c=[];
E(Ef(b),function(a){switch(a.nodeName){case "Ad":var b=A(LT(a));if(!z(b)){a=KT(a,"bumper");var f=this.g.clone();f.b=b;b=new AW(f);b.b=null!=a;b.g="always"==a;ob(c,b)}break;default:throw tN(GW,null,a.parentNode.nodeName,a.nodeName);}},a);
return c},HW=function(a,b,c){gU.call(this);
this.g=a;this.A=b;this.o=c},IW=function(){},JW=function(){this.o=null;
this.B="http://www.google.com/adsense/support";this.C=0;this.b=15;this.A=5;this.g=3},$fa=function(a,b){a.b=b},KW=function(a,b,c,d,e,f,k,m,l,p,t){gU.call(this,p,t);
this.B=a;this.C=b;this.A=c;this.D=l;this.F=k;this.o=f;this.g=e},LW=function(){},cga=function(a,b){var c;
E(Ef(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new JW:null;break;case "params":null!=c&&aga(this,c,a)}},a);
return c},aga=function(a,b,c){E(Ef(c),function(a){var c=a.attributes[0].value;
switch(a.nodeName){case "attribution_url":b.B=c;break;case "attribution_text":b.o=c;break;case "signals":b.C=(0,window.parseInt)(c,10)}},a)},MW=function(){},NW=function(){},OW=function(){},PW=function(){},VW=function(a,b,c){var d={};
a=new QW(a,n(b)?b:null,n(c)?c:null);RW(d,a);b=a.error;d.ERRORCODE=1E3>b.g?b.g:900;SW(d);TW(d,a);UW(d,a);b=a.error.fb();d.ERROR_MSG=a.error.b;d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=jb(dga,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d},WW=function(a,b){var c={},d=new QW(null,a,n(b)?b:null);
RW(c,d);SW(c);TW(c,d);UW(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.g){var e=d.g.A;if(null!=e&&null!=e.We&&null!=e.We.video_start_delay)e=e.We.video_start_delay,0==e?c.BREAK_TYPE="1":-1==e?c.BREAK_TYPE="3":(c.BREAK_TYPE="2",c.MIDROLL_POS=e);else{e=d.g.o;c.BREAK_TYPE=0==e.o?"1":-1==e.o?"3":"2";c.SLOT_POS=e.g-1;var e=d.g.A,e=null!=e&&null!=e.Fb&&null!=e.Fb.GET_MIDROLL_POSITION_IN_SEC?e.Fb.GET_MIDROLL_POSITION_IN_SEC:null,f=Math.round(d.g.o.b),e=0<f&&e?e(f):f;0<e&&(c.MIDROLL_POS=
e)}}ega(c,d);fga(c,d);d=a.ra;for(e=a;null!=e;)d=e.ia+","+d,e=e.g;c.RWT=d;return c},QW=function(a,b,c){this.error=a;
this.g=b;this.b=c},gga=function(){var a=cea();
if(null!=a)return a.moatInit},XW=function(a,b,c,d){W.b()&&hga(c,b)?(d=d(),null!=d&&(a[c]=d,pN.Wp(b)&&(a[c]=(0,window.encodeURIComponent)(a[c])))):a[c]=""},hga=function(a,b){return Ph(iga[a],function(a){return null!=b.match(a)})},RW=function(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};
a.ASSETURI={toString:function(){return null!=b.b?b.b.getVideoUrl():""}}},fga=function(a,b){a.AD_CPN={toString:function(){return b.b.Jf()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.b.getCurrentTime())).toString()}};
a.MT={toString:function(){return b.b?Math.round(Math.max(0,1E3*b.b.getCurrentTime(1))).toString():"0"}};
a.P_W={toString:function(){return null!=b.b&&null!=b.b.sd()?b.b.sd().width.toString():""}};
a.P_H={toString:function(){return null!=b.b&&null!=b.b.sd()?b.b.sd().height.toString():""}}},SW=function(a){a.SDKV=QN($S);
a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}},TW=function(a,b){if(null!=b.g&&null!=b.g.A&&null!=b.g.A.Fb&&W.b()){var c=b.g.A.Fb;
E(jga,function(b){b in c&&(a[b]=c[b])})}},UW=function(a,b){if(null!=b.g){a.AD_ID=zfa(b.g);
a.AD_SYS=Afa(b.g);var c=BV(b.g);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.b){var a=iR(b.b.getVideoUrl());if(null!=a)return a}return"0"}};
a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=lV(b.g).split("_")}catch(d){}1<=c.length&&(a.FORMAT_NAMESPACE=c[0]);2<=c.length&&(a.FORMAT_TYPE=c[1]);3<=c.length&&(a.FORMAT_SUBTYPE=c[2]);a.FINAL="1"}},ega=function(a,b){null!=b.g&&(a.AD_LEN={toString:function(){var a=RV(b.g);
return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.b?b.b.Uf()?"0":Math.round(100*b.b.Ld()).toString():""}})},YW=function(a){this.b=a||{}},HV=function(a){this.b=a||{}},IV=function(a){this.b=a||{}},LV=function(a){this.Sd=a||{}},ZW=function(a){this.b=a||{}},$W=function(a){this.b=a||{}},TU=function(a){this.b=a||{}},JV=function(a){this.b=a||{}},aX=function(a){this.b=a||{}},bX=function(a,b){return new HV(yU(a.b,"card")[b])},SU=function(a){return(a=a.b.product_card)?
new $W(a):kga},MV=function(a){a=a.b.show_in_endcap;
return null!=a?a:!1},hX=function(){if(!cX){var a={};
cX={Nb:a};a.type=dX;a.id=eX;a.link_url=eX;a.title=eX;a.image=FU(fX());a.event=GU(gX());a.target=eX}return cX},iX=function(a){a=a.Sd.link_url;
return null!=a?a:""},jX=function(a){a=a.Sd.title;
return null!=a?a:""},YU=function(a){a=a.Sd.target;
return null!=a?a:""},gX=function(){if(!kX){var a={};
kX={Nb:a};a.type=dX;a.base_url=eX}return kX},UU=function(a){a=a.b.headline;
return null!=a?a:""},VU=function(a){a=a.b.description;
return null!=a?a:""},XU=function(a){return(a=a.b.image)?new aX(a):lga},KV=function(a){return(a=a.b.icon)?new aX(a):mga},fX=function(){if(!lX){var a={};
lX={Nb:a};a.image_url=eX;a.thumbnail_url=eX;a.image_height=mX;a.image_width=mX}return lX},WU=function(a){a=a.b.image_url;
return null!=a?a:""},nX=function(a,b,c){gU.call(this,c);
this.g=a;this.A=b||null},oX=function(a){this.b=a},qX=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Nb[f.nodeName];
if(k)switch(k.type){case "b":d[f.nodeName]="false"!=f.nodeValue;break;case "d":case "f":d[f.nodeName]=(0,window.parseFloat)(f.nodeValue);break;case "e":d[f.nodeName]=pX[b.nodeName][f.nodeName][f.nodeValue];break;case "i":d[f.nodeName]=(0,window.parseInt)(f.nodeValue,10);break;default:d[f.nodeName]=f.nodeValue}}for(e=0;e<b.childNodes.length;e++)if(f=b.childNodes[e],f.nodeType==window.Node.ELEMENT_NODE){var k=c.Nb[f.nodeName],m=qX(a,f,k.Ea);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(m)):
d[f.nodeName]=m}return d},nga=function(a,b){var c=new WT;
E(Ef(b),function(a){"CustomTracking"==a.nodeName&&null!=Ef(a)&&(c=fU(a,!1,w(function(a,b){return rX(a,b)},this)))},a);
return c},rX=function(a,b){return TM(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";
default:return""}}}})},sX=function(a,b){gU.call(this);
this.A=a;this.g=A(b)},tX=function(a,b){this.logger=null;
this.A=b;this.b={};this.g=[];this.b.CustomTracking=fU;this.b.UI=this.B},uX=function(a,b){if(null==b)return null;
var c={};E(Ef(b),function(a){c[a.nodeName]=null!=this.b[a.nodeName]?this.b[a.nodeName].call(this,a):null},a);
return null==c.UI?null:c},vX=function(a,b,c,d,e,f){gU.call(this,f);
this.A=a;this.B=b;this.C=c;this.o=d;this.g=e},wX=function(a){return null!=a.g?a.g.length:0},xX=function(){tX.call(this,0,"mute_");
this.b.SurveyOptions=this.o},yX=function(a,b,c,d){gU.call(this);
this.o=a;this.A=b;this.B=c;this.g=d},zX=function(){},AX=function(){gU.call(this)},BX=function(){},oga=function(a,b){E(Ef(b),function(a){a.nodeName==this.b.jw&&LT(a)},a)},CX=function(a,b,c,d){gU.call(this);
this.A=a;this.o=b;this.B=c;this.g=d},DX=function(){},EX=function(a){gU.call(this);
this.g=a},FX=function(){},GX=function(a,b,c,d,e,f,k,m,l){gU.call(this,e);
this.o=a;this.B=b;this.C=c;this.A=d;this.g=f||null;this.G=k||null;this.F=m||null;this.D=l||null},HX=function(){tX.call(this,0,"why_this_ad_");
this.g.push("targeting_reason")},IX=function(a,b){return null!=a?Bg(b,function(b){return b in a}):!1},pga=function(a,b){return null!=a?Ph(b,function(b){return b in a}):!1},JX=function(){},KX=function(){gU.call(this)},LX=function(){},MX=function(){},qga=function(a,b){this.b=a;
this.g=b},rga=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Ab?'<a class="text-image-link" target="_blank" href="'+Y(a.Ab)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Y(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+Y(a.duration)+"</div>":"")+"</a>":"")+(a.Ab?'<a class="text-title" href="'+Y(a.Ab)+'" target="_blank" dir='+Y(a.dir)+">"+Y(a.title)+"</a>":"")+'<div class="text-description" dir='+
Y(a.dir)+">"+Y(a.text)+"</div>"+(a.os&&a.Ab?'<a target="_blank" href="'+Y(a.Ab)+'" class="text-ad-channel">'+Y(a.os)+"</a>":"")+"</div></div>"},sga=function(a){return'<div class="flash-container '+(a.Df?"click-capture":"")+'">'+(a.Ab?'<a class="click-layer" target="_blank" href="'+Y(a.Ab)+'"></a>':"")+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+Y(a.width)+'" height="'+Y(a.height)+'"><param name="movie" value="'+
Y(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+VR(a.Ab)+'"><embed width="'+Y(a.width)+'" height="'+Y(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Y(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+VR(a.Ab)+'"></object></div>'},tga=function(a){return'<div class="image-container" id="'+
Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';">'+(a.Ab?'<a target="_blank" href="'+Y(a.Ab)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0"></a></div>'},uga=function(a){return'<div class="image-container" id="'+Y(a.id)+'">'+(a.Ab?'<a target="_blank" href="'+Y(a.Ab)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'},NX=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+
";height:"+Y(a.height)+';"></div>'},OX=function(a,b,c,d){KU.call(this,a,b,"Static",c,d);
this.vo=!1},PX=function(a,b,c,d){KU.call(this,a,b,"Html",c,d)},QX=function(a,b,c,d){KU.call(this,a,b,"Static",c,d)},RX=function(a,b){KU.call(this,a,b,"Static","text","")},SX=function(a,b,c,d,e){KU.call(this,a,b,c,d,e)},UX=function(a,b,c){if(lb(c))return new KU(a,b,"",null,"");
var d=TX(c);c=d.g;var e=d.b,d=d.A;switch(c){case "Html":return new PX(a,b,e,d);case "Static":switch(rU[e]){case "Image":return new QX(a,b,e,d);case "Flash":return new OX(a,b,e,d);case "Text":return new RX(a,b)}}return new SX(a,b,c,e,d)},TX=function(a){var b=fb(a,function(a){return"Static"==a.g&&"Flash"==rU[a.b]}),c=fb(a,function(a){return"IFrame"==a.g}),d=fb(a,function(a){return"Html"==a.g}),e=fb(a,function(a){return"Static"==a.g&&"Image"==rU[a.b]}),f=fb(a,function(a){return"Static"==a.g&&"Text"==
rU[a.b]});
return uT&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]},vga=function(a,b,c,d,e,f){var k=TX(f),m=UX(a.id,a.size,[k]);
m.B=!0;m.G=a.apiFramework;m.ba=b;m.I=c;m.b=d;e&&(m.Zf=e);qb(f,k);var l=[];E(f,function(f){f=UX(a.id,a.size,[f]);f.B=!0;f.G=a.apiFramework;f.ba=b;f.I=c;f.b=d;e&&(f.Zf=e);l.push(new tU(f,[],a.adSlotId))});
return new tU(m,l,a.adSlotId)},VX=function(a,b,c){this.g=a;
this.b=b;this.A=c},WX=function(a,b,c,d,e,f,k){this.A=a;
this.G=b;this.B=c;this.C=d;this.g=e;this.D=f;this.F=k;this.b=this.A.ae()},wga=function(a){br(a.b)||(S(a.b,!0),E(a.F,function(a){nN(a)}))},xga=function(a,b,c,d,e,f,k,m,l,p){b=UX("icon"+a,b,p);
b.G=k;b.ba=m.iconClickThrough;return new WX(b,a,c,d,e,f,l)},XX=function(a){this.o=a;
this.logger=null},YX=function(a){if(null==a)return!1;
a=Gf(a);return null!=a&&"VAST"==a.nodeName},$X=function(a,b){var c=[],d=null;
try{var e=fA(a),f=Gf(e);null!=f&&"CompanionAds"==f.nodeName&&(d=ZX(XX.prototype,f,b))}catch(k){}null!=d&&c.push(d);return c},aY=function(a){if(null==a)return 0;
a=(0,window.parseInt)(a.getAttribute("version"),10);return ha(a)&&!(0,window.isNaN)(a)?a:0},zga=function(a){var b=[],c=Gf(a.o),d=aY(c);
MT(c,a.b.xu,function(a){var c;c=bY(a);if(null==c)throw HT(a);var k=a.getAttribute(this.g.Xh);a=Number(a.getAttribute(this.g.Rn));c=yga(this,c,k||null,a||0);null!=c&&(c.ka=d,b.push(c))},a);
return b},bY=function(a){var b=null;
E(Ef(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw HT(a);}});
return b},yga=function(a,b,c,d){var e,f,k=[],m=[],l=[],p=[],t=new sg,u,x=b.nodeName==a.b.qw,B=x,C=x,H;
E(Ef(b),function(a){switch(a.nodeName){case this.b.lw:if(x){if(null!=u)throw IT(a);u=LT(a);H=gfa(u);B=PT(b.getAttribute(this.g.Cu),B);C=PT(b.getAttribute(this.g.jv),C)}else throw HT(a);break;case this.b.zu:e=LT(a);break;case this.b.Au:f=LT(a);break;case this.b.Xu:LT(a);break;case this.b.hw:LT(a);break;case this.b.Zh:a=LT(a);dU(a)&&k.push(ST(a));break;case this.b.ERROR:a=LT(a);m.push(ST(a));break;case this.b.Qu:a=Aga(this,a);l=a.creatives;p=a.Tw;break;case this.b.fv:t=Bga(this,a,H)}},a);
return new eV(A(c),e,Cga(e),f,0,0,d,m,k,l,p,t,u,B,C,Dga(t))},Dga=function(a){var b=null;
a=a.get("AdSense");null!=a&&(a=hU(a,"vast2tracking"),null!=a&&!lb(a)&&(b=a[0]));return b},Cga=function(a){if(z(A(a)))return"UNKNOWN";
a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "ADSENSE-VIRAL":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "SHOPPING":case "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:SHOPPING":case "YT:FREEWHEEL":case "VIRAL":return a;default:return"UNKNOWN"}},Ega=function(a){if(z(A(a)))return"none";
switch(a){case "all":case "any":case "none":return a;default:return"none"}},Bga=function(a,b,c){var d=new sg;
try{var e=JT(b,a.b.ev);E(e,function(a){var b=a.getAttribute(this.g.co);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new LX).parse(a);break;case "pod":a=(new JX).parse(a);break;case "waterfall":a=(new MX).parse(a);break;case "dart":a=(new NW).parse(a);break;case "dfp":b="DFP";a=(new OW).parse(a);break;case "adsense":b="AdSense";a=(new MW).parse(a);break;case "textad":b="TextAd";a=(new DX).parse(a);break;case "templatead":b="TemplateAd";a=(new BX).parse(a);break;case "infocards":var b="InfoCards",
e=new oX(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new oX(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,l=JT(a,"AdXml");1==l.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+gA(Gf(l[0])));a=JT(a,"VASTAdTagURI");l=null;1==a.length&&(l=a[0].textContent);a=new sX(e,l)}else a=null;break;case "viral":b="viral";a=(new FX).parse(a);break;case "adx":b="adx";a=(new jU).parse(a);break;case "why_this_ad":b="why_this_ad";a=(new HX).parse(a);
break;case "mute":b="mute";a=(new xX).parse(a);break;case "sodar":a=(new zX).parse(a);break;case "adformat":b="AdFormat";a=(new IW).parse(a);break;default:e=new PW,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(hfa(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ia(f.fb)||1105==f.fb())throw f;
}return d},Aga=function(a,b){var c=[],d=[];
MT(b,a.b.Pu,function(a){var b=a.getAttribute(this.g.Rn),k;z(A(b))||(k=(0,window.parseFloat)(b));var m=a.getAttribute(this.g.Xh),l=!1;E(Ef(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(l)throw IT(a);a=Fga(this,a,(0,window.isNaN)(k)?0:k,m||null);ub(c,a);l=!0;break;case this.b.Lu:if(l)throw IT(a);a=ZX(this,a,(0,window.isNaN)(k)?void 0:k);ub(d,a);l=!0;break;case this.b.Mv:if(l)throw IT(a);a=Gga(this,a,(0,window.isNaN)(k)?0:k,m||null);ub(c,a);l=!0}},this)},a);
return{creatives:c,Tw:d}},Gga=function(a,b,c,d){var e=[],f=new WT;
E(Ef(b),function(a){switch(a.nodeName){case this.b.Lv:a=Hga(this,a,c,d);null!=a&&e.push(a);break;case this.b.kk:f=fU(a);break;default:throw HT(a);}},a);
0!=e.length||f.isEmpty()||(a=new KU(null,new bf(-1,-1),"",null,""),a.b=c,a.ma=d,e.push(a));E(e,function(a){f&&(a.Zf=f)});
return e},cY=function(a,b){var c={};
c.id=b.getAttribute(a.g.Xh);c.adSlotId=b.getAttribute(a.g.yu);c.apiFramework=b.getAttribute(a.g.Uh);var d=Ya(b.getAttribute(a.g.ai)),e=Ya(b.getAttribute(a.g.Vh));c.size=new bf(d,e);d=b.getAttribute(a.g.dv);e=b.getAttribute(a.g.cv);z(A(d))||z(A(e))||(c.CO=new bf(Ya(d),Ya(e)));return c},Hga=function(a,b,c,d){var e=cY(a,b);
b.getAttribute(a.g.Uh);b.getAttribute(a.g.Xv);b.getAttribute(a.g.Av);var f=b.getAttribute(a.g.Iv),f=OT(f,-1),k=[];new sg;var m={},l="",p,t=[];E(Ef(b),function(a){switch(a.nodeName){case this.b.Ov:t.push(LT(a));break;case this.b.Nv:p=LT(a);break;case this.b.dk:m=dY(a);l=A(LT(a));break;case this.b.Yh:case this.b.$h:case this.b.Wh:a=eY(this,a);null!=a&&k.push(a);break;default:throw HT(a);}},a);
a=UX(e.id,e.size,k);oU(a,l,m);a.G=e.apiFramework;a.ba=p;a.I=t;a.ra=f;a.b=c;a.ma=d;return a},eY=function(a,b){var c=KT(b,a.g.Ru);
if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.b.$h:d="Static";break a;case a.b.Yh:d="IFrame";break a;case a.b.Wh:d="Html";break a;default:throw tN(Iga,null,d);}var e=LT(b);null!=e||(e="");return new VX(d,c,e)},ZX=function(a,b,c){var d=[],e=Ega(KT(b,a.g.Uv));
MT(b,a.b.Ku,function(a){a=Jga(this,a,c);null!=a&&d.push(a)},a);
return new qga(d,e)},Jga=function(a,b,c){var d=cY(a,b),e=[],f=new WT,k,m=[];
E(Ef(b),function(a){switch(a.nodeName){case this.b.Nu:m.push(LT(a));break;case this.b.kk:f=fU(a,!0);break;case this.b.Mu:k=LT(a);break;case this.b.Du:LT(a);break;case this.b.dk:LT(a);break;case this.b.Yh:case this.b.$h:case this.b.Wh:a=eY(this,a);null!=a&&e.push(a);break;default:throw HT(a);}},a);
return lb(e)?null:vga(d,k,m,c,f,e)},Fga=function(a,b,c,d){var e=new WT,f={},k="",m=[],l,p=new sg,t=[],u=[],x,B=eU(KT(b,a.g.$v));
E(Ef(b),function(a){switch(a.nodeName){case this.b.mv:u=Kga(this,a);break;case this.b.dk:f=dY(a);k=A(LT(a));break;case this.b.gk:x=OT(LT(a),0);break;case this.b.kk:e=fU(a);break;case this.b.Ev:t=Lga(this,a);break;case this.b.mw:a=Mga(this,a);p=a.customClicks;l=a.clickThrough;m=a.clickTrackingUrls;break;default:throw HT(a);}},a);
E(m,function(a){bU(e,"click",a)});
a=new aV(x,l,p,t,B,u);oU(a,k,f);a.b=c;a.ma=d;e&&(a.Zf=e);return a},Mga=function(a,b){var c,d=[],e=new sg;
E(Ef(b),function(a){switch(a.nodeName){case this.b.Iu:c=LT(a);break;case this.b.Ju:a=LT(a);d.push(a);break;case this.b.Uu:var b=KT(a,this.g.Xh);null!=b||(b="");var m=e.get(b,[]);m.push(LT(a));e.set(b,m);break;default:throw HT(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}},Lga=function(a,b){var c=[];
MT(b,a.b.Dv,function(a){var b=KT(a,this.g.Wu),f=KT(a,this.g.co),k=KT(a,this.g.ow),m=Ya(a.getAttribute(this.g.ai)),l=Ya(a.getAttribute(this.g.Vh)),p=a.getAttribute(this.g.Uh),t=LT(a),u=NT(a.getAttribute(this.g.Gn)),x=NT(a.getAttribute(this.g.Hv));a=NT(a.getAttribute(this.g.Cv));b=new $U(b,f,k,u,x,a,m,l,t,p);c.push(b)},a);
return c},Kga=function(a,b){var c=[];
MT(b,a.b.lv,function(a){a=Nga(this,a);null!=a&&c.push(a)},a);
return c},Nga=function(a,b){var c=b.getAttribute(a.g.Qv),d=KT(b,a.g.rw),e=KT(b,a.g.tw),f=Ya(b.getAttribute(a.g.ai)),k=Ya(b.getAttribute(a.g.Vh)),f=new bf(f,k),k=b.getAttribute(a.g.Uh),m=eU(KT(b,a.g.Pv)),l=b.getAttribute(a.g.gk),l=OT(l,-1),p=[],t=[],u={};
E(Ef(b),function(a){switch(a.nodeName){case this.b.qv:t.push(LT(a));break;case this.b.nv:u=Oga(this,a);break;case this.b.Yh:case this.b.$h:case this.b.Wh:a=eY(this,a);null!=a&&p.push(a);break;default:throw HT(a);}},a);
return lb(p)?null:xga(c,f,d,e,l,m,k,u,t,p)},Oga=function(a,b){var c=[],d;
E(Ef(b),function(a){switch(a.nodeName){case this.b.ov:d=LT(a);break;case this.b.pv:c.push(LT(a));break;default:throw HT(a);}},a);
return{iconClickThrough:d,EO:c}},dY=function(a){a=LT(a);
return null!=a?Vea(a):{}},fY=function(a,b){this.g=a;
this.b=b},Pga=function(a){var b=[],c=JT(a,"vmap:Extensions")[0];
if(c){var d;MT(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=JT(d,"yt:BreakTime"),!lb(b)))return zi(b,function(a){return KT(a,"timeOffset")})}return[KT(a,"timeOffset")]},Sga=function(a){var b=new BW;
E(Ef(Gf(a.g)),function(a){if("vmap:AdBreak"==a.nodeName){var d=Qga(this,a);a=Pga(a);E(a,function(a,c){var k=OT(a);0<c&&(d=Rga(this,d));if("start"==a||0==k)CW(b,d,0);else if("end"==a)CW(b,d,-1);else{if(-1==k)throw tN(FW,null,"timeOffset",A(a));CW(b,d,k)}},this)}},a);
if(0==b.b.La().length)throw tN(gY);return b},Rga=function(a,b){return zi(b,function(a){var b=new AW(a.A.clone());
b.b=a.b;b.g=a.g;return b},a)},Tga=function(a){a=KT(a,"timeOffset");
var b=OT(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b},Uga=function(a){return(a=fb(Ef(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?fb(Ef(a),function(a){return"VAST"==a.nodeName}):null},Qga=function(a,b){var c=[],d="",e=null,f=!1,k=!1;
E(Ef(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=hA(a,"vmap:VASTData/VAST")||hA(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=Uga(a));if(!e){var c=JT(a,"vmap:AdTagURI"),m="";c.length&&(m=A(LT(c[0])));if(z(m))throw tN(Vga,null,a.parentNode.nodeName,a.nodeName);d=m}}break;case "vmap:Extensions":a=JT(a,"vmap:Extension"),a=Wga(this,a),null!=a&&(f=!0,a=KT(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var m=null;e?m=Xga(a,e):z(d)||(m=Yga(a,d));m&&(W.b()&&(m.Eh=Tga(b)),m=new AW(m),m.b=f,m.g=f&&!k,ob(c,m));return c},Wga=function(a,b){return fb(b,function(a){return"bumper"==KT(a,"type")},a)},Yga=function(a,b){var c=a.b.clone();
z(c.g)||(c.g="");c.b=b;return c},Xga=function(a,b){var c=a.b.clone();
c.g=gA(b);c.b="";return c},$ga=function(a,b){if(null!=a){var c;
null!=a?(c=Gf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return oW.getInstance().g=!1,new DW(a,b);null!=a?(c=Gf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return oW.getInstance().g=!1,new fY(a,b);if(YX(a)){if(!YX(a))throw tN(GW);c=Gf(a);var d=aY(c);if(1>d||3<d)throw tN(Zga);c=JT(c,"Ad");if(lb(c))throw tN(hY);c=bY(c[0]);if(null==c)throw tN(iY);if(1!=JT(c,"AdSystem").length)throw tN(iY);return new XX(a)}}return null},jY=function(){},kY=function(a,b){this.g=a;
this.A=b},lY=function(a,b){"auto"!=a.g.nf&&"click"!=a.g.nf||b.set("vpa",a.g.nf)},mY=function(a){z("")||(a.set("mpt",""),z("")||a.set("mpv",""))},nY=function(a,b){var c=a.A.A,d=a.A.g;
null!=c&&b.set("js","ima-"+c);null!=d&&b.set("an",d);c=a.g.H;null!=c&&b.set("mv",c+"."+(a.g.G||""))},oY=function(a,b){b.set("osd",2);
-1!=a.A.G&&b.set("frm",a.A.G);var c=a.A.X;null!=c&&b.set("ms",c);b.set("sdr",1)},pY=function(a){return W.g?"h.3.0.0":null!=a.A?QN(a.A):null},qY=function(){this.b=["video"]},rY=function(a){switch(a){case 1:return"endslate";
default:return"fullslot"}},sY=function(a,b,c){if(null!=c){var d;
null==b.C&&(b.C=new MN);d=b.C;var e;null!=c&&d.g!=c?(d.b=1,d.g=c):d.b=null!=c?d.b+1:1;e=d.b;1!=e&&a.set("ad_block",e);null==b.J&&(b.J=new NN);e=b.J;var f=c!=b.K;(d=0==d.b%100||f)||(d=36E5<(null===e.b?0:(new Az).getTime()-e.b));d&&e.reset();b.K=c;b=e.g;null!==b&&a.set("tok",b)}},tY=function(a,b){a.set("sz",Math.max(null!=b.Tf?b.Tf:0,null!=b.Uc?b.Uc:0)+"x"+Math.max(null!=b.Sf?b.Sf:0,null!=b.Tc?b.Tc:0))},uY=function(a){var b={};
b.u_tz=-(new Date).getTimezoneOffset();var c;try{c=X.history.length}catch(e){c=0}b.u_his=c;b.u_java=!!X.navigator&&"unknown"!==typeof X.navigator.javaEnabled&&!!X.navigator.javaEnabled&&X.navigator.javaEnabled();X.screen&&(b.u_h=X.screen.height,b.u_w=X.screen.width,b.u_ah=X.screen.availHeight,b.u_aw=X.screen.availWidth,b.u_cd=X.screen.colorDepth);X.navigator&&X.navigator.plugins&&(b.u_nplug=X.navigator.plugins.length);X.navigator&&X.navigator.mimeTypes&&(b.u_nmime=X.navigator.mimeTypes.length);for(var d in b)a.set(d,
b[d]);a.set("dt",aha)},vY=function(a){if(a.Fb&&a.Fb.LACT){var b=a.Fb.LACT.toString();
if(b)return ab(b)}return a.F},wY=function(a){return W.b()&&a.Fb&&a.Fb.VIS?a.Fb.VIS.toString():null},BY=function(a,b,c,d){var e=new sg;
hN(cN())||e.set("ad_type",c.adType);uT&&e.set("flash",VO);tY(e,a);xY(c)&&(e.set("ea","0"),null!=a.Uc&&null!=a.Tc&&e.set("image_size",yY(c,a.Uc,a.Tc,a.If)));zY(e,d);e.set("lact",vY(a));(c=wY(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.Eh);uY(e);AY(a,e,!0);sY(e,b,a.B);return e},AY=function(a,b,c){z(A(a.referrer))||(a=a.referrer,c&&(a=xa(a)),CY("ref",a,b))},FY=function(a,b,c){a=null!=b?b.split("_"):a;
E(a,function(a){if(!Vb(bha,a))throw tN(lS,null,"ad_type",String(b));});
if(c){var d=[];E(a,function(a){kb(DY,a)||d.push(a)});
a=d}if(!KN()){d=[];E(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw tN(EY,null,"skippablevideo");a=d}return a},GY=function(a,b){return null!=b?b.split(/[+, ]/):a},yY=function(a,b,c,d){a.g&&(c=Math.min(c,90));
var e=0,f=0;cN();a=!W.b();d=d&&a;a&&(e=15,f=65);var k=[];E(cha,function(a){var l=b-e>=a.width&&c-f>=a.height,p=!d&&!l&&90>=a.height&&b>=a.width&&c>=a.height;(l||p)&&k.push(a.width+"x"+a.height)});
return k.join(",")},HY=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)},IY=function(a,b){return null!=b?String(b):null!=a?a:null},JY=function(a,b){if(null==b)return a;
switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a},KY=function(a,b,c){return null!=b&&Vb(c,b)?b:a},xY=function(a){return Ph(DY,function(b){return kb(a.b,b)})},zY=function(a,b){uT?a.set("ca_type","flash"):a.set("ca_type","image");
if(null!=b){var c=b.A;null!=c&&0<c.length&&(c=c[0].D,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}},CY=function(a,b,c){null!=b&&c.set(a,b)},MY=function(a,b,c){kY.call(this,a,b);
var d=new qY;a=(new N(a.b)).b;d.Kl=KY(d.Kl,a.get("cust_age"),dha);d.ci=KY(d.ci,a.get("adsafe"),LY);d.b=FY(d.b,a.get("ad_type"));d.adType=d.b.join("_");d.mk=HY(d.mk,a.get("videoad_start_delay"));d.nk=IY(d.nk,a.get("slotname"));d.Jl=JY(d.Jl,a.get("adtest"))||"on"==a.get("adtest");d.tk=JY(d.tk,a.get("scs"));d.uk=IY(d.uk,a.get("alternate_ad_url"));d.channels=GY(d.channels,a.get("channel"));d.Mk=HY(d.Mk,a.get("cpm"));d.Rg=IY(d.Rg,a.get("description_url"));d.experimentIds=IY(d.experimentIds,a.get("eid"));
d.gender=KY(d.gender,a.get("cust_gender"),eha);d.g=JY(d.g,a.get("overlay"));d.host=IY(d.host,a.get("host"));d.A=GY(d.A,a.get("h_ch"));d.hostTierId=HY(d.hostTierId,a.get("ht_id"));d.Ll=JY(d.Ll,a.get("lsv"));var e;null!=this.g.language?e=this.g.language:(e=aa.navigator||null,e=WM(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=IY(f,e);var k;null!=e&&!z(A(e))&&(k=WM(e));d.language=IY(d.language,k);d.Ip=HY(d.Ip,a.get("linearAdSlotWidth"));
d.Hp=HY(d.Hp,a.get("linearAdSlotHeight"));d.Zi=HY(d.Zi,a.get("max_ad_duration"));d.jm=HY(d.jm,a.get("min_ad_duration"));d.$i=HY(d.$i,a.get("sdmax"));d.Kp=HY(d.Kp,a.get("nonLinearAdSlotWidth"));d.Jp=HY(d.Jp,a.get("nonLinearAdSlotHeight"));d.jg=IY(d.jg,a.get("client"));d.ij=IY(d.ij,a.get("t_pyv"));k=a.get("sdki");d.oj=HY(d.oj,v(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=HY(d.tagForChildDirectedTreatment,a.get("tfcd"));d.targeting=KY(d.targeting,a.get("targeting"),fha);d.Ri=HY(d.Ri,
a.get("video_format"));d.Wm=HY(d.Wm,a.get("video_cpm"));d.Ml=IY(d.Ml,a.get("loeid"));d.cn=IY(d.cn,a.get("yt_pt"));d.$m=IY(d.$m,a.get("ytdevice"));d.an=IY(d.an,a.get("ytdevicever"));d.bn=IY(d.bn,a.get("dbp"));d.o=IY(d.o,a.get("ms"));d.adBlock=HY(d.adBlock,a.get("adBlock"));d.url=IY(d.url,a.get("url"));d.Ak=IY(d.Ak,a.get("avo"));this.b=d;this.G=b;this.H=c;z(A(this.b.experimentIds))||(b=this.b.experimentIds.split(","),aN(cN(),b))},hha=function(a){return Ph(gha,function(a){return kb(this.b.b,a)},a)},
NY=function(a){return W.b()?1:kb(a.b.adType.split("_"),"text")?3:1},iha=function(a){a=a.b.channels?a.b.channels:[];
xb(a);a=vb(a,0,30);return a.join("+")},OY=function(a,b){return Math.round(1.1*(a||0)+0*b)},PY=function(a,b){kY.call(this,a,b)},QY=function(a,b){kY.call(this,a,b)},RY=function(a){kY.call(this,a,null)},SY=function(a){kY.call(this,a,null)},TY=function(a,b){kY.call(this,a,b);
W.b()&&this.g.Gb("doubleclick_gpt_retagging")&&(this.A.B=ON())},UY=function(a){if(z(A(a)))return!1;
a=new N(a);if(!a.o||"http"!=a.o&&"https"!=a.o)return!1;a=a.g;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0},jha=function(a){var b=[];
E(a,function(a){0<a.length&&b.push(zi(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")},VY=function(a,b,c){TY.call(this,a,b);
var d=cN();this.G=hN()?!1:z(A(a.A));a=new qY;hN(cN())||(a.b=FY(a.b,this.g.A),a.adType=a.b.join("_"));a.experimentIds=IY(a.experimentIds,this.g.o);this.b=a;this.H=b;this.D=c;z(A(this.b.experimentIds))||aN(d,this.b.experimentIds.split(","))},kha=function(a){var b=BY(a.g,a.H,a.b,a.D);
b.set("sdkv",pY(a));b.set("sdki",a.C().toString(16));return b},lha=function(a,b){var c=kha(a),d=zi(c.La(),function(a){var b=c.get(a);
return a+"="+(null!=b?b:"")});
hh(b,"afvparams",d.join("&"))},WY=function(a,b,c){kY.call(this,a,b);
cN();this.G=hN()?!1:z(A(a.A));a=new qY;hN(cN())||(a.b=FY(a.b,this.g.A),a.adType=a.b.join("_"));a.experimentIds=IY(a.experimentIds,this.g.o);this.b=a;this.H=b;this.D=c;z(A(this.b.experimentIds))||(c=this.b.experimentIds.split(","),b=cN(),aN(b,c))},mha=function(a){var b=BY(a.g,a.H,a.b,a.D);
b.set("sdkv",pY(a));return b},nha=function(a,b){var c=mha(a),d=zi(c.La(),function(a){var b=c.get(a);
return a+"="+(null!=b?b:"")});
AT(b,"afvparams",[xa(d.join("&"))])},XY=function(a){kY.call(this,a,null)},pha=function(a){if(null==a.g||null==a.g.Fb)return{};
var b={},c=a.g.Fb;E(oha,function(a){a in c&&(b[a]=c[a])});
return b},qha=function(a,b){var c;
if(!FT(a.b)&&!GT(a.b)||(hN(cN())?null==a.b||-1==a.b.search("afvbase="):z(A(a.A))||null==a.b||-1==a.b.search("afvbase=")))if(FT(a.b))c=new QY(a,$S);else if(DT(a.b))c=new MY(a,$S,b);else if(GT(a.b))c=new TY(a,$S);else if(ET(a))c=new PY(a,$S);else if(c=a.b,null!=c?(c=(new N(c)).g,c=wa(c,".fwmrm.net")):c=!1,c)c=new RY(a);else{c=a.b;if(null!=c){c=new N(c);var d=c.A;c=wa(c.g,"youtube.com")&&CT("/get_midroll_info",d)}else c=!1;c=c?new XY(a):new SY(a)}else c=FT(a.b)?new WY(a,$S,b):new VY(a,$S,b);return c},
rha=function(a){a=ge(a,function(a){return 0<EV(a)});
Cb(a,function(a,c){return EV(a)-EV(c)});
return a},sha=function(a){return ge(a,function(a){return-1==EV(a)})},YY=function(a){this.b=a},tha=function(){this.b=0},uha=function(a,b,c,d,e,f){var k=w(function(a){d(a,Error(Hm(a)))},a),m=w(function(a){6==a?ZY(this,b,!1,c,k,e,f):k(a)},a);
ZY(a,b,!0,c,m,e,f)},ZY=function(a,b,c,d,e,f,k){var m=new pn;
m.P=c;qn(m,vha(f));var l=new ym,p=w(function(){l.dispose();m.dispose()},a);
c=w(function(){e(m.g);p()},a);
Fm(l,m,"success",function(){var a;try{a=m.b?m.b.responseXML:null}catch(b){a=null}if(null==a){var c=Cn(m);try{a=fA(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(dA&&(a=eA())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);
Fm(l,m,["error","timeout"],c,a);var t;"POST"==k&&(b=new N(b),t=b.b.toString(),bh(b,""),b=b.toString());a.b=D();m.send(lN(b),k,t)},$Y=function(a,b,c){var d=null,e=c+b;
E(a.B,function(f){if(yT(f.D,"rm")){var k=WW(a);mV(a)&&(k.FILLED_OPPORTUNITY=0);qN(a.H,k);(k=a.A)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof KU)0==c&&0==b||f instanceof RX?k=!0:(k=f.sc(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-f.sc().height+b-f.sc().width,"Flash"!=f.nc()||uT))if(null==d)d=f,e=k;else if(k==e&&f.b<d.b||k<e)d=f,e=k}});
wV(a,d)},aZ=function(a){var b=null;
E(a.B,function(a){a instanceof aV&&(null===b||a.b<b.b)&&(b=a)});
wV(a,b)},bZ=function(a,b,c,d){this.o=a;
this.G=b;this.ads=0<this.o.length?this.o:this.G;this.C=c;this.B=this.I=!0;this.g=-1;this.b=null;this.D=0;this.K=d;this.logger=null},cZ=function(a,b,c){null!=a.b?wha(a,b,c):a.Kd()?xha(a,b,w(function(a){!this.Kd()||!W.b()&&301==a.fb()?c(a):cZ(this,b,c)},a)):c(new QM("adLoadError","The ad source contains no more ads.",1005))},yha=function(a,b){a.B=b;
a.ads=a.H(a.o,a.G);a.g=-1},zha=function(a,b,c,d){var e=a.C.clone();
e.g="";e.b=b.Ja;dZ(a,b,e,c,d)},dZ=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");
null!=f&&(f=f.A,null!=f&&(c.g=f));a.K.fetch(c,w(function(a){a instanceof bZ?(Aha(a,b,this.B&&b.Aa,b.wa),d(a)):a instanceof YY?e(new QM("adLoadError","Ad source cannot contain playlist response.",2)):e(new QM("adLoadError","Unknown ad source.",2))},a),e)},Bha=function(a){var b=0;
for(a=a.g;null!=a;)a=a.g,b++;return b},wha=function(a,b,c){a.b.Kd()?cZ(a.b,w(function(a){this.A(a,b,w(function(a){this.Kd()?cZ(this,b,c):c(a)},this))},a),w(function(a){eZ(this.ads[this.g],a);
this.b=null;W.b()||301!=a.fb()?this.Kd()?cZ(this,b,c):c(a):c(a)},a)):(0==a.b.D&&eZ(a.ads[a.g],tN(fZ)),a.b=null,cZ(a,b,c))},eZ=function(a,b){if(b.A){1012==b.fb()&&(b=tN(gZ));
var c=VW(b,a);qN(a.Ga,c)}},xha=function(a,b,c){a.g++;
var d=a.ads[a.g];d.U||d.P?d.P?zha(a,d,w(function(a){this.b=a;cZ(this,b,c)},a),w(function(a){a=hZ(a);
eZ(d,a);c(a)},a)):4<=Bha(d)?(a=tN(Cha,null,"4"),eZ(d,a),c(a)):a.I?a.F(d,w(function(a){this.b=a;
cZ(this,b,c)},a),w(function(a){a=hZ(a);
eZ(d,a);c(a)},a)):c(tN(Dha)):a.A(d,b,c)},hZ=function(a){switch(a.fb()){case 300:case 301:case 302:case 303:case 200:case 1012:break;
default:a=tN(fZ)}return a},Aha=function(a,b,c,d){E(a.ads,function(a){a.g=b});
yha(a,c);a.I=d},iZ=function(a,b,c,d){bZ.call(this,[],a,b,c);
this.J=d},jZ=function(a,b,c,d,e){this.B=a;
this.A=b;this.o=c;this.b=d;this.C=e},Eha=function(a,b,c,d){var e;
try{e=fA(b.g)}catch(f){d(tN(GW,f));return}null!=e?kZ(a,e,b,c,d):d(tN(GW))},lZ=function(a,b,c,d){var e;
if(e=null!=b.b){a:{try{ya(b.b)}catch(f){e=!1;break a}e=!0}e=!e}e?d(tN(Fha,null,b.b)):W.B?Tfa(uW(),w(a.g,a,b,c,d)):a.g(b,c,d)},Gha=function(a){var b="third_party";
DT(a.b)?b="adsense":FT(a.b)?b="dart":GT(a.b)?b="xfp":ET(a)&&(b="dbm");a={rt:b};RN.getInstance().b(17,a,!0)},kZ=function(a,b,c,d,e){var f;
try{var k=$ga(b,c);if(!k)throw tN(GW);f=k.A();Hha(a,f,c,d)}catch(m){m instanceof QM?e(m):e(tN(Iha,m))}},Hha=function(a,b,c,d){var e=b.b;
if(null!=e)d(new YY(e));else{var f=b.A;if(null==f)throw tN(hY);E(f,function(a){a.A=c;var d=UM();d&&VM(d,"useCompanionsAsEndSlate")&&(a.G=Efa(a));var d=[],e=a.getExtension("InfoCards");if(null!=e)for(var e=e.A?e.A:new YW,f=0;f<zU(e.b,"card");f++)d.push(bX(e,f));a.M=d;a.K=Cfa(a,a.M);a.ia=this.A.b;W.b()&&(a.za=b.g)},a);
e=rha(f);f=sha(f);0<f.length&&0<=DV(f[0])?d(new iZ(f,c,a,a.B)):d(new bZ(e,f,c,a))}},mZ=function(a){this.b=a+D()},vha=function(a){var b=D();
a=a.b-b;return 0<a?a:0},Jha=function(a,b){this.b=a;
this.g=b;W.g&&WQ().init();var c;a:{try{c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}$S.G=c},Lha=function(a,b,c,d){var e=b.D;
W.b()&&e&&aN(cN(),e,!1);e=null;null!=a.b&&(e=new qW(1E3,a.b,a.g));var f=$ea(b);null!=f&&Zea(b)&&(a.g.X=f);(new jZ(a.g,new tha,a.b,e,new mZ(8E3))).fetch(b,w(function(a){a instanceof YY?c(a):Kha(this,a,c,d)},a),d)},Kha=function(a,b,c,d){var e=[],f=w(function(a,b){a.Kd()?cZ(a,w(function(b){e.push(b);
f(a,null)},this),w(function(b){301==b.fb()?d(tN(nZ)):f(a,b)},this)):0<e.length?c(e):(null==b&&(b=tN(gY)),1012==b.fb()&&(b=tN(gZ)),d(b))},a);
f(b,null)},Mha=function(a){this.A=a;
this.g=new go;this.b=!1},pZ=function(a,b,c,d){var e=w(function(a){c(a);
jo(this.g);this.b=!1;oZ(this)},a),f=w(function(a){d(a);
jo(this.g);this.b=!1;oZ(this)},a);
io(a.g,w(function(){Lha(this.A,b,e,f)},a));
oZ(a)},oZ=function(a){if(!a.b){var b=ko(a.g);
null!=b&&(a.b=!0,b())}},qZ=function(a,b,c){I.call(this);
this.o=new Mha(new Jha(b,c));this.g=b;this.b=!0;this.A=c},Nha=function(a,b,c){if(a.b){var d=null!=c?c:{};
oW.getInstance().end("rtr");Pfa(oW.getInstance(),b.b);oW.getInstance().start("vl");pZ(a.o,b,w(function(a){rZ(this,a,d)},a),w(function(a){sZ(this,a,d)},a))}},Oha=function(a,b,c){if(!a.b){var d=null!=c?c:{};
pZ(a.o,b,w(function(a){rZ(this,a,d)},a),w(function(a){sZ(this,a,d)},a))}},rZ=function(a,b,c){if(a.b)if(b instanceof YY)b=new tZ(b.b,a),b.D=a.g,a.V(new lW(b,c));
else{var d;try{d=uZ(b),d.D=a.g,a.V(new lW(d,c)),oW.getInstance().end("vl")}catch(e){sZ(a,tN(vZ,null),c)}}else b instanceof YY?sZ(a,tN(Pha,null,"Unsupported ad format."),c):(d=new nW("adsLoaderSdkAdLoaded"),d.o=b,d.A=c,a.V(d))},sZ=function(a,b,c){a.b?("always"==W.A&&null!=a.g&&iW(a.g,dW()),a.V(new RM(b,c))):(c=new nW("adsLoaderSdkAdError"),c.B=b,a.V(c))},Qha=function(a){return'<div class="close-padding"><a class="close-button" title="'+Y(a.close)+'" role="button" tabindex="0"></a></div>'},Rha=function(){return'<div class="recall-button"></div>'},
Sha=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="attribution-button">'+Y(a.text)+"</a>"},wZ=function(a,b){this.H=a;
this.G=M("div",{"class":"controls"});this.b=M("div",{"class":"adDisplay"});this.P=b||r;this.pd=new ym(this)},xZ=function(a){var b=M("div",{"class":"ima-container"});
hr(b,"opacity 0.4s");a.pd.N(b,"mouseover",a.Dy);a.pd.N(b,"mouseout",a.tE);b.appendChild(a.G);a.G.appendChild(a.b);return b},yZ=function(a){var b=window.document.createEvent("Event");
b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)},zZ=function(a,b){this.I=a;
this.M=new sg;this.K=15E3;this.D=M("span");wZ.call(this,a[0],b);this.b.appendChild(this.D)},AZ=function(a,b){wZ.call(this,a[0],b);
this.o=a;J(this.b,"ima-container-stack")},BZ=function(a,b,c,d,e){vA.call(this);
this.g=a;this.B=b;this.D=c;this.A=d;this.C=ea(e)?e:[e]},CZ=function(a,b,c,d,e){return new BZ(a,b,{opacity:d},{opacity:e},{property:"opacity",
duration:b,timing:c,delay:0})},Tha=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="fullslot-attribution-button">'+Y(a.text)+"</a>"},Uha=function(a){return'<div class="fullslot-autoclose">'+Y(a.Fw)+"</div></div>"},DZ=function(a){return"Qu\u1ea3ng c\u00e1o s\u1ebd \u0111\u00f3ng trong "+(Y(a.Ag)+" n\u1eefa")},EZ=function(a){I.call(this);
this.B=new Yd(200);G(this,this.B);this.A=0;this.g=!1;this.H=a;this.G=new ym(this);this.G.N(this.B,"tick",this.qC)},FZ=function(a){a.B.stop();
a.g=!1},HZ=function(){I.call(this);
this.b=!1;this.A=this.o=this.g=null;this.B=new ym(this);this.g=xR(Jea);this.o=lf("videoAdUiUnmutedIcon",this.g);this.A=lf("videoAdUiMutedIcon",this.g);GZ(this);this.B.N(this.g,"click",this.C)},GZ=function(a){a.o&&a.A&&(a.b?(Gq(a.o,"display","none"),Gq(a.A,"display","block")):(Gq(a.o,"display","block"),Gq(a.A,"display","none")))},IZ=function(a,b){I.call(this);
this.A=a;this.P=0;this.K=!1;this.o=0==UT(this.A.skipOffset)?3:1;this.b=this.g=this.X=this.I=this.F=this.B=null;this.D=new ym(this);this.C=this.H=this.G=null;this.M=!1;this.J=new dR;this.U="";Vha(this,b);this.D.N(this.J,"click",this.jE);eR(this.J,this.g)},Vha=function(a,b){a.B=xR(Eea);
a.F=lf("videoAdUiPreSkipButton",a.B);a.I=lf("videoAdUiPreSkipText",a.F);a.X=lf("videoAdUiPreSkipThumbnail",a.F);Lf(a.I,eS({Ag:JZ(a)}));var c=mea(a.A.Ga)||"";if(a.A.showContentThumbnail&&!z(A(c))){var d=window.document.createElement("img");d.setAttribute("src",c);J(d,"videoAdUiPreSkipThumbnailImage");a.X.appendChild(d)}else J(a.I,"videoAdUiPreSkipTextOnly");a.b=xR(Fea,{kE:Sa("B\u1ecf qua qu\u1ea3ng c\u00e1o "+Y(""))});a.g=lf("videoAdUiSkipButton",a.b);c="4.4.4"===(kI?EN(JN):"");d=eN(cN(),420706003);
c&&d&&(a.F.style.backgroundColor="black",a.g.style.backgroundColor="black");eN(cN(),9428661)&&(J(a.g,"autofocused"),a.D.N(a.g,"blur",w(function(){he(this.g,"autofocused")},a)),a.g.autofocus=!0);
S(a.B,!1);b.appendChild(a.B);0==UT(a.A.skipOffset)?a.V("skipshown"):(S(a.b,!1),ar(a.b,0));b.appendChild(a.b)},JZ=function(a){return null!=a.A.skipOffset&&-1!=UT(a.A.skipOffset)?UT(a.A.skipOffset):-1},KZ=function(a,b){var c=JZ(a);
if(!(0>c)){var c=Math.ceil(c-b),d=" "+c;60<=c&&(d=" "+wT(c));c=eS({Ag:d,yi:a.U});Lf(a.I,c)}},LZ=function(a){null!=a.C&&(ae(a.C),a.C=null)},MZ=function(a,b){null!=a.F&&S(a.F,b);
null!=a.g&&S(a.g,b)},PZ=function(a,b,c){I.call(this);
this.b=a;this.U=!1;this.za=c;this.aa=this.Y=this.ba=this.C=this.I=this.K=this.F=this.ca=this.Aa=this.Z=this.G=this.g=null;this.ka=!1;this.ra=this.ea=this.ga=this.H=this.J=this.o=this.B=this.ia=this.X=this.P=this.D=null;this.A=new ym(this);this.wa=[];this.M=[];this.U=!this.b.B&&eN(cN(),9416126);a={jd:this.b.jd,eg:this.b.eg,Bd:this.b.Bd,yi:this.U?"redesign2014q4":""};this.g=xR(this.b.G,a);this.A.N(this.g,"touchmove",this.Wy);this.X=lf("videoAdUiProgress",this.g);this.ia=lf("videoAdUiBuffer",this.g);
this.G=lf("videoAdUiAttributionContainer",this.g);this.Z=lf("videoAdUiAttributionIconContainer",this.g);this.ca=lf("videoAdUiAttribution",this.g);this.b.g&&(J(b,"videoAdUiInstreamBadgeExperiment"),this.Aa=lf("videoAdUiAttributionBadge",this.G),c=gS({zh:"",Kg:0,Ah:0}),Lf(this.Aa,Sa(c)));this.F=lf("videoAdUiVisitAdvertiserLinkText",this.g);this.K=lf("videoAdUiVisitAdvertiserIcon",this.g);this.I=lf("videoAdUiAuthorIcon",this.g);this.C=lf("videoAdUiAuthorName",this.g);this.ba=lf("videoAdUiLearnMore",
this.g);this.Y=lf("videoAdUiLearnMoreText",this.g);this.U?(this.H=lf("videoAdUiTopButtonShare",this.g),this.ga=lf("videoAdUiTopButtonShareTooltip",this.g),this.ea=lf("videoAdUiTopButtonInfo",this.g),this.ra=lf("videoAdUiTopButtonWatchLater",this.g)):this.H=lf("videoAdUiShare",this.g);this.D=lf("videoAdUiTitle",this.g);this.P=lf("videoAdUiTopBar",this.g);this.aa=lf("videoAdUiBottomBar",this.g);null!=this.I&&this.A.N(this.I,"click",this.Dw);null!=this.C&&(c=new dR,this.M.push(c),this.A.N(c,"click",
this.Ew),eR(c,this.C));null!=this.ba&&(c=new dR,c.I=!0,this.M.push(c),this.A.N(c,"click",this.$p),eR(c,this.ba));null!=this.Y&&(c=new dR,c.I=!0,this.M.push(c),this.A.N(c,"click",this.$p),eR(c,this.Y));null!=this.H&&this.A.N(this.H,"click",this.gE);null!=this.D&&(c=new dR,this.M.push(c),this.A.N(c,"click",this.rE),eR(c,this.D));null==this.P||!W.b()&&zN()||this.A.N(this.g,"mouseover",this.fE);null!=this.F&&this.A.N(this.F,"click",this.Ej);null!=this.K&&this.A.N(this.K,"click",this.Ej);null!=this.G&&
null!=this.b.C&&NZ(this.b.C)&&(J(this.G,"videoAdUiWtaClickable"),this.A.N(this.G,"click",this.DD),this.A.N(this,"why_this_ad_got_it",this.zE));null!=this.b.skipOffset&&(this.o=new IZ(this.b,this.g),this.o.qg(this),this.o.U=a.yi);this.b.K&&(this.J=new HZ,this.J.qg(this),this.aa.insertBefore(this.J.g,this.G));400>=((0,window.parseInt)(Jq(b,"width"),10)||b.width)&&J(this.g,"videoAdUi-mobile");this.b.B&&(J(this.g,"blazer"),window.settings&&window.settings.isTablet?J(this.g,"tablet"):J(this.g,"phone"));
a=Tf(b,"html5-video-player");null!=a&&(this.U&&J(a,"videoAdUiRedesign"),K(a,"ytp-video-ad-learn-more-ui",this.b.A));S(this.g,!1);b.appendChild(this.g);this.b.A||this.U||!this.b.I||(this.B=M("div",{style:"width:100%;height:100%;pointer-events:auto;"}),this.g.appendChild(this.B));OZ(this)},Wha=function(a){null!=a.B&&S(a.B,!1)},QZ=function(a){a.o&&(a.o.dispose(),a.o=null)},Xha=function(a,b){a.wa=b;
E(b,function(a){a.o=this.g;a.o.appendChild(a.b);var b=a.b,e=Zq(a.o),e="left"==a.B?"0px":"right"==a.B?e.width-a.A.sc().width+"px":a.B+"px",f;f=Zq(a.o);f="bottom"==a.C?"0px":"top"==a.C?f.height-a.A.sc().height+"px":f.height-a.A.sc().height-ab(a.C)+"px";Gq(b,{position:"absolute",overflow:"hidden",left:e,bottom:f});S(a.b,!1)},a)},RZ=function(a){null!=a.F&&(S(a.F,!0),Lf(a.F,a.b.visitAdvertiserText));
null!=a.K&&S(a.K,!0)},SZ=function(a,b){if(null!=a.g){var c=Tf(If(a.g),"html5-video-player");
null!=c&&K(c,"ytp-ad-end-cap",b)}},OZ=function(a){var b=a.b.U&&(a.za>a.b.aa||0==a.za),c=b&&a.b.ba,d=b&&a.b.Y,e=b&&a.b.o,f=b&&a.b.P,b=b&&a.b.F,k=a.b.M&&a.b.b,m="0px";
null!=a.D&&(S(a.D,b),null!=a.I&&S(a.I,c),null!=a.C&&S(a.C,d),null!=a.ba&&S(a.ba,e),null!=a.H&&(S(a.H,f),f&&a.V("videoShareShown")),null!=a.ea&&S(a.ea,!1),null!=a.ra&&S(a.ra,!1),null!=a.P&&S(a.P,b||c||d||e));null!=a.G&&TZ(a);null!=a.X&&(S(a.X,k),k&&(m=Jq(a.X,"height")));null!=a.aa&&Gq(a.aa,"bottom",m);null!=a.Y&&S(a.Y,W.b()&&a.b.A&&!e);null!=a.Z&&S(a.Z,a.b.H)},Yha=function(a,b,c,d,e){var f;
f=a.b.g?"":gS({zh:"",Kg:0,Ah:0});a.b.b&&a.b.J&&(b=wT(c-b),b=a.b.g?b:a.b.B?" \u2022 "+b:a.U?" \u00b7 "+b:": ("+b+")",f=a.b.g?b:gS({zh:b,Kg:d,Ah:e}));Lf(a.ca,f);TZ(a)},TZ=function(a){S(a.G,a.b.D&&(!a.b.b||a.ka))},UZ=function(a,b){this.B=a;
this.A=b;this.g=this.o=this.C=this.b=null},NZ=function(a){return null!=a.B||null!=a.A},VZ=function(a,b,c){b=lf(b,a.b);
null!=b&&a.o.N(b,"click",c)},WZ=function(a,b,c){null!=a.b&&a.b.parentElement.removeChild(a.b);
a.b=xR(b,c);VZ(a,"videoAdUiPopupCloseIcon",a.si);a.C.appendChild(a.b);b=lf("videoAdUiPopupFrame",a.b);null!=b&&Qc(b,"submit",function(a){a.preventDefault()});
a=lf("videoAdUiPopupDefaultButton",a.b);null!=a&&a.focus()},XZ=function(){this.jd=gS({zh:"",
Kg:0,Ah:0});this.eg=fS();this.visitAdvertiserText="Truy c\u1eadp v\u00e0o trang web c\u1ee7a nh\u00e0 qu\u1ea3ng c\u00e1o";this.Bd=iS();this.skipOffset=null;this.aa=6E3;this.D=!0;this.H=!1;this.J=this.b=this.I=!0;this.P=this.M=this.K=this.o=!1;this.U=!0;this.F=this.Y=this.ba=this.X=this.A=!1;this.G=null;this.showContentThumbnail=!0;this.g=this.B=!1},YZ=function(a,b,c,d){var e=new XZ;
e.A=a;e.Z=b;e.skipOffset=c;e.Ga=null!=d?d.Rf:null;e.I=d.wE;e.G=Bea;e.ca=jR(b,null!=c,d.Af);e.showContentThumbnail=null!=d.Rf&&d.showContentThumbnail;return e},$Z=function(a,b,c,d,e){EZ.call(this,b.b);
this.F=b;this.D=c;this.I=this.F.b;this.b=a;this.o=this.C=null;J(this.b,rY(this.D));a=this.b;b=new XZ;b.skipOffset=new TT(this.F.A,!1);this.o=new IZ(b,a);d&&d.text&&(d=xR(Tha,d),this.b.appendChild(d));e?(e=this.b,d=DZ({Ag:ZZ(this.I)}),a=xR(Uha,{Fw:d}),Lf(a,d),e.appendChild(a),e=a):e=null;this.C=e},Zha=function(a){var b=lf("videoAdUiSkipButton",a.b);
return b?Vq(b,a.b):new $e(0,0)},ZZ=function(a){a=Math.ceil(a);
return"0:"+(10>a?"0"+a:""+a)},a_=function(){F.call(this);
this.C="";this.o=new WT;this.A=new sg;this.D=[];this.H=!1;this.g={};this.G={};this.B=-1;this.F=[]},$ha=function(a,b){null!=b&&E(b,function(a){kb(this.F,a)||this.F.push(a)},a)},b_=function(a,b,c,d){var e;
W.g||(e=uW().I||void 0);E(b,function(a){var b=this.g,m=c||{};XW(b,a,"MOAT_INIT",gga);XW(b,a,"MOAT_VIEWABILITY",jd(m.moatViewability||""));XW(b,a,"IAS_VIEWABILITY",jd(m.integralAdsViewability||""));XW(b,a,"DV_VIEWABILITY",jd(m.doubleVerifyViewability||""));XW(b,a,"GOOGLE_VIEWABILITY",jd(m.googleViewability||""));nN(a,this.g,c,d,e)},a)},aia=function(a,b){switch(b){case "abandon":return!ug(a.A,b)&&!ug(a.A,"skip")&&!ug(a.A,"instreamAdComplete")&&(ug(a.A,"impression")||a.H);
case "click":return!0;case "instreamAdComplete":case "complete":return!ug(a.A,b)&&!ug(a.A,"skip");default:return!ug(a.A,b)}},c_=function(a,b){I.call(this);
this.b=a;this.g=new ym(this);G(this,this.g);this.g.N(b,["companion_impression","companion_click"],this.A)},d_=function(a){I.call(this);
this.ads=a;this.H=null;this.ba=new ym(this);G(this,this.ba);this.I="normal";this.A=this.volume=null;this.o=new TN;this.Aa=!1;this.content={};this.B=new a_;this.aa=!1;this.ra=eN(cN(),41351021);this.Y=w(this.zx,this);this.za=null;var b=0;E(a,function(a){b+=RV(a)});
E(a,function(b,d){var e=b.o;e.A=a.length;var f=d+1;e.g=f;e.B=f})},h_=function(a){if(e_(a)){if(a.H.isSkippable()&&!KN())throw uN(EY,null,"skippablevideo");
if(null!=YV(a.H)&&f_(a,a.H.g))throw uN(EY,null,"vpaidWithSkippabilityOverride");return a.H}throw uN(g_,null,"An ad has not been selected.\n"+Error().stack);},j_=function(a,b){a.H=b;
if(W.g&&i_(a)){var c=WQ();aR(c,a.Y);b&&c.g.set(b.J,a.Y)}},f_=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:f_(a,b.g)},e_=function(a){return null!==a.H},bia=function(a){return Ph(a.ads,function(a){return Ph(k_(a),function(a){return!z(A(iR(a.g)))})},a)},k_=function(a){var b=a.g;
if(b&&b.P&&(b=b.B,!lb(b)&&b[0]instanceof aV))return b[0].K;b=a.b;return l_(a)?b.K:[]},l_=function(a){a=a.b;
return null!=a&&a instanceof aV},m_=function(a){null==a.F&&(a.F=new ym(a));
return a.F},o_=function(a,b){if(null!=a.D){Gm(a.ba);
Em(a.ba,a.D,"companion_display_error",function(){});
var c=iW(a.D,b);null!=c&&(a.ba.N(c,"companion_impression",a.GA),a.ba.N(c,"companion_click",a.rm),W.b()&&(c=new c_(b,c),a.ha("companionInitialized",c)));if(!a.D.oo())throw uN(n_);}},cia=function(a){E(a.ads,function(a){if(a=a.getExtension("sodar")){var c=a.o,d=a.A,e=a.B,f=a.g;
a="//tpc.googlesyndication.com/sodar/"+(0,window.encodeURIComponent)(c)+".js";var k="//pagead2.googlesyndication.com/bg/"+(0,window.encodeURIComponent)(e)+".js";if(c&&d&&e&&f){var e=window,c=e.document,m={};m._scs_=d;m._bgu_=k;m._bgp_=f;m._li_="v_h.0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(m);d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src=a;c.getElementsByTagName("head")[0].appendChild(d)}}})},p_=function(a,b){a.B.b(new mc(b))},q_=function(a,
b){a.B.b(new mc(b));
a.ha(b)},r_=function(a){if(!a.aa)throw uN(g_,null,"Ads manager is not correctly configured.");
},s_=function(a){do if(gV(a,NV))return!1;
while(a=a.g);return!0},t_=function(a,b){for(var c=b;null!=c;)E(c.D.Ha(),a.OD,a),c=c.g},dia=function(a){if(!ea(a))throw uN(g_,null,"adsRenderingSettings.mimeTypes should be an array");
var b=sb(Xb(u_),Xb(rU));E(a,function(a){if(!kb(b,a))throw uN(g_,null,"Invalid or unsuppoted mime type "+a);})},i_=function(a){return lb(a.ads)?!1:(a=a.ads[0].A)?a.Gb("video_metadata_provider_with_query_id"):!1},v_=function(a){d_.call(this,a);
this.G=null;this.ea=M("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.M=!1;this.X=[]},w_=function(a,b){var c=rfa(b);
E(c,function(a){bU(this.B.o,"click",a)},a)},x_=function(a,b){var c=VW(b,h_(a)),d=rV(h_(a));
qN(d,c)},y_=function(a){v_.call(this,a);
this.P=!1;this.C=this.K=null;this.Z=!1},z_=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.B,b=b.C;
a={text:null!=c?c:a.ca.o,url:null!=b?b:a.ca.B};null==a.text&&(a.text=DR("Qu\u1ea3ng c\u00e1o b\u1edfi Google"));return a},A_=function(a){return e_(a)&&TV(h_(a))},eia=function(a){var b=B_(a);
b.rba=a.M;RN.getInstance().b(37,b)},B_=function(a){var b=[],c=[];
E(a.K,function(a){b.push(a.Ta()+"x"+a.getHeight());c.push(a.nc())},a);
var d={};d.pid=oW.getInstance().b;d.fsmode=null!=a.C;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.I;return d},C_=function(a,b){if(a.C){a.Ii(new mc("close"));
var c={};c.pid=oW.getInstance().b;c.evt=b;RN.getInstance().b(35,c)}},fia=function(a,b){function c(a,b){for(var c in a)for(var k=c.toLowerCase(),m=0;m<D_.length;m++){var l=D_[m];
if(k==l)throw Error('Cannot override "'+l+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")},E_=function(a,b){AE.call(this,b);
this.H=a;this.A=new ym(this);this.g=new sg},F_=function(a){return a.fa()?a.fa().firstChild:null},G_=function(a,b){mc.call(this,"vpaidEvent");
this.b=a;this.data=b},H_=function(){I.call(this);
this.b=null;this.A=-1;this.g=Xa()},I_=function(a){d_.call(this,a);
this.C=null;this.K=!0;this.ea=this.ca=this.G=!1;this.U=this.X=0;this.g=null;this.P=0;this.M=1;this.Z=-1},J_=function(a){var b=a.Vb("getAdLinear");
return ga(b)?b:a.K},K_=function(a){var b;
b=a.Vb("getAdRemainingTime");b=ha(b)?b:-2;if(!ha(b)||0>b)b=30;ae(a.Z);a.Z=$d(a.stop,1E3*b,a)},M_=function(a,b){var c=uN(L_,b,void 0),d=VW(c,h_(a)),e=rV(h_(a));
qN(e,d);L_.message=c.b;wN(a,L_,b);a.stop()},N_=function(a){SM.call(this,"adMetadata",a)},gia=function(a,b,c){var d=r,e=new N("https://www.googleapis.com/youtube/v3/videos");
hh(e,"id",a);hh(e,"part","snippet,status");hh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=w(b,c),d=w(d,c));O_(new pn,e,b,d)},hia=function(a,b,c){var d=r,e=new N("https://www.googleapis.com/youtube/v3/channels");
hh(e,"id",a);hh(e,"part","snippet,statistics");hh(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount");null!=c&&(b=w(b,c),d=w(d,c));O_(new pn,e,b,d)},O_=function(a,b,c,d){hh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");
qn(a,2E3);var e=new ym(a);Em(e,a,"success",function(a){a=a.target;var b;b=a.b?Vf(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});
Em(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error(Hm(a.g)));d(b);e.dispose();a.dispose()});
a.send(b)},P_=function(a){if(a&&a.items&&a.items.length){a=a.items[0];
this.channelId=a.id;var b=a.snippet;b&&(this.authorName=b.title,this.b=Zb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}},Q_=function(a){if(a&&a.items&&a.items.length){a=a.items[0];
this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}},T_=function(a,b,c,d,e){EZ.call(this,d);
this.C=a;this.J=b;this.I=e;this.D=new ym(this);G(this,this.D);this.o=new dR;G(this,this.o);(a=R_(c))?(c=a(c),b.appendChild(c),b=lf("iv-endcap-action",c),this.D.N(this.o,"click",this.F),eR(this.o,b),b=c):b=null;this.b=b?lf("iv-endcap-countdown-inner",b):null;null!=this.b&&Gq(this.b,"stroke-dasharray","0 "+S_)},R_=function(a){switch(a.Kb()){case 1:return iia;
case 4:return jia}return null},iia=function(a){var b=SU(a);
a=0<a.A()?a.g(0):null;return xR(vU,{headline:UU(b),description:VU(b),image:WU(XU(b)),action:a?jX(a):"",target:a?YU(a)||iX(a):""})},jia=function(a){var b=a.B();
a=0<a.A()?a.g(0):null;var c=b.b.headline,d=b.b.description;return xR(vU,{headline:null!=c?c:"",description:null!=d?d:"",image:WU(KV(b)),action:a?jX(a):"",target:a?YU(a)||iX(a):""})},kia=function(){return DR('<div class="videoAdInterstitial"><p>Video c\u1ee7a b\u1ea1n s\u1ebd ph\u00e1t sau qu\u1ea3ng c\u00e1o n\u00e0y.</p></div>')},U_=function(){F.call(this);
this.A=xR(kia);this.b=0},V_=function(a){a.b&&(ae(a.b),a.g(r))},W_=function(a){mc.call(this,a)},X_=function(a){I.call(this);
this.o=a;this.J=new sg;this.G=-1;this.H=this.K=!1;this.D=""},Y_=function(a){this.b=!1;
this.mute=a.Uf();this.volume=a.Ld()},Z_=function(a){null!=a.g&&a.g.dispose();
null!=a.b&&a.b.Xf();null!=a.C&&a.C.dispose();a.C=null;null!=a.F&&a.F.dispose();a.F=null;a.J.clear();a.G=-1;a.D="";a.K=!1;a.H=!1},$_=function(a,b,c,d){if(!c||null==a.J.get(b)){d&&!a.H&&(b="error");
a.J.set(b,!0);a:{c=b;if(a.A&&a.A.b.o){if("click"==c)break a;"videoLearnMoreClicked"==c&&a.o.b(new mc("click"))}d=lia[c]||null;null!=d&&null!=a.b&&a.b.Em(d);a.o.b(new mc(c))}a.V(b)}},a0=function(a){0>a.G||a.K||!a.b.Qg(a.G)&&!a.b.gf()||!a.H||(a.K=!0,$_(a,"engagedview",!0,!0),a.V(new W_("viewCount")))},b0=function(a){a0(a);
if(W.b()){var b=a.o;if(!(ug(b.A,"skip")||0>b.B))for(var c=$T(b.o,"progress"),d=b.B;d<c.length;d++){var e=c[d];b.B=d+1;nN(e.b,b.g)}}$_(a,"complete",!0,!0)},c0=function(a){d_.call(this,a);
this.C=this.g=null;this.P=!1;this.K=new X_(this.B);this.ca=this.ka=this.ea=this.U=!1;this.ia=this.M=1;this.G=null;this.Ca=new U_;this.ga=new tk;this.Fa=!1;this.X=[];this.Z=!1;this.wa=!zN()&&eN(cN(),9416126)},d0=function(a,b){var c=$d(function(){this.ga.remove(c);
b.call(this)},0,a);
vk(a.ga,c)},e0=function(a){Nb(a.g);
a.g=null;Nb(a.K);Nb(a.B);a.ea=!1;a.ca=!1},f0=function(a){a.rh();
e_(a)?a.start():a.stop()},nia=function(a){if(!e_(a))return!1;
var b=a.A.Hd();if(null==b)return!1;var c=h_(a),d;if(d=c.G?c.G.b.eh()?c.G.b.Pl():c.G.Wb():"")mia(a,b,d);else if(OV(c)){d=XV(c);var e=!c.A.Gb("ad_video_end_disable_auto_open_drawer"),c=c.K[0];ia(R_(c))&&(a.C=new T_(a.b,b,c,d,e),m_(a).N(a.C,"click",w(a.Ko,a,null)),a.g&&SZ(a.g,!0),a.A.yd())}null!=a.C&&(m_(a).N(a.C,"timeUpdate",a.pr),m_(a).N(a.C,"end",a.hx),a.C.start(),q_(a,"video_card_endcap_impression"));return null!=a.C},mia=function(a,b,c){RN.getInstance().b(34,{evt:"start"},!0);
var d=M("div");J(d,"controls");var e=M("div");J(e,"adDisplay");J(e,"endslate");e.innerHTML=c;(c=Ef(e)[0])&&Gq(c,{margin:"0 auto"});E(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&m_(this).N(a,"click",w(this.Ko,this,b))},a);
d.appendChild(e);e=new JW;$fa(e,XV(h_(a)));e.A=0;e.g=0;a.C=new $Z(d,e,1,{},!0);m_(a).N(a.C,"skip",a.Lo);b.appendChild(a.C.b);a.A.yd();a.g&&(Wha(a.g),QZ(a.g))},h0=function(a,b){g0(a);
null!=a.b&&a.b.Ep();a.ha("complete");q_(a,b);p_(a,"instreamAdComplete");f0(a)},g0=function(a){a.C&&(a.C.dispose(),a.C=null);
a.g&&SZ(a.g,!1);a.P=!1},i0=function(a){var b=e_(a)?h_(a).C:null;
if(b){var c;a:{if(e_(a)&&(c=aW(a.H),null!=c))break a;c=""}var d;a:{if(e_(a)&&(d=bW(a.H),null!=d))break a;d=""}h_(a);(c||d)&&a.b.Fl(b,c||null,d||null)}},j0=function(a,b,c,d){b=$T(b.b,c);
lb(b)||(a[d]=b[0].b)},k0=function(a,b,c){b=c.getExtension(b);
null!=b&&(j0(a,b,"annotation_click","cta_annotation_clicked"),j0(a,b,"annotation_close","cta_annotation_closed"),j0(a,b,"annotation_start","cta_annotation_shown"))},oia=function(a,b){var c=gV(b,NV)&&!b.U?xV(b):null,d=b.isSkippable()&&!jV(b),e=null!=a.g&&a.g.b.A,f=b.A,k=kR(a.vp());
if(!k){var m=b.getExtension("AdSense");null!=m&&(k=m.isPharma())}var m=lV(b),l;a.g?(l={},k0(l,"AdSense",b),k0(l,"dart",b),k0(l,"DFP",b)):l=null;return new ES(m,c,0,l,e,d,a.o.ne,f?f.tj:!1,!1,BV(b),a.o.gg,k,f?f.Gb("legacy_autoplay_flag"):!1)},pia=function(a){var b=0,c=0;
E(a.ads,function(a){!l_(a)||W.b()&&0!=c||(c++,b+=RV(a))},a);
var d=1;E(a.ads,function(a){var b=a.o;b.A=c;l_(a)&&(b.g=d,b.B=d,d++)},a)},l0=function(a){var b=a.g;
return b&&b.P&&(b=b.B,!lb(b)&&b[0]instanceof aV)?b[0].td():vV(a)},n0=function(a,b){if(!l_(b))throw uN(m0);
var c=b.b;if(!z(A(null)))return new $U("","","",0,0,0,0,0,null,"");var d=k_(b),e=a.b.Er(d,a.o.bitrate,a.o.$g||[],null!=b&&(W.b()||a.A.bh()||a.A.Bl()||zN()));qia(d,a.o.bitrate,e,qV(b));if(null!=e)return c.ea=e;try{ria(a,b)}catch(f){}throw uN(sia);},ria=function(a,b){if(RN.getInstance().g){var c=new tk,d=!1;
E(k_(b),function(a){vk(c,a.b);"VPAID"==a.A&&(d=!0)},a);
var e=a.b.ml(),e={aid:xV(b),mt:c.Ha().join(","),smt:e.join(","),hvp:d,st:CV(b).join(",")};RN.getInstance().b(28,e)}},qia=function(a,b,c,d){if(!W.b())try{var e=zi(a,function(a){return a.ud}),f=zi(a,function(a){return a.b});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.ud;a.selmt=null===c?"":c.b;a.ic=!1;a.nat=!1;a.iyh=jN(c.g)?"1":"0";a.as=d;RN.getInstance().b(22,a)}catch(k){}},o0=function(a,b){b in a.X||(a.X.push(b),a.ha(b))},tia=function(a){var b=h_(a),c={};
c.pubbr=a.o.bitrate;c.ic=!1;c.nat=!1;if(null!=b){a=k_(b);var d=b.b,d=d?d.ea:null,e=zi(a,function(a){return a.ud});
a=zi(a,function(a){return a.b});
c.brs=e.join(",");c.mts=a.join(",");c.as=qV(b);null===d?(c.selbr=-1,c.selmt="",c.iyh="0",c.murl=""):(c.selbr=d.ud,c.selmt=d.b,c.iyh=jN(d.g)?"1":"0",c.murl=d.g)}RN.getInstance().b(45,c)},q0=function(a,b,c){b.fb();
p0(a,c);a.rh();e_(a)?(vN(uN,a,b,c,void 0),a.start()):(wN(a,b,c),a.stop())},p0=function(a,b){var c=uN(r0,b),c=VW(c,h_(a),a.b),d=rV(h_(a));
qN(d,c)},s0=function(a){if(W.g){var b=l0(h_(a));
null!=b&&mN(b)}a.ha("click")},t0=function(a,b){Vb(uia,b)&&Am(m_(a),a.K,b,a.lr,a)},u0=function(a){if(!a.Z){var b=h_(a),c=b.C;
if($V(b)&&!W.b()&&!a.A.bh()&&c){var b=a.b.getCurrentTime(),d=a.b.rd(),e=new N("//s.youtube.com/s");hh(e,"ns","yt");hh(e,"el","adunit");hh(e,"docid",c);hh(e,"eurl",window.document.URL);hh(e,"len",d.toFixed(2));hh(e,"tv","1");hh(e,"ps","trueview-instream");hh(e,"st",b.toFixed(2));hh(e,"et",b.toFixed(2));hh(e,"rt",b.toFixed(2));nN(e.toString());a.Z=!0}}},via=function(a){var b=h_(a).ba;
if(null!=b){var b=b.videoId,c=a.o.Af;if(z(A(b)))b=null;else{var c=new N((null!=c?c:"//www.youtube.com/")+"watch"),d=c.b;d.set("v",b);bh(c,d);c.G="action=share";b=c.toString()}null!=b&&(mN(b),a.Mr())}},wia=function(a){a=v0(a)||w0(a);
null!=a&&oN(a,"sharebuttondisplayed")},v0=function(a){a=h_(a).getExtension("AdSense");
return null!=a?new N(a.A):null},w0=function(a){if(a=h_(a).b)if(a=pU(a,"start"),!lb(a))return new N(a[0].b);
return null},xia=function(a){var b=h_(a),c=b.ba;
null!=c&&(b=jR(c.videoId,null!=VV(b),a.o.Af),null!==b&&(a.b.pause(),mN(b)))},x0=function(a){d0(a,function(){this.ha("skip");
f0(this)})},y0=function(a,b){gia(b,function(a){a=new Q_(a);
e_(this)&&h_(this).C==a.videoId&&(yia(this,a),!z(A(a.channelId))&&a.isListed&&hia(a.channelId,function(a){a=new P_(a);var b=h_(this);if(null!=this.g){var c=this.g,k=a.authorName;c.b.Y=!z(A(k));c.b.authorName=k;null!=c.C&&Lf(c.C,(new JR("b\u1edfi "+c.b.authorName,void 0)).Wb());OZ(c);c=this.g;k=a.b;c.b.ba=!z(A(k));if(null!=c.I){var m=window.document.createElement("img");m.setAttribute("src",k);J(m,"videoAdUiAuthorIconImage");c.I.appendChild(m);null!=c.D&&J(c.D,"videoAdUiTitleWithAuthorIcon");null!=
c.C&&J(c.C,"videoAdUiAuthorNameWithAuthorIcon")}OZ(c)}e_(this)&&(h_(this).X=a,this.ha("youTubeChannelMetadata"));if(c=this.g)c=h_(this),k=c.ba,c=W.b()&&lb(tV(c))&&null!=c.X&&null!=k&&k.isListed;if(c){m_(this).N(window,"message",this.Ix);var c=h_(this),k=c.X.channelId,m=lV(c),l=this.o.Rf,p=this.o.Af,p=new N((null!=p?p:"//www.youtube.com/")+"ad_companion"),t=p.b;t.set("adformat",m);t.set("p",k);t.set("render","video_wall_companion");l&&t.set("content",l);k=new SX("1",new bf(300,250),"IFrame",null,p.toString());
k.H=c;k.B=!0;b.F=[new tU(k,[],null,!0)];o_(this,b)}!OV(b)&&b.A.Gb("enable_website_actions_info_cards")&&Bfa(b,a.b)},this))},a)},yia=function(a,b){if(null!=a.g&&b.isListed){var c=a.g,d=b.title;
c.b.F=!z(A(d));c.b.title=d;z0.test(ke(c.b.title,void 0));null!=c.D&&Lf(c.D,c.b.title);OZ(c);c=a.g;null!=c.ga?Lf(c.ga,"Chia s\u1ebb"):null!=c.H&&Lf(c.H,"Chia s\u1ebb")}e_(a)&&(h_(a).ba=b,a.ha("youTubeVideoMetadata"))},A0=function(a){var b=h_(a).X;
if(null!=b){var c;c=a.o.Af;b=A(b.channelId);c=z(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(va(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.b.pause(),mN(c))}},zia=function(a){var b=oW.getInstance();
if(b.g){var c={};if(null!=a.G){var d=(new N(a.G.g)).g;if(null!=d){var d=bb(d,".",10),e=d.length;2<=e&&(c.cd1=d[e-2]+"."+d[e-1])}c.cm1=a.G.pe;c.cd3=a.G.b;c.cd5=b.b;c.cm2=a.o.bitrate;c.cd2=jN(a.G.g)?"1":"0";d=a.G.Ta();e=a.G.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.b&&(d=a.b.sd(),c.cd4=d.width+"x"+d.height);a=a.G.D;z(A(a))||(c.cd7=a)}b.end("bt",c)}},B0=function(a,b){mc.call(this,"vpaidEvent");
this.sessionId=b},C0=function(a){d_.call(this,a);
this.Ca=this.wa=this.ga=!1;this.Z=[];this.P=Xa();this.g=null;this.C=!0;this.ea=-1;this.ca=new Yd(500);this.ia=this.X=-1;this.U=1;this.ka=this.Fa="";this.M=!1;this.K=2==W.C},E0=function(a){var b=uV(h_(a)),c=A(vV(h_(a))),d=YV(h_(a)),c={desiredBitrate:a.o.bitrate,
creativeData:b,viewMode:a.I,clickThroughUrl:c,adUrl:d};YV(h_(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.o.surveyCreativeData&&(c.creativeData=a.o.surveyCreativeData);D0(a,"initAd",c);E(a.Z,function(a){D0(this,a.type,a.params)},a);
a.ga=!0;a.Z=[]},F0=function(a,b,c){c=c||null;
a.ga?D0(a,b,c):a.Z.push({type:b,params:c})},D0=function(a,b,c){c=c||{};
c.session=a.P;c.type=b;a.K?window.parent.postMessage(Zf(c),"*"):null!=a.G.contentWindow&&a.G.contentWindow.postMessage(Zf(c),"*")},Bia=function(a,b){var c={};
b=Sa(b);var d;b.length?d=b.split(/\s+/):d=[];E(d,function(a){c[a]=!0});
Pb(Aia,function(a,b){h_(this).A.Gb(b)&&(c[a]=!0)},a);
return Yb(c).join(" ")},G0=function(a,b,c,d){d=uN(b,c,d);
var e=VW(d,h_(a)),f=rV(h_(a));qN(f,e);b.message=d.b;wN(a,b,c)},I0=function(a,b){if(v(b.type))switch(b.type){case "friendlyReady":E0(a);
break;case "videoCall":switch(b.func){case "load":case "play":a.A.ah();a.ka!=b.src&&(a.ka=b.src,a.g.load(b.src,b.mimetype));a.g.play();break;case "pause":a.g.pause()}break;case "returnDuration":a.X=b.duration;break;case "returnRemainingTime":a.ea=b.remainingTime;break;case "AdClickThru":p_(a,"click");a.ha("click");break;case "AdDurationChange":a.X=b.duration;a.ea=b.remainingTime;h_(a).b.og(a.X);a.ha("durationChange");break;case "AdError":G0(a,L_,Error(b.message));a.stop();break;case "AdExpandedChange":a.ha("expandedChanged");
break;case "AdImpression":var c=h_(a);lb(tV(c))||o_(a,c);a.ha("impression");break;case "AdLinearChange":c=b.isLinear;!a.C&&c?(a.ha("contentPauseRequested"),F0(a,"becameLinear")):!c&&a.C&&(a.ha("contentResumeRequested"),F0(a,"becameNonlinear"),F0(a,"getAdRemainingTime"),F0(a,"getAdDuration"));a.C=c;var d=h_(a);d.ea=!0;d.Sa=c;a.ha("linearChanged");break;case "AdLoaded":ae(a.ia);a.wa=!0;d=b.companions;c=h_(a);lb(tV(c))&&(d=$X(d,c.b.b),lb(d)||dV(c,d));H0(a);q_(a,"loaded");break;case "AdPaused":a.M=!0;
q_(a,"pause");break;case "AdPlaying":a.M=!1;q_(a,"resume");break;case "AdRemainingTimeChange":a.ea=b.remainingTime;break;case "AdSkipped":q_(a,"skip");a.stop();break;case "AdSkippableStateChange":q_(a,"skippableStateChanged");break;case "AdStarted":p_(a,"impression");p_(a,"creativeview");a.ha("start");break;case "AdStopped":p_(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.C?p_(a,"acceptinvitationlinear"):p_(a,"acceptinvitation");break;case "AdUserMinimize":p_(a,"collapse");break;case "AdUserClose":q_(a,
"userClose");break;case "AdVideoComplete":q_(a,"complete");break;case "AdVideoFirstQuartile":q_(a,"firstquartile");break;case "AdVideoMidpoint":q_(a,"midpoint");break;case "AdVideoStart":p_(a,"start");break;case "AdVideoThirdQuartile":q_(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.U&&a.ha("volumeChange");0==c&&0!=a.U?(p_(a,"mute"),a.ha("mute")):0==a.U&&0!=c&&p_(a,"unmute");a.U=c;a.g.setVolume(c);break;case "Ping":nN(b.url)}},J0=function(a,b){D0(a,"wrapperCall",{messageType:b})},
H0=function(a){a.wa&&a.Ca&&(F0(a,"startAd"),a.ca.start(),a.C||(F0(a,"becameNonlinear"),F0(a,"getAdRemainingTime")),F0(a,"getAdDuration"))},K0=function(a,b){this.b=a;
this.g=b},L0=function(a,b,c,d,e,f,k){I.call(this);
this.g=this.D=0;this.I=a;this.Yb=b;this.ga=c;this.B=null;this.J=d;this.Y=f;this.U=W.A;this.G=this.H=this.C=this.b=null;this.aa=this.Z=-1;this.ba="normal";this.M=null;this.o=e;this.A=[];this.ea=this.P=this.ca=this.K=!1;this.X=k;Cia(this)},M0=function(a,b,c,d){a.Z=b;
a.aa=c;null!=d&&(a.ba=d);null!=a.b&&a.b.qd(b,c,d)},Cia=function(a){E(a.I,function(a){a=new N(a.A.b);
var c=a.b.get("max_ad_duration");n(c)||a.b.get("pmxd")})},N0=function(a){return a.D<a.I.length&&null!=a.I[a.D]},Dia=function(a,b){var c;
if(c=W.b()&&!lb(b)&&0==a.Yb)c=b[0],c=null!=c&&null==YV(c)&&QV(c,"nonlinear");return c?(c=AV(b[0]),"ADSENSE"==(0<c.length?c.pop():qV(b[0])).toUpperCase()):!1},T0=function(a){!N0(a)||2<=a.A.length-a.g?a.ca||(P0(a),Q0(a)&&R0(a,a.g)&&S0(a,a.g),a.ca=!0,a.V("adBreakInitialized")):O0(a)},O0=function(a){var b=a.I[a.D];
Am(a.F,a.J,"adsLoaderSdkAdLoaded",a.qq,a);W.A="on_master_ad";Oha(a.J,b.A,b)},P0=function(a){null==a.Yb||Ph(a.A,function(a){return!a.g})||(a.A=ge(a.A,function(a){return!(a.g&&!a.A)}))},R0=function(a,b){var c;
b<a.A.length?(c=a.A[b],lb(c.b)?c=!1:(c=c.b[0],c=null!=c?!yT(fV(c),"rm"):!1)):c=!1;return c},Y0=function(a){if(R0(a,a.g)){var b=a.A[a.g];
try{a.P?U0(a,a.b):Q0(a)?(V0(a),a.b=a.H,a.C=a.G,a.H=null,a.G=null,a.o.es()):(V0(a),a.C=new ym(a),a.b=W0(a,b,a.C),U0(a,a.b));null!=a.B&&(a.B.dispose(),a.B=null);if(X0(a.b)){var c=a.wb();if(null==c||!TV(c)){var d=h_(a.b).b;if(null!==d){var e=d.ra;0>=e&&!a.Y.qo||(0>=e&&(e=15),a.B=new Yd(1E3*e),Fm(a.C,a.B,"tick",a.WB,a))}}}if(X0(a.b))a.V("contentResumeRequested"),a.o.yd(),a.b.start(),null!=a.B&&a.B.start();else{var f=a.b;if(null!=f&&f instanceof c0)a.o.ah(),a.b.start();else{var k=a.b;if(null!=k&&k instanceof
C0)a.o.yd(),a.b.tb()?a.o.ah():a.V("contentResumeRequested"),a.b.start();else{var m=a.b;if(null!=m&&m instanceof I_)a.o.yd(),a.b.tb()||a.V("contentResumeRequested"),a.b.start();else throw Error("Unknown ads manager type.");}}}Q0(a)&&R0(a,a.g+1)&&S0(a,a.g+1)}catch(l){a.g++,Y0(a)}N0(a)&&O0(a)}else a.V("contentResumeRequested"),Z0(a)},U0=function(a,b){if(null===b)throw Error("Ads manager must be constructed before initialization");
b.init(a.ba);null!=a.M&&b.setVolume(a.M)},W0=function(a,b,c){b=uZ(b.b);
var d=new K0(a.o,Q0(a));b.D=a.X;Am(c,b,$0,a.rq,a);Am(c,b,"companionBackfill",a.rq,a);Am(c,b,"adError",a.Uz,a);Am(c,b,"allAdsCompleted",r,a);Am(c,b,"contentPauseRequested",a.Jy,a);Am(c,b,"contentResumeRequested",a.Ky,a);Am(c,b,"userClose",a.Ly,a);Am(c,b,"autoClose",a.Iy,a);b.ld(d,{currentTime:0},a.Y);b.qd(a.Z,a.aa,a.ba);return b},V0=function(a){a.o.da();
null!=a.B&&(a.B.dispose(),a.B=null);null!=a.C&&(a.C.dispose(),a.C=null);null!=a.b&&(a.b.destroy(),a.b=null)},a1=function(a){null!=a.G&&(a.G.dispose(),a.G=null);
null!=a.H&&(a.H.destroy(),a.H=null)},X0=function(a){return null!=a&&a instanceof v_},Z0=function(a){a.K=!1;
a.V("allAdsCompleted")},Eia=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"companionBackfill"==b||"firstquartile"==b){var d=0,e=0;
E(a.A,function(a,b){var f=a.b;jb(f,c);d+=f.length;b<this.g&&(e+=f.length)},a);
b=c.o;var f=e+b.B;b.A=d+(a.I.length-a.D);b.g=f;b.o=a.ga;b.b=a.Yb}},S0=function(a,b){var c=a.A[b];
a.G=new ym(a);a.H=W0(a,c,a.G);U0(a,a.H)},Q0=function(a){return null===a.o?!1:LN(a.o)&&!1},b1=function(a){mc.call(this,a);
this.b=null},c1=function(a,b,c){I.call(this);
this.b=a;this.A=[];this.C=null!=c&&ga(c.backlog)?c.backlog:!1;this.F=null!=c&&ha(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.o=null;this.g=!1;Fia(this,b)},Gia=function(a){this.b=a;
this.A=this.g=!1},d1=function(a){a.b.start();
a.g=!0},e1=function(a){null!=a.o&&(a.o.dispose(),a.o=null);
a.b.stop();a.g=!1},Hia=function(a){if(a.g){var b=fb(a.A,function(a){return-1==a.b},a);
null!=b&&f1(a,!0,b)}},Fia=function(a,b){E(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);
Hb(this.A,new Gia(a),function(a,b){return zb(a.b,b.b)})},a)},Iia=function(a,b){for(var c=[],d=0;d<a.A.length;d++){var e=a.A[d];
-1!=e.b&&e.b<=b&&ob(c,e)}return c},Jia=function(a,b){for(var c=0;c<a.A.length;c++){var d=a.A[c];
if(-1!=d.b&&b>=d.b-a.F&&b<d.b&&!a.A[c].g)return d}return null},g1=function(a){a.V(new b1("contentTrackingError"))},f1=function(a,b,c){if(null!=c){if(!c.g){var d=new b1("requestAds");
d.b=c.b;a.V(d);c.g=!0}b&&!c.A&&(b=new b1("playAds"),b.b=c.b,a.V(b),c.A=!0)}},h1=function(a,b){F.call(this);
this.o=a;this.b=-1;this.A=b},i1=function(a,b){if(0==b.Yb||0>=a.A||0>=a.b)return!1;
var c=D()/1E3,d=b.Yb-a.o.currentTime;0<d&&(c+=d);return c-a.b<=a.A},tZ=function(a,b){d_.call(this,[]);
this.M=a;this.J=new sg;this.C=this.g=null;this.U=new go;this.G=null;this.X=b;this.ka=this.Z=!1;this.K=null;this.ia=0;this.ca=this.ea=-1;this.ga=null;this.wa=0;this.P=!1},Lia=function(a,b){var c=1;
a.ia=0;E(b,function(a){if((0,window.isNaN)(a))throw tN(FW,null,"timeOffset",String(a));if(-1!=a&&-1>=a){var b=this.M;if((0,window.isNaN)(a)||!ha(a))throw Error("Incorrect time offset.");ug(b.b,a)&&b.b.remove(a)}else if(b=ha(a)&&!(0,window.isNaN)(a)?this.M.b.get(a,[]):[],!lb(b)){this.ia+=b.length;var f;f=0==a||-1==a?a:c++;b=new L0(b,a,f,this.X,this.A,this.o,this.D);if(ug(this.J,a))throw tN(Kia,null,"Multiple ad breaks cannot share same ad play time.");this.J.set(a,b)}},a)},Mia=function(a,b){a.K=db(b);
Ph(b,function(a){if(-1==a)return this.K=a,!0;this.K=this.K<a?a:this.K;return!1},a)},l1=function(a,b){a.P=!1;
a.Ef(b);0==b.Yb?a.Oi():(-1==b.Yb?(j1(a)||!W.b()&&a.Z)&&k1(a):d1(a.C),a.G=null)},m1=function(a){null!=a.F&&(a.F.dispose(),a.F=null);
a.Z=!1;null!=a.C&&e1(a.C)},n1=function(a){if(null==a.G){var b=jo(a.U);
if(null!=b){a.G=b;var c=a.J.get(a.G.b);if(null!=c)if(b=b.type,"requestAds"!=b&&"playAds"!=b)a.G=null,n1(a);else if(null!=a.ga&&i1(a.ga,c))a.G=null,n1(a);else if("requestAds"==b)a.P?(a.U.isEmpty()||"playAds"!=ko(a.U).type||jo(a.U),l1(a,c)):(0!=c.Yb||null!==a.A&&LN(a.A),b=m_(a),Am(b,c,$0,a.V,a),Am(b,c,"adError",a.So,a),Am(b,c,"allAdsCompleted",a.lq,a),Am(b,c,"contentPauseRequested",a.up,a),Am(b,c,"contentResumeRequested",a.Oi,a),Am(b,c,"userClose",a.Oy,a),Am(b,c,"autoClose",a.Ny,a),Am(b,c,"adBreakInitialized",
a.mq,a),c.init(a.ea,a.ca,a.I));else{if("playAds"==b)if(a.P)l1(a,c);else if(null!=a.g&&a.g.Ya()&&a.Ef(a.g),a.g=c,a.g.setVolume(a.volume),M0(a.g,a.ea,a.ca,a.I),a.g.P){c=a.g;if(c.g<c.A.length){b=c.A[c.g];V0(c);try{c.C=new ym(c),c.b=W0(c,b,c.C)}catch(d){c.g++,Y0(c)}}a.ha("contentResumeRequested");a.C.getCurrentTime()>=a.wa?null!=a.g&&a.g.start():a.G=null}else a.g.start()}else a.G=null,n1(a)}}},k1=function(a){if(!a.ka){a.ka=!0;
a.X.b=!0;try{RN.getInstance().b(44,{cmpl:!0})}catch(b){}a.ha("allAdsCompleted");-1==a.K&&o1(a)}},o1=function(a){eN(cN(),41351033)||$S.clear();
null!=a.D&&(a=a.D.cf(),null!=a&&eT(a,$S.b))},j1=function(a){return 0==a.J.Ha().length},Nia=function(a){return null!=a.g?a.g:null!=a.G?a.J.get(a.G.b):null},Oia=function(){},uZ=function(a){if(lb(a))throw Error("Ads manager creation failure, no ads.");
var b=a[0],c=iV(b)&&W.b(),c=0!=W.C||c;switch(null!=YV(b)&&c?"vpaid":uT&&null!=ZV(b)&&0!=W.C?"flash_vpaid":gV(b,NV)&&null==YV(b)&&QV(b,"nonlinear")?"overlay":QV(b,"linear")?"video":QV(b,"nonlinear")&&null==YV(b)?"overlay":null){case "overlay":return gV(b,NV)?new y_(a):new v_(a);case "video":return new c0(a);case "vpaid":return new C0(a);case "flash_vpaid":return new I_(a)}throw Error("Ads manager creation failure, failed to determine ad type.");},p1=function(a){I.call(this);
this.g=a;a=new eW(new XS);this.b=new qZ(new Oia,a,$S);this.b.N("adsManagerLoaded",this.V,!1,this);this.b.N("adError",this.V,!1,this);this.b.N("adLoadError",this.V,!1,this)},q1=function(a,b,c){tca();
var d="",e=mO(),f=e.b,e=e.g;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.Hc=MS(b.b,a.g.A);b.Lm=a.g.F;Nha(a.b,b,c)},r1=function(a,b){xL.call(this,a,b)},s1=function(a){this.app=a;
gq.call(this,a.Oa)},t1=function(a,b,c){this.T=a;
this.b=b||"";this.A=c||null;this.o=!1},u1=function(a,b){var c=a.T;
if(c.Fa&&("detailpage"==c.ua||"leanback"==c.ua||"embedded"==c.ua&&(c.J&&c.Ua||c.experiments.$("html5_playlist_preload")))&&!a.o){a.o=!0;Ki("TIMING_ACTION")||Ji("TIMING_ACTION",a.T.csiPageType);a.T.za&&Ji("CSI_SERVICE_NAME",a.T.za);if(a.A){var c=a.A.o,d;for(d in c)Qv(d,c[d],a.b);d=a.A.A;for(var e in d)Vv(e,d[e],a.b);e=a.A;e.o={};e.A={}}if(e=Oh("visibilityState",window.document)){d=-1;switch(e){case "hidden":d=0;break;case "visible":d=1;break;case "prerender":d=2;break;case "unloaded":d=3}Vv("yt_vis",
d,a.b)}Vv("yt_pt","html5",a.b);b&&!Rv("pbs",a.b)&&a.g("pbs",b);e=a.T;("detailpage"!=e.ua||"blazer"==e.b)&&Rv("_start",a.b)&&Pv(a.b)}},w1=function(a,b){this.b=a;
this.g=ha(b)?b:null;if(kb(v1,this.b)){if(!ha(this.g)||0>this.g)throw Error("Must have valid offset");}else if(null!==this.g)throw Error("Must not have offset");},x1=function(a){var b=a.g;
if(null!==b)return b;switch(a.b){case 1:return 0;case 3:return-1;default:return-100}},Pia=function(a,b){var c=a.b,d=b.b;
if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.g,f=b.g;return e!=f?null===e?1:null===f?-1:e-f:c-d},z1=function(a,b){return"9t_D9IIh_ZI"==b.ca||y1(a,["9418752",
"9418753"])},A1=function(a,b){return kb(a.experiments.experimentIds,b)},y1=function(a,b){return Ph(b,qa(kb,a.experiments.experimentIds))},B1=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1},C1=function(a,b){if(a){var c="getErrorCode"in a?a.fb():null;
c?b.error_code=c:(c="getMessage"in a&&ia(a.getMessage)?a.b:a.message,c=Ma(c||"",50),b.error_message=c)}},D1=function(a,b){if(a){var c=zV(a).reverse();
b.ad_id=sb(c,xV(a)).join(",");c=AV(a).reverse();b.ad_sys=sb(c,qV(a)).join(",");c=BV(a);null!=c&&(b.aqi=c)}},E1=function(a,b){if(a[b])return B1(a[b]);
var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return B1(a[d]);return!1},F1=function(a){var b="";
a&2&&a&1?b="video":a&2?b="skippablevideo":a&1&&(b="standardvideo");a&4&&(b&&(b+="_"),b+="text_image_flash");return b},G1=function(a,b,c){var d=new TN;
d.Af=b.baseYtUrl;d.Rf=c.videoId;d.Um=!0;d.ls=!0;d.ms=a.X;d.showContentThumbnail=a.showContentThumbnail;d.gg={};c.Z&&(d.gg.ctrl=c.Z);c.ca&&(d.gg.ytr=c.ca);c.ga&&(d.gg.ytrcc=c.ga);c.isMdxPlayback&&(d.gg.mdx="1");a.A?(d.vk=!0,d.ax=!0,d.showContentThumbnail=!1,d.Sm=!0,d.Tm=!0,d.Um=!1):a.B&&(d.vk=!0);return d},J1=function(a){var b=new jY;
b.C=a.g.Aa;var c=a.app.D.Da();b.Tf=c.width;b.Sf=c.height;b.Uc=c.width;b.Tc=100;H1(a);b.Jo=!0;b.D=H1(a).experiments.experimentIds;b.Gb=w(H1(a).experiments.$,H1(a).experiments);b.Fi=w(H1(a).experiments.b,H1(a).experiments);b.pl=w(H1(a).experiments.o,H1(a).experiments);b.Jo?(H1(a),c=AB()):c=-1;c&&(b.F=c);a.g.tagForChildDirected&&(b.tj=!0);if(A1(H1(a),"9415521")||a.g.qb)b.Li=!0;c=I1(a);b.Fb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:Qia(a),VIS:Ria(a)};H1(a);b.afcRmFallback=a.g.H;A1(H1(a),"9417581")&&
(b.B="yt_"+I1(a).videoId);b.language=H1(a).ia;return b},Qia=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;
H1(a);return AB().toString()}}},Ria=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:AK(H1(a)).toString()}}},Sia=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;
var b=a.D?a.D.g():null;return null==b||0>b?"0":Math.ceil(.001*D()-b).toString()}}},K1=function(a,b,c,d){this.g=this.o="";
this.A=a;this.C=b;this.b=c;this.B=d},N1=function(a){var b=L1(a);
b.format="2_3";b.at="2_3";b.trsp="1";M1(a.b,3,b)},L1=function(a){var b={};
b.l_ns=a.C;b.l_state=a.B;b.break_type=a.A.b;b.sst=x1(a.A);b.sidx=0;a.o&&(b.at=a.o);a.g&&(b.ad_id=a.g);return b},O1=function(){F.call(this);
this.g=new be(w(this.C,this),1E3);G(this,this.g);this.B=this.A=0;this.b=Ld();this.o=!1},R1=function(){var a=q("yt.www.watch.ads.loadAfc");
ia(a)?(a(),P1=!0):Q1=!0},S1=function(){window.google_ad_output="html";
window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"},U1=function(){var a=q("window.google_show_companion_ad"),b;
b=q("yt.www.watch.ads.getGlobals");ia(a)&&ia(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():T1=!0},X1=function(){U1();
V1();return W1()},W1=function(){Y1||(Y1=new O1);
var a=Y1;a.o||(a.g.start(),a.o=!0);return a.b.A},V1=function(){Y1&&(Y1.dispose(),Y1=null)},Z1=function(){var a=q("yt.www.watch.ads.setCompanion");
a&&a()},Tia=function(a){var b=q("yt.www.watch.ads.showForcedMpu");
b&&b(a)},a2=function(a,b,c,d){kk.call(this);
this.B=!!b;this.D=a;this.g=c||a;this.G=!!d;this.b=new or(this);this.o=this.F=null;this.C=this.A=!1;b&&(Bc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));$1(this)},$1=function(a){a.o=null;
a.F=null;a.b.S(a.g,b2("over"),a.xs);a.b.S(a.g,"touchstart",a.gn);a.B&&a.b.S(a.g,b2("down"),a.Kz)},c2=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];
if(d.identifier==a.F)return d}return null},b2=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a},d2=function(a,b){this.g=a;
this.b=b},e2=function(a){return a.b-a.g},f2=function(a,b){return a.g+b*e2(a)},g2=function(a,b,c){return e2(a)?Ve((b-a.g)/e2(a),0,1):null!=c?c:window.Infinity},h2=function(){this.g=this.position=this.o=this.b=this.B=this.A=this.width=window.NaN},i2=function(a,b,c,d,e){var f=b.iq/b.rows,k=Math.min(c/(b.kq/b.Ob),d/f),m=b.kq*k,l=b.iq*k,m=Math.floor(m/b.Ob)*b.Ob,l=Math.floor(l/b.rows)*b.rows,p=m/b.Ob,t=l/b.rows,u=-b.Sw*p,x=-b.VD*t;
e&&45>=f&&(t-=1/k);a=a.style;a.width=p+"px";a.height=t+"px";e||(d=(d-t)/2,c=(c-p)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+u+"px "+x+"px/"+m+"px "+l+"px";if(e)return new bf(p,t)},Uia=function(){this.A=!1;
this.g=0;this.b=""},j2=function(a,b,c,d){kk.call(this);
this.b=a;this.g=d;this.videoData=null;this.adType=c;this.adSystem=b},Via=function(a,b){this.b=a;
this.g=b||0},k2=function(a){var b=[];
E(a.split("_"),function(a,b){this[b]=Ya(a)},b);
return new Via(Vb(Wia,b[1])?b[1]:0,Vb(Xia,b[2])?b[2]:0)},Yia=function(){this.clickThroughUrl="";
this.isSkippable=!1;this.skipShown=this.skip=r;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0;this.muteAdInfo=this.whyThisAdInfo=null;this.whyThisAdClosed=this.whyThisAdClicked=this.muteAd=this.sendAdsPing=r},l2=function(a){var b;
b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",P("YTP_ADVERTISEMENT")]],["div","ad-container"]];Q.call(this,b);this.B=a;this.o=this.D=this.C=null},m2=function(a){a.C||(a.C=a.la["ad-container"],T(a.B).I&&J(a.C,"ad-container-single-media-element-annotations"));
return a.C},o2=function(a){a.o&&(T(a.B).I?(he(a.o,"ad-video"),n2(a.B.app,a.o),a.o=null):(Bf(a.o),Wy(a.o)))},p2=function(a){if(!a.D){var b=window.document.createElement("div");
fe(b,["video-click-tracking","ad-video"]);m2(a).appendChild(b);a.D=b}return a.D},Zia=function(a){this.b=a},$ia=function(a){switch((0,window.parseInt)(a.toString(),10)){case 12:return 2;
case 13:case 53:return 3;case 14:return 4;case 15:return 5;case 22:case 52:case 61:return 7;case 30:return 8;case 32:case 33:return 9;case 51:case 55:case 60:case 90:return 10;case 54:return 1;case 56:return 11;case 57:return 12;case 58:return 13}return 0},q2=function(a){switch((0,window.parseInt)(a.toString(),10)){case 2:return 1;
case 3:case 4:return 2;case 5:return 3;case 6:return 4;case 7:return 5;case 15:case 100:return 6;case 14:return 7;case 777:return 8;default:return 0}},aja=function(a,b){this.B=null;
this.A=window.NaN;this.g=null;this.b=a;this.o=b},r2=function(a,b,c){a.b.R("AD_LOGGING_EVENT",b,c)},u2=function(a,b,c){s2(a);
var d=t2(a);c&&ta(d,c);d.ad_error=b;r2(a,7,d)},t2=function(a){var b={},c=a.b.videoData,d=a.b.o.Hh(),e=v2(a.b);
D1(a.b.wb(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=Hg(e),b.ad_dom=c,a.o.g.B&&(b.ad_v_url=e.substr(0,512)));e=a.b;(e=e.g?e.g.Jf():null)&&(b.ad_cpn=e);b.format=a.b.Lc();b.at=a.b.ee();b.ad_mt=Math.round(1E3*Math.max(bja(a.b),0));return b},s2=function(a){a.B||(a.B="InstreamAdDisplay ("+a.b.Lc()+")")},w2=function(a,b){F.call(this);
this.o=Math.max(0,a);this.A=this.g=0;this.B=b;this.b=window.NaN},y2=function(a,b,c,d,e,f){j2.call(this,b,a,2,c);
this.H=!1;this.D=this.K=this.I=null;this.b.subscribe("control_toggle_play_pause",this.Ht,this);this.b.subscribe("control_play",this.wm,this);this.b.subscribe("control_pause",this.um,this);this.B=new aja(this,this.b);this.A=new iA(this);this.o=x2(b);this.o.subscribe("statechange",this.Ft,this);this.o.subscribe("internalAbandon",this.Ct,this);this.o.subscribe("internalvideodatachange",this.Gt,this);this.C=this.F=!1;this.M=d;this.J=!!e;this.P=!!f;this.G=new w2(15E3,w(this.Yj,this))},A2=function(a,b){var c=
H1(a.b);
a.b.g.X&&"3"==c.A&&(c=a.b.app.D,ZH(c.app.T),c.I=!b,z2(c))},D2=function(a){var b=new Uia;
b.A=a.C;b.g=Bt();a.videoData&&a.videoData.clientPlaybackNonce&&(b.b=a.videoData.clientPlaybackNonce);ZK(x2(a.b));B2(a.b,0,b);C2(a.b,0);a.R("adEnd",a);A2(a,!0)},E2=function(a,b){H1(a.b).experiments.$("html5_ad_error_releases")?ZK(a.o):a.o.pg();
B2(a.b,0);a.R("adError",b)},F2=function(a){return a.videoData&&a.videoData.A?a.videoData.A.mimeType:null},v2=function(a){return a.videoData&&a.videoData.ig?iw(a.videoData.ig.g()):null},bja=function(a){return a.o?a.o.getCurrentTime():0},G2=function(a){a=a.wb();
return a?(a=a.D.get("why_this_ad"))?{menuTitle:a.o,targetingReasonHeader:a.B,targetingReasons:tb(a.C),closeButton:a.A,adSettingsLink:tb(a.g),controlText:a.G,continueButton:a.F,cancelButton:a.D}:null:null},H2=function(a){a=a.wb();
if(!a)return null;a=a.D.get("mute");if(!a)return null;for(var b=wX(a),c=[],d=0;d<b;d++)c.push({label:a.g[d].label,url:a.g[d].url});return{goneText:a.A,questionText:a.B,undoText:a.C,hoverText:a.o,surveyOptions:c}},cja=function(a,b){this.b=a;
this.B=b;this.b.Lc();this.g=this.o=0;this.A=null},I2=function(a,b,c){a.b.R("AD_LOGGING_EVENT",b,c)},J2=function(a){var b={};
D1(a.b.wb(),b);a.o&&a.g&&(b.ot=a.g-a.o);var c;c=a.B.Ia()?2:a.B.app.ca?1:0;b.ad_ps=c;b.format=a.b.Lc();b.at=a.b.ee();return b},K2=function(a,b,c,d){j2.call(this,b,a,1,c);
this.A=null;this.C=!1;this.F=null;this.B=new cja(this,b);this.o=new iA(this);this.D=!!d},L2=function(a,b){a.F!=b&&(a.F=b)},M2=function(a,b,c,d){F.call(this);
this.K=null;this.P=a;this.g=b.jb;this.F=b;this.H=b.getId();this.b=c;this.C=d;this.A=new K1(this.g,this.Gg(),c,d);this.B=null;this.M=new ym(this);this.o=new ym(this);this.J=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/},N2=function(a){var b=new w1(2,10);
a.g=b;a.A.A=b},O2=function(a,b){a.K=b;
var c=b.Lc();a.A.o=c},P2=function(a,b){var c=q("yt.www.watch.ads.setAdId");
c&&c(b);a.A.g=b},Q2=function(a){a=x1(a.g);
return 0==a||-1==a?a:1E3*a},R2=function(a){X1().then(function(){N1(this.A)},r,a)},W2=function(a){var b=a.F,c=a.g;
b.b=a.K;b.jb=c;G(b,b.b);0==b.oa&&(a=b.b.ee(),b.A.Z.at=a);b.b instanceof y2?b.g=!0:b.b instanceof S2?b.isVisible=!1:b.b instanceof T2?b.isVisible=!1:b.b instanceof U2&&(b.isVisible=!1);b.o="loaded";V2(b)},dja=function(a){this.b=a},S2=function(a){j2.call(this,a,2,3,null);
this.B=this.o=this.A=0},X2=function(a){a.A&&(Oi(a.A),a.A=0,a.o=0,a.B=0)},Y2=function(a,b,c){M2.call(this,2,a,b,c);
this.D=new dja(this.b.g);S1()},Z2=function(a,b,c){this.g=this.C="";
this.G=null;this.o=!1;this.B=this.A="";a&&(this.C=a,this.F=b.ea,this.o=b.gb,this.D=c,b=this.C,c=b.indexOf(";sz="),a=Dj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{Mw:b[0],ID:b[1],LD:a})&&(this.A=a.Mw,this.B=a.ID,this.G=a.LD)},$2=function(a){this.g=a?a:""},U2=function(a,b,c,d){K2.call(this,1,a,b,d);
this.G=c},a3=function(a,b,c){M2.call(this,1,a,b,c);
a=this.b.g;this.U=a.Ga?new $2(a.adTag):new Z2(a.adTag,a,this.H)},b3=function(a,b,c,d){a3.call(this,a,b,c|d);
this.I=c;this.G=d;this.D=null;S1()},c3=function(a,b){var c=b.wb(),d=AV(c);
d.unshift(qV(c));for(c=0;c<d.length;++c){var e=eja[d[c].toUpperCase()];if(e){a.D=e;return}}a.D=0},d3=function(a,b){this.B=[];
this.J=a;this.I=b||null;this.o=this.b=!1;this.A=void 0;this.G=this.K=this.D=!1;this.C=0;this.g=null;this.F=0},f3=function(a,b,c){a.b=!0;
a.A=c;a.o=!b;e3(a)},h3=function(a){if(a.b){if(!a.G)throw new g3;
a.G=!1}},j3=function(a,b,c){i3(a,b,null,c)},i3=function(a,b,c,d){a.B.push([b,
c,d]);a.b&&e3(a)},k3=function(a){return Ph(a.B,function(a){return ia(a[1])})},e3=function(a){if(a.C&&a.b&&k3(a)){var b=a.C,c=l3[b];
c&&(aa.clearTimeout(c.oa),delete l3[b]);a.C=0}a.g&&(a.g.F--,delete a.g);for(var b=a.A,d=c=!1;a.B.length&&!a.D;){var e=a.B.shift(),f=e[0],k=e[1],e=e[2];if(f=a.o?k:f)try{var m=f.call(e||a.I,b);n(m)&&(a.o=a.o&&(m==b||m instanceof Error),a.A=b=m);if(zd(b)||"function"===typeof aa.Promise&&b instanceof aa.Promise)d=!0,a.D=!0}catch(l){b=l,a.o=!0,k3(a)||(c=!0)}}a.A=b;d&&(m=w(a.H,a,!0),d=w(a.H,a,!1),b instanceof d3?(i3(b,m,d),b.K=!0):b.then(m,d));c&&(b=new m3(b),l3[b.oa]=b,a.C=b.oa)},g3=function(){ua.call(this)},
n3=function(){ua.call(this)},m3=function(a){this.oa=aa.setTimeout(w(this.g,this),0);
this.b=a},o3=function(a,b){var c=b.g;
this.D=c.forceAdUrl;var d=0,c=c.forceAdType.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);M2.call(this,2,a,b,d)},p3=function(a,b){j2.call(this,a,14,14,b)},q3=function(a,b,c){M2.call(this,14,a,b,c)},r3=function(a,b,c){M2.call(this,14,a,b,c)},fja=function(a,b,c,d,e){this.o=a;
this.A=b;this.b=c;this.T=H1(this.o);this.B=d;this.C=I1(this.o).lengthSeconds;this.D=e;this.g="html5";s3(this)&&"embedded"==this.T.ua?this.g="html5_embed":VH||ux?this.g="html5_ios":Mp("android")?this.g="html5_android":Up()?this.g="html5_wp":Pp()?this.g="html5_ps3":"leanback"==this.T.ua?(a=(Zb(window,"environment","brand")||"").toLowerCase(),b=(Zb(window,"environment","model")||"").toLowerCase(),this.g="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):Tp()?this.g="html5_wii":s3(this)&&
(this.g="html5_desktop")},v3=function(a){return t3(a.A)?"preroll":u3(a.A)?"postroll":"midroll"},x3=function(a){return(a=a.o.A)?Ph(a.A,function(a){return w3(a)||u3(a)}):!1},s3=function(a){return!x3(a)||z1(a.T,a.b)},T2=function(a,b){K2.call(this,4,a,b)},y3=function(a,b,c){M2.call(this,4,a,b,c);
var d=this.b.g;this.D=A(d.Fa);var e=I1(this.b)&&I1(this.b).spacecastModule;this.G=new fja(b,a,d,c,!!e)},z3=function(a,b,c){this.A=a;
this.b=b;this.g=c||0},gja=function(a){return 0<((a.b|a.g)&3)},A3=function(a,b,c,d,e){kk.call(this);
this.D=!0;this.g=!1;this.isVisible=!0;this.o="unloaded";this.F=!1;this.oa=b;this.A=a;this.jb=c;this.C=d;this.B=this.b=null;this.G=!!e},D3=function(a){return t3(a)?B3(a)&&C3(a)?-0x8000000000000:0:ha(a.jb.g)?1E3*x1(a.jb):0x8000000000000},hja=function(a){var b=!H1(a.A).experiments.$("disable_fetching_previous_nonadjacent_midrolls");
return t3(a)||b&&a.A.b&&1E3*a.A.b.getCurrentTime()>=D3(a)?!1:Bg(a.C,function(a){switch(a.Kb()){case 1:case 2:case 3:case 5:return!0;default:return!1}})},B3=function(a){return"loaded"==a.o||"error"==a.o},t3=function(a){return 1==a.jb.b},C3=function(a){if(!B3(a))throw Error("Preroll status is undefined before ad load.");
return t3(a)&&a.g},w3=function(a){return 2==a.jb.b},u3=function(a){return 3==a.jb.b},H3=function(a){a.o="loading";
t3(a)&&!Ph(a.C,gja)&&kq(a.A);if(a.G)a.o="loaded",a.g=!0,V2(a);else{var b=a.C.shift();b?(t3(a)&&E3(a.A,"nl"),b=b.create(a,a.A),G(a,b),b.load()):(M1(a.A,2,F3(a,{})),G3(a,!1),a.o="error",V2(a))}},I3=function(a){a.b&&(a.b.ya("adEnd",a.oq,a),a.b.ya("adError",a.xt,a),a.b.ya("AD_LOGGING_EVENT",a.Iq,a),a.b.ya("select",a.wt,a),a.b.ya("adCompanionInitialized",a.zt,a))},V2=function(a){a.R("adBreakComplete",a)},G3=function(a,b){a.B&&(a.B.ng({FILLED_OPPORTUNITY:b?1:0}),a.B.dispose(),a.B=null)},F3=function(a,b){b.break_type=
a.jb.b;
b.sst=x1(a.jb);b.sidx=0;return b},J3=function(a){var b=0;
a.J&&(b|=1);a.I&&(b|=2);var c=0;a.C&&(a.F&&(c=4),b||a.U||(b=c,c=0));a=new sg;a.set(3,b);a.set(4,c);return a},K3=function(a,b){var c=[];
if(a.aa)return c.push("pla"==(a.forceAdType||"").toLowerCase()?new z3(8,16):new z3(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.U&&c.push(new z3(7,16)),c;if(a.K){var d=0;if(a.o||a.D)d|=1;a.M&&(d|=4);a.P&&(d|=8);c.push(new z3(5,d))}d=0;a.G&&(a.o&&(d|=1),a.D&&(d|=2),a.M&&a.C&&(d|=4),a.P&&a.C&&(d|=8));var e=J3(a),f=e.get(3);d&&f&&ija(a,b)?c.push(new z3(3,d,f)):(d&&c.push(new z3(2,d)),f&&c.push(new z3(1,f)));a.independentBreakOffsets||f&4||!a.U||c.push(new z3(7,16));(d=e.get(4))&&c.push(new z3(1,
d));return c},L3=function(a){this.b=a},M3=function(a){var b=[];
E(jja(a),function(a,d){var e=this.b,f;f=K3(this.b.g,a.b);e=new A3(e,d,a,f);b.push(e)},a);
return b},jja=function(a){var b=a.b.g,c=[];
if(b.K&&!z1(H1(a.b),b))c=N3;else if(b.Sa){var d=b.Sa.split(",");for(a=0;a<d.length;a++){var e=Ya(d[a]),e=0>e?new w1(3):0<e?new w1(2,e):new w1(1);c.push(e)}}else c=N3;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new w1(5,Ya(b[a])));Cb(c,Pia);return c},mja=function(a,b){this.T=a;
this.A=this.T.isMobile;this.$a=this.T.B;this.B="leanback"==this.T.ua;this.b=this.A||this.B;this.X=!this.B&&!ZH(a);this.o=B1(b.instream);this.ea=1==b.livestream;this.D=B1(b.trueview);this.Y=B1(b.aftv);this.Sa=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ga=b.cafe_experiment_id;this.adTag=b.ad_tag;this.Za=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.wa=kja(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.za=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.o||this.D)&&!this.T.useMediaVolume;this.Ca=b.cid;this.ca=b.docid||b.video_id||b.videoId;this.dynamicAllocationAdTag=b.dynamic_allocation_ad_tag;this.excludedAds=b.excluded_ads;this.fadeInDurationMilliseconds=(0,window.parseInt)(b.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=(0,window.parseInt)(b.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=(0,window.parseInt)(b.fade_out_duration_milliseconds,
10)||0;this.fadeOutStartMilliseconds=(0,window.parseInt)(b.fade_out_start_milliseconds,10)||0;this.Aa=(0,window.parseInt)(b.forced_skip_offset,10);this.forceAdType=b.force_ad_type;this.forceAdUrl=b.force_ad_url;this.Fa=b.freewheel_ad_tag;this.gender=bc(lja,function(a){return a==b.ad_gender});
this.ia=b.dbp;this.H=B1(b.afc_rm_fallback);this.gb=!!b.mpu;this.F=B1(b.afv)&&!this.b;this.I=this.Y&&this.D;this.J=this.Y&&this.o&&!B1(b.no_afv_instream);this.G=B1(b.dclk);this.Ga=B1(b.gpt_migration);this.aa=B1(b.forced_ad)&&(!this.b||a.experiments.$("allow_external_ads_overwrite_mweb"));this.K=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.ib=!!b.fqsf;this.M=B1(b.invideo)&&!this.b;this.P=B1(b.mpu)&&!this.b;kb(this.wa,"yt_mabv");this.U=!!b.pla;this.Ja=B1(b.shortform);this.C=B1(b.sffb);this.ka=b.ad_language_iso639_2;
this.maxDynamicAllocationAdTagLength=(0,window.parseInt)(b.max_dynamic_allocation_ad_tag_length,10);(0,window.isNaN)(this.maxDynamicAllocationAdTagLength)&&(this.maxDynamicAllocationAdTagLength=2E3);this.g=(0,window.parseInt)(b.midroll_freqcap,10);(0,window.isNaN)(this.g)&&(this.g=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.Pa=b.pla_ad_tag;ga(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=B1(b.tag_for_child_directed);
this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.ba=this.Y&&this.C&&!this.F;this.ma=this.F||this.ba;this.Ua=(0,window.parseInt)(b.ad_device,10);this.ra=b.tpas_video_id;this.Z=b.tpas_partner_id;this.vmap=b.vmap;this.Sb=this.T.Sb;this.qb=b.post_ad_requests;this.showContentThumbnail=!0},ija=function(a,b){if(z(A(a.dynamicAllocationAdTag)))return!1;
var c=(a.o||a.D)&&a.G;a.C&&a.G&&(c=c||a.M||a.P);if(!c)return!1;c=a.I||a.J;if(!(c||a.C&&a.F))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.Ga?25:102);window.document.referrer&&(d+=xa("ref="+xa(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength},kja=function(a){if(z(A(a)))return[];
a=(new N(a)).b.get("channel");return null!=a?a.split("+"):[]},O3=function(a,b){F.call(this);
this.C=a;this.g=new ym(this);G(this,this.g);this.b=null;this.A=!1;this.g.N(b,"companionImpression",this.B);this.g.N(b,"companionClick",this.o)},Q3=function(a,b){F.call(this);
this.b=a;this.H=b;this.D=a.b.getVideoData();this.o=[];this.g=0;this.A=window.NaN;this.B=this.C=this.F=0;this.G=!1;var c=H1(a).experiments;this.J=c.$("enable_dynamic_ad_break")&&!!this.D.lengthSeconds&&600<this.D.lengthSeconds;this.K=c.b("dynamic_ad_break_pause_threshold_sec")||5;this.P=c.b("dynamic_ad_break_seek_threshold_sec")||120;this.J&&P3(this.b,this.I,this)},S3=function(a){return(a.b.o?a.G:!!a.b.A&&0==a.b.A.A.length)&&1==a.b.getPresentingPlayerType()},Z3=function(a,b){var c=null!=Hj(H1(a.b).G).debugjs,
d=a.D.videoId,e=a.D.eventId,f=a.g,k;
k=a.o.length?a.o[a.o.length-1]:Math.max(a.H.g(),a.C);k=D()/1E3-k-a.B;c=Jj("/gen_204?"+Og({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:D()/1E3,dab:a.o,paet:Math.max(a.H.g(),a.C),debug:c}),{});Wp(c)},b4=function(a){F.call(this);
this.b=a;this.g=window.NaN;this.B={};a=a.g;this.C=a.fadeInDurationMilliseconds;this.D=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.o=a.fadeOutStartMilliseconds;this.ds()},f4=function(a,b){a.B[b]&&(OL(a.b.b,[a.B[b]],void 0),delete a.B[b])},g4=function(a,b,c,d){0>=c||((0,window.isNaN)(a.g)||O(a.g),c=D()+c,a.g=0==d?yq(w(a.Kt,a,b,c,100),0):yq(w(a.Jt,a,b,c,100),0))},h4=function(a,b,c){H1(a.b);
a=I1(a.b).gi;b.setVolume(c*a)},i4=function(a){b4.call(this,a)},j4=function(a,b,c){F.call(this);
this.b=a;this.D=b;this.B=c;this.A=-1;this.C=window.NaN;this.B&&0<this.b.g.g&&this.b.subscribe("endseeking",this.o,this)},nja=function(a,b){k4(a);
0<b&&(a.C=Mi(w(a.o,a),1E3*b))},k4=function(a){O(a.C);
a.C=window.NaN},m4=function(a,b){if(!a.B||!w3(b)&&!u3(b))return!1;
var c=a.b.g.g;if(0>=c||0>=a.A)return!1;var d=D()/1E3,e=l4(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.A<=c},l4=function(a,b){return u3(b)?a.b.b.getVideoData().lengthSeconds:x1(b.jb)},n4=function(a,b){F.call(this);
this.H=this.g=null;this.K=[];this.M=window.NaN;this.A=b;this.G=[];this.o={};this.D={};this.b=a;var c=a.g,d=!c.ea&&Ph(this.A,function(a){return w3(a)||u3(a)});
this.B=new j4(this.b,this,d);this.C=c.applyFadeOnMidrolls?new b4(a):new i4(a);this.ca=new Q3(this.b,this.B);this.ba=Ph(this.A,function(a){return t3(a)})},oja=function(a){a.G.length||(a.G=ge(a.A,function(a){return"unloaded"==a.o}),0==a.G.length?kq(a.b):(a.ba||kq(a.b),o4(a)))},o4=function(a){if(a.G.length){var b=a.G.shift();
b.subscribe("adBreakComplete",a.fg,a);b.subscribe("adCompanionInitialized",a.sm,a);H3(b)}},pja=function(a,b){function c(a){return a&&5!=a.jb.b}
var d=jb(a.A,b),e=vb(a.A,0,d),d=vb(a.A,d+1);return{previous:fb(e,c),next:fb(d,c)}},p4=function(a,b,c){var d=D3(b);
if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=x1(b.jb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.C.Xr(b,d);c=a.C.Wr(b,c);c=new dq(d,c,e);a.D[b.getId()]=c;a.b.ob([c]);a.C.ho(b)}},q4=function(a,b){var c=b.getId();
a.D[c]&&(f4(a.C,c),OL(a.b.b,[a.D[c]],void 0),delete a.D[c])},t4=function(a,b){if(n(b)){var c=a.Zj(b);
if(c)if(a.g==c&&!c.g&&c.isVisible)c.show();else{if(a.g){if(5==c.jb.b){a.g.g?a.K.push(b):c.show();return}a.bf(a.g)}if(m4(a.B,c))a.g=null,c=a.D[c.getId()],c.visible||(c.visible=!0,a.b.b.ob([c],1)),H1(a.b)&&(A1(H1(a.b),"9412857")||A1(H1(a.b),"9412859"))&&a.Cr();else{5!=c.jb.b&&(a.g=c);c.subscribe("adBreakComplete",a.lm,a);c.subscribe("adCompanionInitialized",a.sm,a);if(c.g){r4(a.b);var d=a.B.g(),d=0<d?Math.floor(D()/1E3-d):0;s4(a.b,"show_instream_ads",{tfla:d})}a.C.Lt(c);c.show()}}}},u4=function(a,b,
c){n4.call(this,a,b);
this.I=[];this.J=[];this.F=[];this.X=c;this.U=window.NaN;this.P=a.g.g;var d=!H1(a).experiments.$("disable_fetching_previous_nonadjacent_midrolls"),e=1E3*a.b.getCurrentTime(),d=d?null:ib(b,function(b){return a.b&&e>=D3(b)});
if(1<=c)for(c=0;c<b.length;c++){var f=b[c];if(hja(f)&&f!=d){var k=new A3(f.A,f.oa,f.jb,f.C,!0);b[c]=k;this.I.push(f)}}this.ba||this.hg()},w4=function(a){v4(a);
a.U=Mi(w(a.hg,a),1E3*(a.P-10))},v4=function(a){O(a.U);
a.U=window.NaN},x4=function(a,b){n4.call(this,a,b);
this.U=a;this.X=!0;this.I=[];this.ea=1;this.Z=null;this.J=0},y4=function(a){if(null==a.g&&0<a.I.length){var b=a.I[0];
b.isVisible?(a.X=a.F.H,a.aa=Math.ceil(D()/1E3),b.subscribe("adBreakComplete",a.P,a),a.g=b,b.show()):a.P()}else null!=a.g&&a.J++},qja=function(a,b){this.G=a;
this.C=b;this.F=D();this.B=0;this.b=a.g;this.o={};this.D=new Zia(a);var c=[];this.b.K&&this.b.o&&c.push("4_2");this.b.G&&(this.b.o&&c.push("1_2"),this.b.D&&c.push("1_2_1"),this.b.M&&c.push("1_1"),this.b.P&&c.push("1_3"));this.b.I&&c.push("2_2_1");this.b.J&&c.push("2_2");this.b.F&&c.push("2_1");(this.b.ma||this.b.H)&&c.push("2_3");this.b.U&&c.push("14_14");this.g=c.join(",");this.A="";this.o.allowed=this.g;(c=this.b.excludedAds)&&(this.o.ex_ads=c)},rja=function(a){this.b=a},z4=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;
var b=0;E(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b},B4=function(a,b,c){F.call(this);
this.g=a;this.A=b;this.F=c;this.o=this.C=-1;this.b=A4(this.A.he());a=this.A.he();a.length&&(a=a[a.length-1],-1==a&&this.g.ob([this.b[a]]));0<this.g.g.g&&this.g.subscribe("endseeking",this.B,this)},sja=function(a,b){C4(a);
0<b&&(a.o=Mi(w(a.B,a),1E3*b))},C4=function(a){-1!=a.o&&(O(a.o),a.o=-1)},A4=function(a){if(!a.length)return{};
for(var b={},c=0;c<a.length-1;c++){var d=a[c],e;e=a[c+1];e=-1==e?0x8000000000000:1E3*e;b[d]=new dq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new dq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b},D4=function(a){0<a.g.g.g&&(a.C=D()/1E3,a.B())},E4=function(){F.call(this)},F4=function(a){F.call(this);
this.b=a;this.g=null;this.A={};this.B={};a=a.g;this.C=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.G=a.fadeOutDurationMilliseconds;this.o=a.fadeOutStartMilliseconds;this.H=1E3*this.b.b.getVideoData().lengthSeconds;this.D=this.o+this.G;P3(this.b,this.Vt,this)},G4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.H},tja=function(a){a=a.getAttribute("breakType");
return!!a&&Ph(a.split(","),function(a){a=Sa(a);return"linear"==a})},uja=function(a){var b,c=3;
b=!0;c=c?c:0;b=b?b:!1;var d=(0,window.parseFloat)(Pa(a/1E3,2,c));a=Math.floor(d/60);var e=Math.floor(a/60);a%=60;c=Pa(d%60,2,c);b=c=e||b?e+":"+Pa(a,2)+":"+c:a+":"+c;return 1==b.split(":")[0].length?"0".concat(b):b},wja=function(a,b){var c=Math.max(Math.abs(a.o),Math.abs(a.D));
E(b,w(function(a){var e=Ph(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=vja(this,a);
!e&&f&&(this.A[f]=a)},a));
return 0<Ub(a.A)},vja=function(a,b){var c=1E3*Math.round((b+a.D)/1E3),d=b+a.o,e=b+a.F;
return G4(a,b)&&G4(a,c)&&G4(a,d)&&G4(a,e)?c:null},H4=function(a,b,c,d){0>=c||(d=0==d?a.Ut:a.Tt,c=D()+c,a.g=yq(w(d,a,b,c,100),0))},I4=function(a,b,c){a=I1(a.b).gi;
b.setVolume(c*a)},J4=function(a){F.call(this);
this.D=this.A=this.o=this.F=this.g=null;this.I=this.H=!1;this.b=a;this.G=null;this.K={};this.M=new ym(this);this.C=new ym(this);this.J=this.B=null},xja=function(a,b,c){a=a.cloneNode(!0);
a.setAttribute("timeOffset",b);E(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,f,k;"end"==b?(e="post",f=-1,k="postroll"):(e="mid",f=z4(b).toString(),k="midroll");var m={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":f,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return m[a]||a})});
return a},yja=function(a,b){var c=fA(b),d=c.childNodes[0];
if(!d)return b;var e=fb(Ef(d),function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var f=fb(Ef(e),function(a){return"Extensions"==a.localName}),k=f?Ef(f):[],k=fb(k,function(a){return"YTBreakTime"==a.getAttribute("type")}),f=(f=f.removeChild(k))?Ef(f):[],m=e,l=1;
E(f,function(a){a=a.getAttribute("timeOffset");a=xja(e,a,l);l++;d.insertBefore(a,m.nextSibling);m=a});
d.removeChild(e)}f=a.B.ur(d);f||(Nb(a.B),a.B=new E4);return e||f?gA(c):b},zja=function(a){var b=G1(a.b.g,H1(a.b),I1(a.b));
b.bx=!0;b.qo=!1;b.sr=10;b.xm=a.B.Yo();return b},K4=function(a,b){var c=a.D?a.D.g():0,c=0<c?Math.floor(D()/1E3-c):0;
s4(a.b,b,{tfla:c})},Aja=function(a,b){var c=fV(b),d=L4(b);
if(E1(c,"rm")&&a.b.g.H)return a.o=new S2(a.b),M4(a,a.o),a.o.show(),!1;if(E1(c,"blockAllAds"))return a.g.ng(),a.o=new U2(a.b,a.g,1,!0),!1;if(E1(c,"hideMaster")&&14!=d)return a.o=new U2(a.b,a.g,0,!0),!1;c=a.g;14==d?(a.o=new p3(a.b,c),N4(a,b)):a.o=new K2(d,a.b,c,!0);a.o.show();a.H=!1;return!0},N4=function(a,b){S1();
var c;if(b){var d=b.o.b,e=1;-1==d?e=3:0<d&&(e=2);c=14==k2(lV(b)).b?16:4;d=0<d?new w1(e,d):new w1(e);c=new K1(d,kV(b),a.b,c)}X1().then(qa(function(a){a&&N1(a)},c),r)},P4=function(a,b){if(b&&"adLoadError"==b.Kb()){var c=a.b.g;
!c.b&&c.ma&&(a.o=new S2(a.b),M4(a,a.o),a.o.show());O4(a)}},Q4=function(a){a.o&&(a.o.dispose(),a.o=null)},L4=function(a){var b=AV(a);
a=0<b.length?b.pop():qV(a);a=Bja[a.toUpperCase()];return null!=a?a:0},O4=function(a){a.I||(kq(a.b),a.I=!0)},M4=function(a,b){H1(a.b).experiments.$("fix_vmap_afc_mpu_api_stats_ads")&&b.subscribe("AD_LOGGING_EVENT",w(a.QB,a,Nia(a.g)))},R4=function(a){s1.call(this,a);
this.logEvent=this.Ea="ad";this.g=this.A=this.G=null;this.U=this.ba=!1;this.o=this.I=null;W.g=!0;W.B=!1;W.G=!0;a=W;var b=!Op();a.D=b;W.C=0;this.H=null;this.ca={};this.Z={at:"0"};this.C=new l2(this.b);mr(this.b,this.C.element,4);this.Y=this.B=null;this.M=-1;this.za=new rja(this);this.J=new or(this);G(this,this.J);this.P=null},I1=function(a){return S4(a.app)},H1=function(a){return a.app.T},M1=function(a,b,c){a=a.G;
c=c||{};var d=(D()-a.F)/1E3;c.art=d;d=H1(a.G);d.Yd&&(c.feature=d.Pa);c.ad_flags=a.b.adFlags;(d=a.b.Ca)&&(c.cid=d);c.mt=a.C.getCurrentTime();(d=AB())&&(c.lact=d);(d=a.C.Ih())&&(c.len=d);a.b.ib&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.A=c.at;b=a.D;a:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break a}a=c&&c.ad_event?q2(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var f;c.sst&&(f=c.sst);"2_1"==e&&10==f&&(c.break_type=1);
e={};e.device=b.b.g.Ua;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var k in c){f=e;a=k;var d=c[k],m=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":kb(v1,Ya(d))&&(f.m_pos=m.sst);case "format":case "ad_id":case "ad_v":case "ad_cpn":case "ad_mt":case "aqi":case "ad_sys":f[a]=d;break;case "ad_len":f[a]=Math.round(1E3*d);break;case "ad_error":f.error_code=$ia(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=q2(d);break;case "ck_xy":a=d.split("x"),
2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=x2(b.b);f=I1(b.b);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.b.A,e.mt=null!=c&&null!=c.g?1E3*x1(c.g.jb):0):e.mt=Math.round(1E3*k.getCurrentTime());c=H1(b.b);e.ei=f.eventId;e.lact=AB();e.vol=Math.round(b.b.app.Oa.Db());e.vis=AK(c);c=T4(b.b);e.p_w=c.width;e.p_h=c.height;e.rt=D();if(c=(c=k.g?k.g.fa():null)&&ff(c)===window.document?Rq(c):null)e.pv_h=c.getHeight(),e.pv_w=c.Ta();k=zg(e);if("undefined"==typeof k)throw Error("Keys are undefined");
c=new dh(null,0,void 0);e=yg(e);for(f=0;f<k.length;f++)a=k[f],d=e[f],ea(d)?ih(c,a,d):oh(c,a,d);b=H1(b.b).baseYtUrl+"api/stats/ads";b=new N(b);bh(b,c);Wp(b.toString())}},U4=function(a,b,c){c=c||{};
c.ad_error=b;M1(a,7,c)},V4=function(a,b,c){a.app.Oa.va(b,c)},W4=function(a){if(!a.ba){var b=H1(a).baseYtUrl;
Wp(b+"mac_204?action_fcts=1");a.ba=!0}},X4=function(a){return a.A instanceof x4?a.A:null},Z4=function(a){a=a.C;
if(T(a.B).I)a=a.B.app.A;else{if(!a.o){var b;b=a.B.app;if(b.T.I){var c=Nq(b.A.b),d=Zq(b.A.b);b.ia=new fg(c.x,c.y,d.width,d.height);aL(b.C);b.A.b.loop=!1;b.A.b.playbackRate=1;GH(b.A);b=b.A.fa()}else b=Y4.getTag(void 0,void 0);a.o=b;fe(a.o,["video-stream","ad-video"])}a=new JH(a.o)}return a},x2=function(a){if(!a.B){var b=hc(H1(a).M);
H1(a).experiments.$("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=I1(a).eventId;b.content_v=I1(a).videoId;b=new aI(b);b.ua="adunit";var c=Z4(a);b.Be=c;a.B=new EK(b,2,new t1(b,""),a.app.D,w(a.app.J.R,a.app.J))}return a.B},b5=function(a){if(a.B&&a.B==hq(a.app)){var b=a.app;
a=a.B;$4(b);a!=b.g&&a5(b,b.g)}},T4=function(a){return a.g.B?(a=a.app.D.Da(),new fg(0,0,a.width,a.height)):$q(a.xa())},c5=function(a,b){E3(a,"bd");
var c;c=a.g;var d=c.midrollPrefetchSize;c=c.ea?new x4(a,b):0<d?new u4(a,b,d):new n4(a,b);a.A=c;oja(a.A)},r4=function(a){a.U=!0;
a.R("command_redirect_controls",a,["play_pause"],void 0);a.o||a.pauseVideo()},d5=function(a){o2(a.C);
a.U=!1;oq(a)},C2=function(a,b){switch(b){case 1:a.M=1;
V4(a,"onAdStart");break;case 0:a.M=0,V4(a,"onAdEnd")}},B2=function(a,b,c,d){d&&V4(a,"onAdInfoChange",d);
d=a.app;a=Z4(a);c=c||{};1==b&&(d.I.g("vr"),d.aa||(d.aa=Dv(d.yq,d)),sL(d.C),u1(d.I,e5(d)));0==b&&c&&(d.g.Y=c);c=d.T;"leanback"==c.ua&&c.Ma&&(0==b?d.Aa=d.A:d.Aa=a,d.b.va("onAdStateChange",b))},E3=function(a,b){var c=b;
"nl"==b&&(c=a.G,c.B++,c=c.B.toString());a.ca[c]=D();"bs"!=c&&"fb"!=c||lq(a,a.ca,a.Z)},s4=function(a,b,c){a=a.za;
var d=f5,d=d||f5;y1(H1(a.b),d)&&(c=c||{},c.cdp=1,c["var"]=b,c.sdkv="h.3.0",a.b.log(c))},g5=function(a){return!!(a.g.C&&a.A&&1<a.A.A.length)},P3=function(a,b,c){a.b.addEventListener("applicationplayerstatechange",b,c)},h5=function(){},Z=function(a,b){if(b<a.o){var c=b+a.B,d=a.g[c];
return d===i5?a.g[c]=[]:d}d=a.b[b];return d===i5?a.b[b]=[]:d},j5=function(a){var b=a;
a=Cja;this.A=null;b||(b=[]);this.B=-1;this.g=b;a:{if(this.g.length){var b=this.g.length-1,c=this.g[b];if(c&&"object"==typeof c&&!ea(c)){this.o=b- -1;this.b=c;break a}}this.o=Number.MAX_VALUE}if(a)for(b=0;b<a.length;b++)c=a[b],c<this.o?(c+=-1,this.g[c]=this.g[c]||i5):this.b[c]=this.b[c]||i5},l5=function(a,b){F.call(this);
this.g=a;a.b.addEventListener("onVolumeChange",this.cj,this);a.b.addEventListener("onCaptionsTrackListChanged",this.Hq,this);this.B=!1;this.b=b;b.subscribe("proxyStateChange",this.Uq,this);b.subscribe("remotePlayerChange",this.jh,this);b.subscribe("remoteQueueChange",this.tm,this);this.I=new Xy;this.F=this.D=window.NaN;this.H=0;this.A={};this.C=null;this.G=new wm(this.qE,1E3,this);G(this,this.G);this.J=0;this.o=!1;var c=this.g.b.zb("captions","track");cc(c)||k5(this,c);this.tm();this.jh()},m5=function(a,
b){var c=a.g,d=a.g.b.getVideoData().lengthSeconds;
c.H=b||0;c.b.R("progresssync",b,d)},p5=function(a){a.o||(m5(a,0),n5(a),o5(a,new Xy));
wy(T(a.g.app.Oa))||(a.o=!0)},k5=function(a,b){if(q5(a)&&!a.B){if(b){var c={style:a.g.b.zb("captions","displaySettings")};
kc(c,b);a.b.Jm(r5(a),c)}else a.b.Jm(r5(a),null);a.A=vo(a.b).g}},s5=function(a){a.b.pause();
var b=vo(a.b);m5(a,po(b));n5(a);o5(a,new Xy(4))},u5=function(a){a.b.play();
t5(a);o5(a,new Xy(8))},v5=function(a,b){var c=a.g.b.Ic();
c?yo(a.b,r5(a),b,c.Pb(),a.g.b.getVideoData().playlistId):yo(a.b,r5(a),b);o5(a,new Xy(1))},w5=function(a,b){if(b){var c=a.g.b.zb("captions","tracklist",{Op:1});
c&&c.length?a.g.b.De("captions","track",b):(a.g.b.Qj("captions"),a.B=!0)}else a.g.b.De("captions","track",{})},q5=function(a){return vo(a.b).videoId==r5(a)},r5=function(a){return a.g.b.getVideoData().videoId},t5=function(a){n5(a);
if(!a.b.isDisposed()){var b=vo(a.b);b.Ya()&&o5(a,new Xy(8));m5(a,po(b));a.D=Mi(w(function(){t5(this)},a),500)}},n5=function(a){O(a.D);
a.D=window.NaN},x5=function(a){O(a.F);
a.F=window.NaN},o5=function(a,b){x5(a);
var c=a.I;a.I=b;a.o=!1;var d=a.g;d.J=b;d.b.R("presentingplayerstatechange",new DK(b,c))},y5=function(a){s1.call(this,a);
this.Ea=this.logEvent="remote";this.o={key:gk(),name:P("YTP_MDX_MY_COMPUTER")};this.A=null;this.C=[];this.G=this.I=this.g=null;this.M=[this.o];this.B=this.o;this.J=new Xy;this.H=0},z5=function(a,b,c){var d=c||a.o;
b.unshift(a.o);a.M=b||[a.o];d=fb(b,function(a){return a.key==d.key});
a.B=d||a.o;a.app.Oa.va("onMdxReceiversChange")},A5=function(a){Aq.call(this,["div",
"html5-video-player",{tabindex:-1,id:a.X.attrs.id},["div","html5-video-container",{"data-layer":0}]]);Ei(this.element,"version",a.X.assets.js);this.app=a;this.J=null;this.B=this.la["html5-video-container"];this.U=!!this.B;this.D=new fg(0,0,0,0);this.o=null;this.G=new fg(0,0,0,0);this.K=this.P=0;this.I=!1;this.H=window.NaN;a=a.T;this.F=null;this.addEventListener=w(this.element.addEventListener,this.element);this.removeEventListener=w(this.element.removeEventListener,this.element);this.dispatchEvent=
function(){};
a=wy(a)&&"blazer"!=a.b&&"mweb-polymer"!=a.b&&window.matchMedia?w(window.matchMedia,window):r;this.M=a("(max-width: 656px)");this.ea=a("(min-width: 657px)");this.Z=a("(min-width: 1294px) and (min-height: 630px)");this.aa=a("(min-width: 1720px) and (min-height: 980px)");this.ca=a("(min-width: 967px)");this.Y=a("(min-width: 1320px) and (min-height: 870px)");this.C=null;Ri({YTP_ADVERTISEMENT:"Qua\u0309ng ca\u0301o",YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"B\u1ea3n \u00e2m thanh",YTP_AUTO:"T\u01b0\u0323 \u0111\u00f4\u0323ng",
YTP_AUTO_WITH_QUALITY_2:"T\u1ef1 \u0111\u1ed9ng ($VIDEO_QUALITY)",YTP_CARDS_BUTTON_ARIA_LABEL:"Hi\u1ec3n th\u1ecb th\u1ebb",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Thay \u0111\u1ed5i ch\u1ea5t l\u01b0\u1ee3ng ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Sao ch\u00e9p th\u00f4ng tin g\u1ee1 l\u1ed7i",YTP_COPY_VIDEO_URL:"Sao ch\u00e9p URL video",YTP_COPY_VIDEO_URL_AT_TIME:"Sao ch\u00e9p URL video trong th\u1eddi gian hi\u1ec7n t\u1ea1i",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"\u1ea8n th\u1ebb",YTP_DRAWER_HEADER_TEXT_2:"Th\u00f4ng tin th\u00eam",
YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"B\u1ea1n mu\u1ed1n b\u1ecf phi\u1ebfu?",YTP_DRAWER_POLL_TITLE_ARIA_LABEL:"$POLL_TITLE - \u0110\u0103ng nh\u1eadp \u0111\u1ec3 b\u1ecf phi\u1ebfu.",YTP_GET_DEBUG_INFO:"Xem th\u00f4ng tin g\u1ee1 l\u1ed7i",YTP_GET_VIDEO_URL:"Nh\u1eadn URL video",YTP_GET_VIDEO_URL_AT_TIME:"Nh\u1eadn URL video \u1edf th\u1eddi gian hi\u1ec7n t\u1ea1i",YTP_GET_EMBED:"Nh\u1eadn m\u00e3 nh\u00fang",YTP_DECREASE_PLAYBACK_SPEED:"Gi\u1ea3m t\u1ed1c \u0111\u1ed9 ph\u00e1t l\u1ea1i",
YTP_PLAYBACK_SPEED_CHANGED:"T\u1ed1c \u0111\u1ed9 l\u00e0 $RATE",YTP_DEFAULT_VIEW:"Ch\u1ebf \u0111\u1ed9 xem m\u1eb7c \u0111\u1ecbnh",YTP_EMBED_COPY:"Sao ch\u00e9p m\u00e3 nh\u00fang",YTP_ERROR_GENERIC_WITHOUT_LINK:"\u0110\u00e3 x\u1ea3y ra l\u1ed7i. Vui l\u00f2ng th\u1eed l\u1ea1i sau.",YTP_ERROR_GENERIC_WITH_LINK_AND_CPN:"\u0110\u00e3 x\u1ea3y ra l\u1ed7i. Vui l\u00f2ng th\u1eed l\u1ea1i sau. (ID ph\u00e1t l\u1ea1i: $CPN) $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK",YTP_EXIT_FULLSCREEN:"Tho\u00e1t kh\u1ecfi ch\u1ebf \u0111\u1ed9 to\u00e0n m\u00e0n h\u00ecnh",
YTP_FULLSCREEN_GENERIC_ERROR:"Ch\u1ebf \u0111\u1ed9 to\u00e0n m\u00e0n h\u00ecnh kh\u00f4ng kh\u1ea3 d\u1ee5ng. $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK",YTP_FULLSCREEN_UNSUPPORTED_ERROR:"Tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n kh\u00f4ng h\u1ed7 tr\u1ee3 ch\u1ebf \u0111\u1ed9 to\u00e0n m\u00e0n h\u00ecnh. $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK",YTP_VOLUME_UNSUPPORTED_ERROR:"Tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n kh\u00f4ng h\u1ed7 tr\u1ee3 thay \u0111\u1ed5i \u00e2m l\u01b0\u1ee3ng. $BEGIN_LINKT\u00ecm hi\u1ec3u th\u00eam$END_LINK",
YTP_FEATURED:"N\u1ed5i b\u1eadt",YTP_FULLSCREEN:"To\u00e0n m\u00e0n h\u00ecnh",YTP_INCREASE_PLAYBACK_SPEED:"T\u0103ng t\u1ed1c \u0111\u1ed9 ph\u00e1t l\u1ea1i",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"Qu\u1ea3ng c\u00e1o",YTP_GOTO_LIVE_TOOLTIP:"B\u1ecf qua t\u1edbi ph\u00e1t tr\u1ef1c ti\u1ebfp.",YTP_KEYBOARD_SHORTCUTS:"Ph\u00edm t\u1eaft",YTP_LIVE:"Tr\u1ef1c ti\u1ebfp",YTP_LIVE_NOW:"TR\u1ef0C TI\u1ebeP",YTP_LOOP:"V\u00f2ng l\u1eb7p",YTP_MIX:"T\u1ed5ng h\u1ee3p",YTP_MORE:"Th\u00eam",YTP_MDX_TITLE:"Ph\u00e1t tr\u00ean",
YTP_MDX_TOOLTIP:"Ph\u00e1t tr\u00ean TV",YTP_MDX_MY_COMPUTER:"M\u00e1y t\u00ednh n\u00e0y",YTP_MUTE:"T\u1eaft ti\u1ebfng",YTP_NEXT:"Ti\u1ebfp theo",YTP_NEXT_VIDEO_IN:"Video ti\u1ebfp theo sau $TIME_LEFT",YTP_NORMAL_SPEED:"Chu\u1ea9n",YTP_ON:"B\u1eadt",YTP_OFF:"T\u1eaft",YTP_OPTIONS:"T\u00f9y ch\u1ecdn",YTP_PLAY_ALL:"Ph\u00e1t t\u1ea5t c\u1ea3",YTP_PLAY_PAUSE:"Chuy\u1ec3n \u0111\u1ed5i ph\u00e1t/t\u1ea1m d\u1eebng",YTP_PREVIOUS:"Tr\u01b0\u1edbc",YTP_PLAYBACK_STALLED_AT_START:"N\u1ebfu ph\u00e1t l\u1ea1i kh\u00f4ng b\u1eaft \u0111\u1ea7u ngay, h\u00e3y th\u1eed kh\u1edfi \u0111\u1ed9ng l\u1ea1i thi\u1ebft b\u1ecb c\u1ee7a b\u1ea1n.",
YTP_MISSING_FORMATS:"Thi\u1ebfu t\u00f9y ch\u1ecdn?",YTP_PLAYLIST:"Danh s\u00e1ch ph\u00e1t",YTP_PLAYLIST_UP_NEXT:"Ti\u1ebfp theo",YTP_QUALITY_TITLE:"Ch\u1ea5t l\u01b0\u1ee3ng",YTP_SUGGESTED_VIDEOS:"Video \u0111\u01b0\u1ee3c \u0111\u1ec1 xu\u1ea5t",YTP_REPLAY:"Ph\u00e1t l\u1ea1i",YTP_REPORT_ISSUE:"B\u00e1o c\u00e1o v\u1ea5n \u0111\u1ec1 v\u1ec1 ph\u00e1t",YTP_SEEK_BACK:"T\u00ecm ki\u1ebfm l\u00f9i l\u1ea1i 10 gi\u00e2y",YTP_SEEK_FORWARD:"T\u00ecm ki\u1ebfm ti\u1ebfn l\u00ean 10 gi\u00e2y",YTP_SEEK_PERCENT:"T\u00ecm ki\u1ebfm t\u1edbi 0%-90%.",
YTP_SETTINGS:"C\u00e0i \u0111\u1eb7t",YTP_SHARE:"Chia s\u1ebb",YTP_SHARE_LINK:"Chi\u0309a se\u0309 li\u00ean k\u00ea\u0301t",YTP_SHARE_WITH_PLAYLIST_2:"Bao g\u1ed3m danh s\u00e1ch ph\u00e1t",YTP_SHOW_VIDEO_INFO:"Th\u1ed1ng k\u00ea b\u1ed9 nh\u1edb",YTP_SIGN_IN:"\u0110\u0103ng nh\u00e2\u0323p",YTP_SPHERICAL_CONTROL:"Ki\u1ec3m so\u00e1t video h\u00ecnh c\u1ea7u. S\u1eed d\u1ee5ng c\u00e1c ph\u00edm m\u0169i t\u00ean \u0111\u1ec3 xoay video.",YTP_SPEED_TITLE:"T\u1ed1c \u0111\u1ed9",YTP_ST_COLLAPSE:"Thu g\u1ecdn",
YTP_ST_EXPAND:"M\u1edf r\u1ed9ng",YTP_SUBTITLES:"Ph\u1ee5 \u0111\u1ec1",YTP_SUBTITLES_TOOLTIP:"Ph\u1ee5 \u0111\u1ec1",YTP_SUBTITLES_OFF:"Ph\u1ee5 \u0111\u1ec1 t\u1eaft",YTP_SUBTITLES_ON:"Ph\u1ee5 \u0111\u1ec1 b\u1eadt",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"C\u1eb7p \u1ea3nh n\u1ed5i m\u00e0u b\u1ed5 sung",YTP_THEATER_MODE:"Ch\u1ebf \u0111\u1ed9 nh\u00e0 h\u00e1t",YTP_TOGGLE_FULLSCREEN:"Chuy\u1ec3n sang to\u00e0n m\u00e0n h\u00ecnh.",YTP_TOGGLE_MUTE:"Chuy\u1ec3n \u0111\u1ed5i t\u1eaft ti\u1ebfng",
YTP_UNMUTE:"B\u1eadt \u00e2m thanh",YTP_URL_NAVIGATE:"Xem tr\u00ean YouTube.com",YTP_URL_NAVIGATE_TO:"Xem tr\u00ean $WEBSITE",YTP_WATCH_ALL:"Xem to\u00e0n b\u1ed9 video",YTP_WATCH_LATER:"Xem sau",YTP_WATCH_LATER_AS_2:"Xem sau b\u1eb1ng t\u00ean $USER_NAME",YTP_ADDED_TO_WATCH_LATER_AS:"\u0110\u01b0\u1ee3c th\u00eam v\u1edbi t\u01b0 c\u00e1ch $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"C\u1eb7p \u1ea3nh n\u1ed5i m\u00e0u b\u1ed5 sung",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"\u0110\u0103ng k\u00fd v\u1edbi t\u00ean $USER_NAME",
YTP_LIKE_AS:"Th\u00edch v\u1edbi t\u00ean $USER_NAME",YTP_DISLIKE_AS:"Kh\u00f4ng th\u00edch v\u1edbi t\u00ean $USER_NAME",YTP_WATCH_NEXT:"Xem video ti\u1ebfp theo",YTP_PLAY:"Ph\u00e1t",YTP_WATERMARK:"H\u00ecnh m\u1edd",YTP_ERROR_STREAMING_UNAVAILABLE:"Ph\u00e1t l\u1ea1i video hi\u1ec7n kh\u00f4ng kh\u1ea3 d\u1ee5ng do video n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c t\u1ea3i xu\u1ed1ng \u0111\u1ec3 xem ngo\u1ea1i tuy\u1ebfn.",YTP_ERROR_LICENSE:"R\u1ea5t ti\u1ebfc, \u0111\u00e3 x\u1ea3y ra l\u1ed7i khi c\u1ea5p ph\u00e9p video n\u00e0y.",
YTP_ERROR_VIDEO_NOT_FOUND:"Kh\u00f4ng th\u1ec3 t\u00ecm th\u1ea5y video n\u00e0y.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"Video n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c t\u1ea3i xu\u1ed1ng s\u1ed1 thi\u1ebft b\u1ecb t\u1ed1i \u0111a m\u00e0 ch\u1ee7 b\u1ea3n quy\u1ec1n cho ph\u00e9p. B\u1ea1n c\u1ea7n b\u1ecf ghim video n\u00e0y tr\u00ean m\u1ed9t thi\u1ebft b\u1ecb kh\u00e1c th\u00ec m\u1edbi c\u00f3 th\u1ec3 ph\u00e1t video n\u00e0y t\u1ea1i \u0111\u00e2y.",YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"\u0110\u00e3 x\u1ea3y ra l\u1ed7i khi k\u00edch ho\u1ea1t video thu\u00ea c\u1ee7a b\u1ea1n. Vui l\u00f2ng t\u1ea3i l\u1ea1i trang n\u00e0y ho\u1eb7c th\u1eed l\u1ea1i sau.",
YTP_ERROR_PURCHASE_NOT_FOUND:"Video n\u00e0y y\u00eau c\u1ea7u thanh to\u00e1n.",YTP_ERROR_PURCHASE_REFUNDED:"Giao d\u1ecbch mua video n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c ho\u00e0n l\u1ea1i ti\u1ec1n.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"T\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n \u0111ang ph\u00e1t video n\u00e0y \u1edf m\u1ed9t v\u1ecb tr\u00ed kh\u00e1c. H\u00e3y t\u1ea3i l\u1ea1i trang n\u00e0y \u0111\u1ec3 ti\u1ebfp t\u1ee5c xem.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Qu\u00e1 tr\u00ecnh ph\u00e1t l\u1ea1i b\u1ecb d\u1eebng do c\u00f3 qu\u00e1 nhi\u1ec1u video thu\u1ed9c c\u00f9ng m\u1ed9t t\u00e0i kho\u1ea3n \u0111ang ph\u00e1t.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Qu\u00e1 tr\u00ecnh ph\u00e1t l\u1ea1i b\u1ecb d\u1eebng do video n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c ph\u00e1t tr\u00ean qu\u00e1 nhi\u1ec1u thi\u1ebft b\u1ecb.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"B\u1ea1n \u0111\u00e3 s\u1eed d\u1ee5ng qu\u00e1 nhi\u1ec1u thi\u1ebft b\u1ecb/\u0111\u1ecba ch\u1ec9 IP trong kho\u1ea3ng th\u1eddi gian 24 gi\u1edd.",YTP_ERROR_UNUSUAL_ACTIVITY:"Do ho\u1ea1t \u0111\u1ed9ng t\u00e0i kho\u1ea3n b\u1ea5t th\u01b0\u1eddng, video n\u00e0y hi\u1ec7n kh\u00f4ng kh\u1ea3 d\u1ee5ng.",
YTP_ERROR_NOT_SIGNED_IN:"H\u00e3y \u0111\u0103ng nh\u1eadp \u0111\u1ec3 ti\u1ebfp t\u1ee5c xem.",YTP_CLOSE:"\u0110o\u0301ng",YTP_EXPAND:"M\u1edf r\u1ed9ng",YTP_ANNOTATIONS:"Ch\u00fa th\u00edch",YTP_DONE:"Ho\u00e0n t\u1ea5t",YTP_SHARE_THIS_PLAYLIST:"Chia s\u1ebb danh s\u00e1ch ph\u00e1t n\u00e0y",YTP_UPLOADED_BY_2:"b\u1edfi $AUTHOR",YTP_SEEK_SLIDER:"Thanh tr\u01b0\u1ee3t t\u00ecm ki\u1ebfm",YTP_PAUSE:"T\u1ea1m d\u1eebng",YTP_AUTOPLAY:"T\u1ef1 \u0111\u1ed9ng ph\u00e1t",YTP_AUTOPLAY_COUNTDOWN_2:"Video ti\u1ebfp theo sau $SECONDS_LEFT n\u1eefa",
YTP_AUTOPLAY_PAUSED:"B\u1ea1n b\u1eadn r\u1ed9n? Ch\u00fang t\u00f4i \u0111\u00e3 t\u1ea1m d\u1eebng t\u1ef1 \u0111\u1ed9ng ph\u00e1t.",YTP_AUTOPLAY_PAUSED_2:"T\u1ef1 \u0111\u1ed9ng ph\u00e1t b\u1ecb t\u1ea1m d\u1eebng.",YTP_AUTOPLAY_CANCEL:"H\u1ee7y t\u1ef1 \u0111\u1ed9ng ph\u00e1t",YTP_WATCH_VIDEO_OR_PLAYLIST:"Xem $TITLE",YTP_CANCEL:"H\u1ee7y",YTP_ON_GOOGLE_PLUS:"Tr\u00ean Google+",YTP_STILL_THERE:"B\u1ea1n c\u00f2n \u1edf \u0111\u00f3 kh\u00f4ng? N\u1ebfu v\u1eady, h\u00e3y nh\u1ea5p v\u00e0o n\u00fat \u1edf b\u00ean d\u01b0\u1edbi \u0111\u1ec3 ti\u1ebfp t\u1ee5c xem danh s\u00e1ch ph\u00e1t.",
YTP_DISMISS:"OK",YTP_RESET:"\u0110\u1eb7t l\u1ea1i",YTP_STOP:"Ng\u1eebng ph\u00e1t l\u1ea1i tr\u1ef1c ti\u1ebfp",YTP_LIKE:"Th\u00edch",YTP_DISLIKE:"Kh\u00f4ng th\u00edch",YTP_SCREENREADER_VOLUME_SETTING:"\u00e2m l\u01b0\u1ee3ng",YTP_SCREENREADER_VOLUME_MUTED:"\u0111\u00e3 t\u1eaft ti\u1ebfng",YTP_SCREENREADER_VOLUME_MUTE:"t\u1eaft ti\u1ebfng",YTP_SCREENREADER_VOLUME_UNMUTE:"b\u1eadt ti\u1ebfng",YTP_SCREENREADER_CONTROL_TOGGLE:"chuy\u1ec3n \u0111\u1ed5i",YTP_SAMPLE_SUBTITLES:"Ph\u1ee5 \u0111\u1ec1 tr\u00f4ng nh\u01b0 th\u1ebf n\u00e0y",
YTP_HTML5_CONTEXT_MENU_LINK:"Gi\u1edbi thi\u1ec7u v\u1ec1 tr\u00ecnh ph\u00e1t HTML5",YTP_HTML5_PROTECTED_FLASH_FALLBACK:"\u0110\u1ec3 xem video n\u00e0y, h\u00e3y c\u00e0i \u0111\u1eb7t Flash Player m\u1edbi nh\u1ea5t ho\u1eb7c th\u1eed d\u00f9ng m\u1ed9t tr\u00ecnh duy\u1ec7t kh\u00e1c. $BEGIN_LINKT\u1ea3i Flash Player$END_LINK.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"\u0110\u1ecbnh d\u1ea1ng video n\u00e0y kh\u00f4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n hi\u1ec7n kh\u00f4ng nh\u1eadn ra b\u1ea5t k\u1ef3 \u0111\u1ecbnh d\u1ea1ng video kh\u1ea3 d\u1ee5ng n\u00e0o. $BEGIN_LINKNh\u1ea5p v\u00e0o \u0111\u00e2y \u0111\u1ec3 truy c\u1eadp c\u00e1c c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p c\u1ee7a ch\u00fang t\u00f4i v\u1ec1 video HTML5.$END_LINK",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"Y\u00eau c\u1ea7u c\u00f3 Adobe Flash Player \u0111\u1ec3 ph\u00e1t l\u1ea1i video. $BEGIN_LINKT\u1ea3i xu\u1ed1ng Flash Player m\u1edbi nh\u1ea5t$END_LINK.",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"Thi\u1ebft b\u1ecb trong Phi\u00ean truy\u1ec1n kh\u00f4ng kh\u1edbp v\u1edbi thi\u1ebft b\u1ecb \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"Video trong Phi\u00ean truy\u1ec1n kh\u00f4ng kh\u1edbp v\u1edbi video \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u.",
YTP_ERROR_CAST_TOKEN_EXPIRED:"Phi\u00ean truy\u1ec1n \u0111\u00e3 h\u1ebft h\u1ea1n. H\u00e3y l\u00e0m m\u1edbi.",YTP_ERROR_CAST_TOKEN_FAILED:"Phi\u00ean truy\u1ec1n kh\u00f4ng kh\u1ea3 d\u1ee5ng. H\u00e3y l\u00e0m m\u1edbi ho\u1eb7c th\u1eed l\u1ea1i sau.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Phi\u00ean truy\u1ec1n kh\u00f4ng h\u1ee3p l\u1ec7. H\u00e3y l\u00e0m m\u1edbi ho\u1eb7c th\u1eed l\u1ea1i sau.",YTP_ERROR_GEO_FAILURE:"Video n\u00e0y kh\u00f4ng kh\u1ea3 d\u1ee5ng \u1edf qu\u1ed1c gia c\u1ee7a b\u1ea1n.",
YTP_ERROR_INVALID_DRM_MESSAGE:"Th\u00f4ng b\u00e1o ri\u00eang c\u1ee7a h\u1ec7 th\u1ed1ng DRM kh\u00f4ng h\u1ee3p l\u1ec7.",YTP_ERROR_RENTAL_EXPIRED:"Th\u1eddi gian thu\u00ea video n\u00e0y \u0111\u00e3 h\u1ebft h\u1ea1n.",YTP_ERROR_RETRYABLE_ERROR:"\u0110\u00e3 x\u1ea3y ra l\u1ed7i m\u00e1y ch\u1ee7 t\u1ea1m th\u1eddi. Vui l\u00f2ng th\u1eed l\u1ea1i sau.",YTP_ERROR_SERVER_ERROR:"\u0110\u00e3 x\u1ea3y ra l\u1ed7i m\u00e1y ch\u1ee7 n\u1ed9i b\u1ed9. Vui l\u00f2ng th\u1eed l\u1ea1i sau.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p ph\u00e1t l\u1ea1i v\u00ec video n\u00e0y \u0111\u00e3 \u0111\u01b0\u1ee3c ghim tr\u00ean m\u1ed9t thi\u1ebft b\u1ecb kh\u00e1c.",
YTP_ERROR_UNSUPPORTED_DEVICE:"Thi\u1ebft b\u1ecb n\u00e0y kh\u00f4ng h\u1ed7 tr\u1ee3 ph\u00e1t l\u1ea1i.",YTP_ERROR_VIDEO_FORBIDDEN:"B\u1ea1n kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p truy c\u1eadp video n\u00e0y.",YTP_ERROR_FORMAT_UNAVALIABLE:"Video n\u00e0y kh\u00f4ng kh\u1ea3 d\u1ee5ng \u1edf ch\u1ea5t l\u01b0\u1ee3ng \u0111\u00e3 ch\u1ecdn. Vui l\u00f2ng th\u1eed l\u1ea1i sau.",YTP_MDX_STATUS_CONNECTED:"\u0110ang ph\u00e1t tr\u00ean",YTP_MDX_STATUS_CONNECTING:"\u0110ang k\u1ebft n\u1ed1i v\u1edbi",
YTP_MDX_STATUS_ERROR:"L\u1ed7i tr\u00ean",YTP_MDX_PLAYER_ERROR:"Video n\u00e0y kh\u00f4ng kh\u1ea3 d\u1ee5ng \u0111\u1ec3 ph\u00e1t l\u1ea1i t\u1eeb xa.",YTP_MDX_PLAYER_RECONNECT_TIME:"Vui l\u00f2ng ki\u1ec3m tra k\u1ebft n\u1ed1i Internet c\u1ee7a b\u1ea1n. S\u1ebd th\u1eed l\u1ea1i sau $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"K\u1ebft n\u1ed1i l\u1ea1i",YTP_DEVICE_FALLBACK:"R\u1ea5t ti\u1ebfc, video n\u00e0y kh\u00f4ng kh\u1ea3 d\u1ee5ng tr\u00ean thi\u1ebft b\u1ecb n\u00e0y.",YTP_AD_INTERRUPT_MESSAGE:"Video c\u1ee7a b\u1ea1n s\u1ebd ph\u00e1t sau qu\u1ea3ng c\u00e1o n\u00e0y.",
YTP_VISIT_ADVERTISERS_SITE:"Truy c\u1eadp trang web c\u1ee7a nh\u00e0 qu\u1ea3ng c\u00e1o",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS / $DURATION",YTP_PLAYLIST_NAME:"Danh s\u00e1ch ph\u00e1t: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"\u0110\u00e3 x\u1ea3y ra l\u1ed7i trong khi truy xu\u1ea5t th\u00f4ng tin chia s\u1ebb. Vui l\u00f2ng th\u1eed l\u1ea1i sau.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"c\u1ee7a $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",
YTP_PLAYER_NORMAL:"Tr\u00ecnh ph\u00e1t video YouTube",YTP_PLAYER_FULLSCREEN:"Tr\u00ecnh ph\u00e1t video YouTube \u1edf ch\u1ebf \u0111\u1ed9 to\u00e0n m\u00e0n h\u00ecnh",YTP_SPONSORED:"\u0110\u01b0\u1ee3c t\u00e0i tr\u1ee3",YTP_SPONSORED_PRODUCT_INFO:"B\u1ea1n nh\u00ecn th\u1ea5y s\u1ea3n ph\u1ea9m n\u00e0y v\u00ec ch\u00fang t\u00f4i cho r\u1eb1ng s\u1ea3n ph\u1ea9m c\u00f3 li\u00ean quan \u0111\u1ebfn video. Ng\u01b0\u1eddi b\u00e1n c\u00f3 th\u1ec3 b\u1ed3i th\u01b0\u1eddng cho Google.",YTP_SPONSORED_PRODUCT_BADGE:"Mua h\u00e0ng",
YTP_AD_SETTINGS_INFO:"Truy c\u1eadp $BEGIN_FORMATC\u00e0i \u0111\u1eb7t qu\u1ea3ng c\u00e1o$END_FORMAT c\u1ee7a Google \u0111\u1ec3 t\u00ecm hi\u1ec3u th\u00eam v\u1ec1 c\u00e1ch nh\u1eafm m\u1ee5c ti\u00eau qu\u1ea3ng c\u00e1o ho\u1eb7c t\u1eeb ch\u1ed1i qu\u1ea3ng c\u00e1o \u0111\u01b0\u1ee3c c\u00e1 nh\u00e2n h\u00f3a.",YTP_PIP:"\u1ea2nh trong \u1ea3nh",YTP_AUTO_TRANSLATE:"D\u1ecbch t\u1ef1 \u0111\u1ed9ng",YTP_SWITCH_CAMERA:"Chuy\u1ec3n \u0111\u1ed5i camera",YTP_MULTICAM_INDEX:"Xem $CAMERA_INDEX / $CAMERA_COUNT",
YTP_MORE_CAMERAS_AVAILABLE:"C\u00e1c camera kh\u00e1c"});this.app.Oa.addEventListener("initializingmode",this.By,this);this.app.Oa.addEventListener("videoplayerreset",this.GG,this);this.app.Oa.addEventListener("videodatachange",this.FG,this);this.app.Oa.addEventListener("presentingplayerstatechange",this.Vx,this)},Eja=function(a,b){a.o=b;
a.I=!1;if(!a.o.parentNode)try{Af(a.B,a.o,0)}catch(d){var c="videoElement_: "+!!a.o+", containerElement: "+!!a.B+", containerElement.childNodes: "+!(!a.B||!a.B.childNodes)+", containerInitiallyTruthy: "+a.U+", isDisposed: "+a.isDisposed();throw Error(c);}a.C&&(a.C.disconnect(),a.C=null);!a.app.T.experiments.$("no_detect_bad_extensions2")&&window.MutationObserver&&(a.C=new window.MutationObserver(w(function(a){for(var b=0;b<a.length;b++){var c=a[b];"style"==c.attributeName&&"100%"==c.target.style.height&&
(window.console.warn("Detected an extension setting the video size to an invalid height, which hides video playback. Restoring the original height..."),this.G=new fg(0,0,0,0),B5(this))}},a)),a.C.observe(a.o,{attributes:!0}));
a.G=new fg(0,0,0,0);B5(a);z2(a);Dja(a)},Dja=function(a){J(a.o,"video-stream");
J(a.o,"html5-main-video");var b=a.app.T;b.Ca&&a.o.setAttribute("data-no-fullscreen",!0);b.Ib&&a.o.setAttribute("webkit-playsinline","");b.Qe&&a.S(a.o,"click",a.o.play,a.o)},D5=function(a,b){if(a.o){var c=a.app.T;
Dw&&(a.o.setAttribute("x-webkit-airplay","allow"),b.title?a.o.setAttribute("title",b.title):a.o.removeAttribute("title"));var d;c.Jg&&b.videoId?d=b.oc(c,"default.jpg"):c.experiments.$("legacy_poster_behavior")||Bc&&!C5&&!Np()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.o.poster=d)}c=b.od("yt:bgcolor");a.B.style.backgroundColor=c?c:"";a.P=Zu(b.od("yt:stretch"));c=b.od("yt:crop");a.K="fullwidth"==c?window.Infinity:Zu(c)},VG=function(a){return(a=a.o)?E5(a.videoWidth,
a.videoHeight):window.NaN},oF=function(a,b){var c=a.Da(),d=F5(a,c,VG(a),b);
return new fg((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)},F5=function(a,b,c,d){c=a.P||c;
a=(0,window.isNaN)(c)?c:a.K||c;var e=E5(b.width,b.height),f;a>e?(f=(0,window.isFinite)(a)?a:c,f={width:b.width,height:b.width/f,aspectRatio:f}):a<e?f={width:b.height*a,height:b.height,aspectRatio:a}:f={width:b.width,height:b.height,aspectRatio:e};d||(0,window.isNaN)(c)||(c>a?f.width=f.height*c:c<a&&(f.height=f.width/c),f.aspectRatio=c);return f},E5=function(a,b){return 1>Math.abs(G5*b-a)||1>Math.abs(G5/a-b)?G5:a/b},H5=function(a){a=(a=hq(a.app))&&a.getPlayerState();
return!a||U(a,2)||gz(a)},z2=function(a){var b="3"==a.app.T.A&&!a.I&&!H5(a);
a.o.controls=b;a.o.tabIndex=b?0:-1},B5=function(a){var b=VG(a),c=a.Da(),d=1,e=Dw?!0:"3"!=a.app.T.A&&!(0,window.isNaN)(VG(a)),f=!1,k=F5(a,c,b);
H5(a)?(b=-c.height,Dw?b*=window.devicePixelRatio:gu&&(b-=window.screen.height),b=new fg(0,b,c.width,c.height)):e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new fg((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,k.height)):b=new fg(0,0,c.width,c.height);hg(a.G,b)||(a.G=b,Xq(a.o,ig(b)),Mq(a.o,jg(b)),f=!0);c=new fg((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);hg(a.D,c)||(a.D=c,f=!0);Gq(a.o,"transform",1==d?"none":"scaleX("+d+")");return f},I5=function(){this.b=[];
this.g=[]},J5=function(a,b,c){c=window.document.createElement(c?"audio":"video");
ta(c,Fja);fm(c,"loadeddata",w(c.g,c));VH&&6<=vx&&fm(c,"webkitbeginfullscreen",w(c.play,c));b||c.src||c.load();a.g.push(c);return c},K5=function(a,b,c,d){kk.call(this);
this.o=a;this.K=w(b,null);this.g=0;this.C=!1;this.A=new $e(window.NaN,window.NaN);this.b=new or(this);G(this,this.b);b=d?4E3:3E3;this.G=new be(qa(this.rb,1,!1),b,this);G(this,this.G);this.H=new be(qa(this.rb,2,!1),b,this);G(this,this.H);this.I=new be(qa(this.rb,512,!1),0,this);G(this,this.I);this.J=c&&0<c.J.length?5E3:3E3;d||(this.D=this.b.S(a,"mouseover",this.Zt),this.b.S(a,"mousemove",this.BG),this.b.S(a,"mouseleave",this.Lz));Dq?this.b.S(a,"keypress",this.vz):this.b.S(a,"focusin",this.qx);this.B=
this.b.S(a,"mousedown",this.Yt);this.F=this.b.S(a,"touchstart",this.$t);this.M=null;this.rb(640,!0)},L5=function(a){Q.call(this,["span"]);
sh(this.element,a)},M5=function(a,b){Q.call(this,["canvas"]);
this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.o=window.NaN;this.H=null},O5=function(a,b){M5.call(this,a,b);
this.J=null;this.F=this.G=this.C=this.B=0;this.D=-75;J(this.element,"ytp-tv-static");N5(this,a,b)},P5=function(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;
break}d=!0}if(d)return c}return b},N5=function(a,b,c){if(b&&c){a.width=a.element.width=b;
a.height=a.element.height=c;var d=window.document.createElement("canvas");d.width=b;d.height=c;for(var e=d.getContext("2d"),f=e.getImageData(0,0,b,c),k=b*c,m=0;m<k;m++){var l=4*m;f.data[l]=f.data[l+1]=f.data[l+2]=Math.floor(35*Math.random());f.data[l+3]=255}e.putImageData(f,0,0);a.J=d;a.G=P5(b);a.F=P5(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}},R5=function(a){Q.call(this,["div",
["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.B=a;this.C=[];void 0==Q5&&(a=window.document.createElement("canvas"),Q5=!(!a.getContext||!a.getContext("2d")));Q5&&(this.o=new O5(1,1),this.o.b(this.element,0),G(this,this.o));a=pF(this.B).Da();this.o&&N5(this.o,a.width,a.height)},S5=function(a){for(var b=0;b<a.length;b++){var c=a[b];
"send_follow_on_ping_action"==c.name&&c.data&&c.data.follow_on_url&&Wp(c.data.follow_on_url)}},Gja=function(a,b,c){T5("add_to_watch_later_list",a,b,c)},Hja=function(a,b,c){T5("delete_from_watch_later_list",a,b,c)},T5=function(a,b,c,d){Sj(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",
dd:{feature:b.feature||null,authuser:b.Eb||null,pageid:b.pageId||null},Hb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.HO||null,add_to_playlists:b.xO||null,plid:Ki("PLAYBACK_ID")||null},context:b.context,onError:b.onError,ab:function(a,c){var d=c.result;d&&d.actions&&S5(d.actions);b.ab.call(this,a,c)},
gc:b.gc,withCredentials:!!d})},U5=function(a,b){Q.call(this,["span",
"","{{sparkline_container}}"]);this.C=a;this.B=b;this.o=new L5("");G(this,this.o);this.g("sparkline_container",this.o)},V5=function(a,b){for(var c=Math.max.apply(Math,b)||1,d=[],e=0;e<b.length;e++)d.push(e/b.length*a.C+","+a.B*(1-b[e]/c));
return'<svg width="'+a.C+'" height="'+a.B+'" viewbox="0 0 '+a.C+" "+a.B+'"><g><polyline stroke="white" fill="none" points="'+d.join(" ")+'"/></g></svg>'},W5=function(a){var b;
b=["button",["html5-video-info-panel-close","ytp-button"],{title:"close"},"[x]"];Q.call(this,["div","html5-video-info-panel",b,["div","html5-video-info-panel-content",["div","",["div","","Video ID:"],["span","","{{video_id}}"]],["div","",["div","","Dimensions:"],["span","","{{dimensions}}"]],["div","",["div","","Resolution:"],["span","","{{resolution}}"]],["div","",["div","","Volume:"],["span","","{{volume}}"]],["div","",["div","","Stream Host:"],["span","","{{stream_host}}"]],["div","",["div","",
"Stream Type:"],["span","","{{stream_type}}"]],["div",{style:"{{cpn_style}}"},["div","","CPN:"],["span",{style:"font-family:monospace"},"{{cpn}}"]],["div","",["div","","Mime Type:"],["span","","{{mime}}"]],["div","",["div","","DASH:"],["span","","{{dash}}"]],["div",{style:"{{drm_style}}"},["div","","Protected:"],["span","","{{drm}}"]],["div","",["div","","Connection Speed:"],["span","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]],["div","",["div","","Buffer Health:"],["span",
"",["span","","{{buffer_health_sparkline}}"],["span","","{{buffer_health_seconds}}"]]],["div",{style:"{{live_latency_style}}"},["div","","Live Latency:"],["span","",["span","","{{live_latency_sparkline}}"],["span","","{{live_latency_message}}"]]],["div","",["div","","Dropped Frames:"],["span","","{{dropped_frames}}"]]]]);b&&this.S(this.la["html5-video-info-panel-close"],"click",this.da);this.B=new U5(200,14);G(this,this.B);this.g("bandwidth_sparkline",this.B);this.D=new U5(200,14);G(this,this.D);
this.g("live_latency_sparkline",this.D);this.C=new U5(200,14);G(this,this.C);this.g("buffer_health_sparkline",this.C);this.F=new be(this.G,500,this);G(this,this.F);this.o=a},X5=function(a){this.A=a;
this.g=this.b=null},Y5=function(a){a.g=null;
a.b&&(vq(a.b),a.b=null)},Z5=function(a,b,c,d){or.call(this);
this.S(a,"click",this.H);this.S(a,"dblclick",this.F);this.G=b;this.o=c;this.B=d||null;this.g=new be(this.D,200,this);G(this,this.g);this.b=!0;this.A=!1;this.C=null},$5=function(a){Aq.call(this,["div",
"ytp-ad-persistent-progress-bar-container",["div","ytp-ad-persistent-progress-bar"]]);this.B=a;this.F=this.la["ytp-ad-persistent-progress-bar"];this.o=null;this.S(a,"presentingplayerstatechange",this.D);this.da();this.D()},a6=function(a){Q.call(this,["div",
"ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.C=new be(this.D,10,this);G(this,this.C);this.B=new be(this.F,10,this);G(this,this.B);this.o=new be(this.G,500,this);G(this,this.o);this.W=a;this.da()},c6=function(a){var b=Xz(a.W);
Zy(b)?(b=a.W.getVideoData(),b.sa&&!b.Zd?b6(a,Ih(),P("YTP_STOP")):b6(a,Bh(),P("YTP_PAUSE"))):U(b,64)||b6(a,Ch(),P("YTP_PLAY"))},d6=function(a,b,c){0>=b?(c=Mh(),b=P("YTP_SCREENREADER_VOLUME_MUTED")):(c=c?Lh():Kh(),b=Math.floor(b)+"% "+P("YTP_SCREENREADER_VOLUME_SETTING"));
b6(a,c,b)},e6=function(a,b,c){c=c?th?'<div class="ytp-icon ytp-icon-fast-rewind"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-9" /><path class="ytp-svg-fill" d="M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z" id="ytp-svg-9" /></svg>':th?'<div class="ytp-icon ytp-icon-fast-forward"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-9" /><path class="ytp-svg-fill" d="M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z" id="ytp-svg-9" /></svg>';
b=P("YTP_PLAYBACK_SPEED_CHANGED",{RATE:b});b6(a,c,b)},b6=function(a,b,c){var d=a.element.children[0];
a.g("label",c||"");b&&sh(d,b);b=a.B;b.isActive()&&ce(b);b=a.o;b.isActive()&&ce(b);a.C.start()},f6=function(a,b){var c=["button",
["ytp-button","ytp-cards-button"],{"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0},["span","ytp-cards-button-icon-default"],["span","ytp-cards-button-icon-shopping"]];Q.call(this,c);var c=lf("ytp-cards-button-icon-default",this.element),d=lf("ytp-cards-button-icon-shopping",this.element);sh(c,th?'<div class="ytp-icon ytp-icon-info-card"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-20" /><path class="ytp-svg-fill" d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z" id="ytp-svg-20" /></svg>');
sh(d,th?'<div class="ytp-icon ytp-icon-shopping-card"></div>':'<svg height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><path class="ytp-svg-shadow" d="M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z" /><path class="ytp-svg-fill" d="M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z" fill-opacity="1" /><path class="ytp-svg-shadow-fill" d="M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z" fill="#000" fill-opacity="0.15" /></svg>');
var e=T(a).experiments,f=a.xa();Pb(Ija,function(a,b){e.$(b)&&E(a,function(a){J(f,a)})});
this.W=a;this.F=b;this.o=null;this.B=new ir(this,250,!0,100);G(this,this.B);this.da();this.N("click",this.C);this.N("mouseover",this.D);lC(this,!0)},lC=function(a,b){b?(a.element.title=P("YTP_DRAWER_HEADER_TEXT_2"),a.o=g6(a.F.g,a.element)):(a.o(),a.o=null,a.element.title="")},h6=function(a,b,c,d,e){this.W=a;
this.Y=b;this.Ca=!!e;this.za=this.ra=this.ma=null;Aq.call(this,c);this.ea=new ir(this,d,!0);G(this,this.ea);Aq.call(this,c);this.da();this.F=null},i6=function(a){a.F&&(window.document.activeElement&&Jf(a.element,window.document.activeElement)&&(Qf(a.F),a.F.focus()),a.F.removeAttribute("aria-expanded"),a.F=null);
a.ma&&(a.qa(a.ma),a.qa(a.ra),a.qa(a.za))},j6=function(a){return a.A&&3!=a.ea.b},l6=function(a,b,c,d){this.B=[c];
this.C=c;k6(this,c);this.size=new bf(0,0);this.H=this.J=null;this.Aa=this.wa=0;h6.call(this,a,b,["div",["ytp-popup",d||null],{child:c}],100,!0);this.N("keydown",this.kH)},k6=function(a,b){a.C.ya("size-change",a.Ch,a);
a.C=b;a.C.subscribe("size-change",a.Ch,a)},m6=function(a){Xq(a.element,a.wa||"100%",a.Aa||"100%");
var b=a.C;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.B.style.height="";var c=Zq(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.C&&(d=Zq(b.la["ytp-panel-header"]).height);b.B.style.height=c.height-d+"px";a.size=c},o6=function(a,b){a.B.push(b);
n6(a,a.C,b)},n6=function(a,b,c,d){a.J&&ce(a.J);
a.H&&ce(a.H);b.ya("back",a.te,a);c.subscribe("back",a.te,a);c.b(a.element);k6(a,c);if(a.A){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;m6(a);d=0==!d?-e.width:a.size.width;Xq(a.element,e);Gq(c.element,"transform","translateX("+d+"px)");Gq(c.element,"opacity","0");a.J=new be(qa(a.lE,b,c,-d),20,a);a.J.start()}else Gq(c.element,"transform","translateX(0)"),Gq(c.element,"opacity","1"),vq(b)},p6=function(a,b,c){for(var d=0;d<c.length;d++)K(c[d].element,"ytp-panel-animating",b);
K(a.element,"ytp-popup-animating",b)},q6=function(a){Aq.call(this,["div",
"ytp-menu","{{content}}",{role:"menu",id:a||null}]);this.o=[]},r6=function(a,b,c){if(c)a.o.push(b),a.element.appendChild(b.element);
else{c=Ab(a.o,b,Jja);if(0<=c)return;c=~c;wb(a.o,c,0,b);Af(a.element,b.element,c)}b.subscribe("size-change",a.B,a);a.R("size-change")},Jja=function(a,b){return b.priority-a.priority},t6=function(a,b,c,d){Aq.call(this,a);
this.priority=b;c&&s6(this,c);d&&this.Mb(d)},u6=function(a,b,c){b=b?b:[];
b.push("ytp-menuitem");a=a?a:{};"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex=0);return[c?"a":"div",b,a,["div","ytp-menuitem-label","{{label}}"],["div","ytp-menuitem-content","{{content}}"]]},s6=function(a,b){a.g("label",b)},v6=function(a,b,c,d){var e=["div",
"ytp-panel"];if(c){var f="ytp-panel-title",k=["div","ytp-panel-header",["button",["ytp-button",f],c]];if(d){var m="ytp-panel-options";k.push(["button",["ytp-button",m],P("YTP_OPTIONS")])}e.push(k)}e.push(["div","ytp-panel-content",{child:b}]);Aq.call(this,e);this.B=this.la["ytp-panel-content"];this.F=b;this.C=!1;c&&(this.S(this.la[f],"click",this.I),this.C=!0,d&&this.S(this.la[m],"click",d));this.F.subscribe("size-change",this.D,this);this.S(a,"fullscreentoggled",this.D)},w6=function(a){var b=u6({"aria-haspopup":!0});
t6.call(this,b,a);this.N("keydown",this.o)},x6=function(a,b){a.element.setAttribute("aria-haspopup",b)},y6=function(a,b){this.o=!1;
var c=u6({role:"menuitemcheckbox","aria-checked":this.o});t6.call(this,c,b,a,["div","ytp-menuitem-toggle-checkbox"]);this.N("click",this.I)},z6=function(a,b){a.o=b;
a.element.setAttribute("aria-checked",a.o)},A6=function(a,b){this.o=a;
this.G=!1;this.ga=new or(this);G(this,this.ga);this.K=new Aq(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);G(this,this.K);this.ka=new v6(a,this.K);G(this,this.ka);this.D=new q6("contextmenu");G(this,this.D);var c=new v6(a,this.D);G(this,c);l6.call(this,a,b,c);J(this.element,"ytp-contextmenu");c=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");Xl&&xc(43)&&(c=!0);hu&&!xc(41)&&(c=!1);c&&(this.I=new Q(["div","ytp-html5-clipboard"]),
G(this,this.I),this.I.b(this.element));this.S(pF(a),"contextmenu",this.PA)},B6=function(a){a.o.Ia()?mr(a.o,a.element,9):a.b(window.document.body)},D6=function(a,b){var c;
if(a.I){Lf(a.I.element,b);zq(a.I.element);try{c=window.document.execCommand("copy")}catch(d){}}c?a.kb():(a.K.Mb(b,"text"),o6(a,a.ka),zq(a.K.element),a.I&&(a.I=null,C6(a)));return c},E6=function(a,b){var c=T(a.o),d=!c.D&&!!b.videoId;
"play"!=c.b?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.A&&(c.fmt=zr(b.A)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.P&&(c.partnerid=b.P),c=Qg("//support.google.com/googleplay/",c));a.M.Xa(d&&b.allowEmbed);a.U.Xa(d);a.P.Xa(d&&!b.sa);a.ca.Mb(c,"href")},C6=function(a){var b=!!a.I;
s6(a.aa,P(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));x6(a.aa,!b);s6(a.M,P(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));x6(a.M,!b);s6(a.U,P(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));x6(a.U,!b);s6(a.P,P(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));x6(a.P,!b)},F6=function(a){this.D=new or(this);
kr.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.C=new be(this.eu,0,this);G(this,this.C);this.eu();this.S(a,"presentingplayerstatechange",this.YG);"detailpage"==T(a).ua&&this.S(a,"videoplayerreset",this.XG)},G6=function(a,b,c){var d=gz(c),e=!T(b).experiments.$("disable_new_pause_state3");
b=U(c,2)&&!BL(b)&&(!e||!Oy(b.app));d||b?a.show():(a.da(),U(c,1)||a.stop())},H6=function(a,b,c,d,e,f,k){or.call(this);
this.b=a;this.H=c;this.F=d;this.o=e;this.g=f;this.G=k;this.A="";a=qa(this.B,!1);this.S(b,"mousedown",a);this.S(c.element,"mousedown",a);this.S(b,"keydown",this.C);this.S(c.element,"keydown",this.C);this.S(b,"keyup",this.D);this.S(c.element,"keyup",this.D)},J6=function(a,b,c){var d=!1,e=T(a.b);
if(!e.ub){switch(b){case 80:c&&(b6(a.g,Eh(),P("YTP_PREVIOUS")),a.b.Sj(),d=!0);break;case 78:c&&(b6(a.g,Ah(),P("YTP_NEXT")),a.b.Rj(),d=!0);break;case 74:b6(a.g,th?'<div class="ytp-icon ytp-icon-rewind-ten-seconds"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-37" /><path class="ytp-svg-fill" d="M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z" id="ytp-svg-37" /></svg>');
a.b.fd(-10);d=!0;break;case 76:b6(a.g,th?'<div class="ytp-icon ytp-icon-forward-ten-seconds"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-11" /><path class="ytp-svg-fill" d="m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z" id="ytp-svg-11" /></svg>');
a.b.fd(10);d=!0;break;case 77:a.b.Jc()?(a.b.unMute(),d6(a.g,a.b.Db(),!1)):(a.b.mute(),d6(a.g,0,!0));d=!0;break;case 75:c6(a.g);Zy(Xz(a.b))?a.b.pauseVideo():a.b.ed();d=!0;break;case 190:if(c){if(e.Y)for(b=a.b.Nj(),c=a.b.app.P,e=0;e<b.length-1;e++)b[e]==c&&(d=b[e+1],a.b.Kh(d,!0),e6(a.g,d,!1),d=!0)}else I6(a,1),d=!0;break;case 188:if(c){if(e.Y)for(b=a.b.Nj(),c=a.b.app.P,e=b.length-1;1<=e;e--)b[e]==c&&(d=b[e-1],a.b.Kh(d,!0),e6(a.g,d,!0),d=!0)}else I6(a,-1),d=!0;break;case 70:uy(a.b)&&(yy(a.b),d=!0)}d&&
a.F.rb(2,!0)}return d},L6=function(a,b,c,d){if(zL(a.b.app.B,"captions")){for(var e=a.b.zb("captions","displaySettings"),f,k=0;k<K6.length;k++){var m=K6[k];
if(m.option==b){f=m.options;break}}for(var l,k=0;k<f.length;k++)f[k].option==e[b]&&(l=k);if(d)if(c){if(0==l)return!1}else if(l==f.length-1)return!1;d={};d[b]=f[(l+(c?f.length-1:1))%f.length].option;a.b.Qm(d);return!0}return!1},I6=function(a,b){if(U(Xz(a.b),4)){var c=a.b.getVideoData().A;
c&&(c=c.video)&&a.b.fd(b/(c.fps||30))}},N6=function(a){var b=["ytp-large-play-button",
"ytp-button"];T(a).isMobile&&b.push("ytp-touch-device");Q.call(this,["button",b,{"aria-label":"{{label}}"}]);sh(this.element,T(a).Sb?th?'<div class="ytp-icon ytp-icon-house-brand-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 60 60" width="100%"><path class="ytp-large-play-button-bg" clip-rule="evenodd" d="M59.6,1.35c0.26,.5,.4,1.13,.4,1.9v53.5c0,.76-0.13,1.4-0.4,1.9c-0.5,.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.33-0.43-2.8-1.3C0.15,58.16,0,57.51,0,56.75V3.25c0-0.83,.16-1.5,.5-2C1,.41,1.91,0,3.25,0h53.5C58.15,0,59.1,.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z" fill="#1f1f1f" fill-rule="evenodd" /><path d="M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z" fill="#fff" /></svg>':
th?'<div class="ytp-icon ytp-icon-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z" fill="#1f1f1e" fill-opacity="0.81" /><path d="m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z" fill="#fff" /><path d="M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z" fill="#ccc" /></svg>');
this.o=a;this.C=!1;this.B=new ir(this,250);G(this,this.B);this.S(a,"presentingplayerstatechange",this.D);M6(this,Xz(a))},M6=function(a,b){if(T(a.o).wf&&!a.C){G6(a.B,a.o,b);
var c;c=(c=a.o.getVideoData())&&c.title?P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):P("YTP_PLAY");a.g("label",c)}else a.da()},O6=function(a,b,c){var d=b.vb(c),e=T(a),f=d.oc(e,"default.jpg");
Q.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.B?b.B.toString():null)},["div","ytp-video-menu-item-index",""+(c+1)],["div","ytp-video-menu-item-now-playing","\u25b6"],["div","ytp-video-menu-item-thumbnail",{style:f?"background-image: url("+f+");":null}],["div","ytp-video-menu-item-title",d.title],["div","ytp-video-menu-item-author",P("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]]);this.o=a;this.B=c;this.N("click",this.C)},
P6=function(a,b){this.B=a;
h6.call(this,a,b,["div","ytp-playlist-menu",{role:"dialog"},["div","ytp-playlist-menu-header",["div","ytp-playlist-menu-title",["a","ytp-playlist-menu-title-name",{href:"{{playlisturl}}"},"{{title}}"],["button",["ytp-playlist-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]],250);var c=this.la["ytp-playlist-menu-close"];sh(c,yh());this.S(c,"click",this.kb);this.S(this.la["ytp-playlist-menu-title-name"],
"click",this.WC);this.D=this.G=this.o=null;this.H=this.la["ytp-playlist-menu-items"];this.C=[]},Q6=function(a,b){a.o!=b&&(a.o&&a.o.ya("shuffle",a.Bm,a),a.o=b,a.G=null,b?b.subscribe("shuffle",a.Bm,a):a.A&&a.da())},R6=function(a,b,c){var d=["button",
["ytp-playlist-menu-button","ytp-button"],{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":P("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];Q.call(this,d);sh(this.la["ytp-playlist-menu-button-icon"],Dh());this.C=a;this.o=null;this.D=b.g;this.S(a,"videodatachange",this.F);this.S(a,"onPlaylistUpdate",this.F);this.S(a,"presentingplayerstatechange",this.B);this.S(a,"appresize",this.B);this.da();this.F();
Mb(this,g6(this.D,this.element));this.N("click",w(c.ye,c,this.element,!1))},S6=function(a,b){var c=["button",
["ytp-replay-button","ytp-button"],{title:P("YTP_REPLAY")}];Q.call(this,c);sh(this.element,Fh());this.o=a;this.S(a,"presentingplayerstatechange",this.C);this.N("click",this.B,this);c=Xz(a);this.Xa(U(c,2));g6(b.g,this.element)},T6=function(a,b){var c=["div",
"ytp-share-panel",{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},["button",["ytp-share-panel-close","ytp-button"],{title:P("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},P("YTP_SHARE")],["a",["ytp-share-panel-link","ytp-no-contextmenu"],{href:"{{link}}",target:"_blank",title:P("YTP_SHARE_LINK"),"aria-label":P("YTP_SHARE_LINK")},"{{linkText}}"],["label","ytp-share-panel-include-playlist",["input","ytp-share-panel-include-playlist-checkbox",
{type:"checkbox",checked:!0}],P("YTP_SHARE_WITH_PLAYLIST_2")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",P("YTP_SHARE_PANEL_ERROR")]]];h6.call(this,a,b,c,250);this.B=a;this.C=b.g;this.o=[];this.I=this.la["ytp-share-panel-inner-content"];this.J=this.la["ytp-share-panel-loading-spinner"];sh(this.J,Hh());this.D=this.la["ytp-share-panel-close"];sh(this.D,yh());this.S(this.D,"click",this.kb);Mb(this,g6(this.C,this.D));
this.H=this.la["ytp-share-panel-include-playlist-checkbox"];this.S(this.H,"click",this.ou);this.G=this.la["ytp-share-panel-link"];Mb(this,g6(this.C,this.G));this.N("click",this.cC);this.S(a,"videoplayerreset",this.da);this.S(a,"fullscreentoggled",this.yH)},Kja=function(a){switch(a){case "facebook":return th?'<div class="ytp-icon ytp-icon-share-facebook"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z" fill="#39579b" /></svg>';
case "googleplus":return th?'<div class="ytp-icon ytp-icon-share-googleplus"></div>':'<svg height="100%" version="1.0" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M34.3,0H3.7C1.7,0,0,1.7,0,3.7v30.5c0,2,1.7,3.7,3.7,3.7h30.5c2,0,3.7-1.7,3.7-3.7V3.7C38,1.7,36.3,0,34.3,0z M13.3,28.5c-5.2,0-9.5-4.3-9.5-9.5c0-5.2,4.3-9.5,9.5-9.5c2.6,0,4.7,.9,6.4,2.5l-2.7,2.7c-1-0.9-2.2-1.4-3.6-1.4 c-3.1,0-5.6,2.6-5.6,5.7s2.5,5.7,5.6,5.7c2.8,0,4.7-1.6,5.1-3.8h-5.1v-3.6h8.9c0.1,.6,.2,1.3,.2,2C22.4,24.6,18.8,28.5,13.3,28.5 z M34.2,19.6H31v3.2h-2.2v-3.2h-3.2v-2.2h3.2v-3.2H31v3.2h3.2V19.6z" fill="#dc4537" /></svg>';
case "twitter":return th?'<div class="ytp-icon ytp-icon-share-twitter"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z" fill="#01abf0" /></svg>';
default:return null}},U6=function(a){for(var b=0;b<a.o.length;b++)vq(a.o[b]),Nb(a.o[b]);
a.o=[]},V6=function(a,b,c,d){var e=["button",
["ytp-button","ytp-share-button"],{title:P("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];Q.call(this,e);sh(this.element,th?'<div class="ytp-icon ytp-icon-sharrow"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-39" /><path class="ytp-svg-fill" d="m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z" id="ytp-svg-39" /></svg>');
this.o=a;this.C=d;this.N("click",w(c.ye,c,this.element,!1));this.S(a,"videodatachange",this.B);this.S(a,"appresize",this.B);this.B();Mb(this,g6(b.g,this.element))},W6=function(a){Q.call(this,["div",
"ytp-webgl-spherical-control",{tabindex:0,"aria-label":P("YTP_SPHERICAL_CONTROL")}]);sh(this.element,th?'<div class="ytp-icon ytp-icon-spherical-control"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 50 50" width="100%"><use opacity="0.15" stroke="#000" stroke-width="2" xlink:href="#ytp-svg-40" /><circle cx="25" cy="25" fill="#fff" id="ytp-svg-40" r="24" /><use opacity="0.15" stroke="#000" stroke-width="1" xlink:href="#ytp-svg-41" /><path d="M11.46,29.41 L9.97,30.90 L4,24.95 L9.97,19 L11.46,20.48 L7.00,24.95 L11.46,29.41 M42.46,24.95 L38,20.48 L39.48,19 L45.46,24.95 L39.48,30.90 L38,29.41 L42.46,24.95 M24.5,42.43 L28.96,37.96 L30.45,39.45 L24.5,45.43 L18.54,39.45 L20.03,37.96 L24.5,42.43 M24.5,6.97 L20.03,11.43 L18.54,9.94 L24.5,3.96 L30.45,9.94 L28.96,11.43 L24.5,6.97 Z" fill="#999" id="ytp-svg-41" /></svg>');
this.o=a;this.aa=this.Z=this.C=this.D=null;this.G=[];this.B=0;this.Y=null;this.F=new mA(w(this.zH,this),null);G(this,this.F);this.K=-1;this.P=this.H=this.U=this.J=this.X=this.I=0;this.M=!1;this.S(a,"videodatachange",this.Bn);this.S(a,"onApiChange",this.Bn);this.da();this.Bn()},X6=function(a,b,c,d){a.X=Ve(b+a.X,-1,1);
a.U=Ve(c+a.U,-1,1);a.P=Ve(d+a.P,-1,1);1!=a.B&&(a.B=1,J(a.element,"ytp-dragging"),a.K=D(),a.F.start())},Y6=function(a){a.F.stop();
a.B=0;a.X=0;a.U=0;a.P=0;a.G=[];he(a.element,"ytp-dragging")},Z6=function(a,b,c,d,e,f){var k=f-a.K;
a.J=(a.I*a.J+(b-e.yaw))/(k+a.I);a.H=(a.I*a.H+(c-e.pitch))/(k+a.I);a.K=f;a.I=k;HL(a.o,{shader:"Spherical",yaw:b,pitch:c,fov:d})},$6=function(a,b){if(-1<a.G.indexOf(b))return!0;
var c=!1;switch(b){case 37:case 65:X6(a,1,0,0);c=!0;break;case 39:case 68:X6(a,-1,0,0);c=!0;break;case 38:case 87:X6(a,0,1,0);c=!0;break;case 40:case 83:X6(a,0,-1,0);c=!0;break;case 107:X6(a,0,0,-1);c=!0;break;case 109:X6(a,0,0,1),c=!0}c&&a.G.push(b);return c},a7=function(a,b){var c=a.G.indexOf(b);
if(-1<c)switch(a.G.splice(c,1),b){case 37:case 65:X6(a,-1,0,0);break;case 39:case 68:X6(a,1,0,0);break;case 38:case 87:X6(a,0,-1,0);break;case 40:case 83:X6(a,0,1,0);break;case 107:X6(a,0,0,1);break;case 109:X6(a,0,0,-1)}0==a.G.length&&(Y6(a),a.B=2,a.F.start())},c7=function(a){var b=["div",
"ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",P("YTP_PLAYBACK_STALLED_AT_START")]];Q.call(this,b);this.D=this.la["ytp-spinner-svg"];sh(this.D,Hh());this.C=this.la["ytp-spinner-message"];this.B=a;this.o=new be(this.show,500,this);this.S(a,"presentingplayerstatechange",this.CH);this.S(a,"onFrescaStateChange",this.jB);this.S(a,"playbackstalledatstart",this.jC);b7(this,Xz(a))},b7=function(a,b){var c;
U(b,128)?c=0:!(c=U(b,16))&&(c=U(b,1))&&(c=zL(a.B.app.B,"fresca"),c=!(c&&c.loaded));c?a.o.start():a.da()},d7=function(a,b){var c=["button",
["ytp-airplay-button","ytp-button"],{title:P("YTP_AIRPLAY")}];Q.call(this,c);this.o=a;this.N("click",this.C);this.S(a,"airplayactivechange",this.B);this.S(a,"airplayavailabilitychange",this.B);this.B();Mb(this,g6(b.g,this.element))},e7=function(a,b){Aq.call(this,["div",
"ytp-storyboard",["div","ytp-storyboard-filmstrip",["div","ytp-storyboard-thumbnail"]],["div","ytp-storyboard-lens",["div","ytp-storyboard-lens-thumbnail"],["div","ytp-storyboard-lens-timestamp-wrapper",["span","ytp-storyboard-lens-timestamp"]]]]);this.C=a;this.Z=b.g;this.U=new wm(this.$G,250,this);G(this,this.U);this.G=pF(a).Da().width;this.D=this.la["ytp-storyboard-filmstrip"];this.ca=this.la["ytp-storyboard-lens"];this.ea=this.la["ytp-storyboard-lens-thumbnail"];this.ga=this.la["ytp-storyboard-lens-timestamp"];
this.aa=this.la["ytp-storyboard-thumbnail"];Bf(this.aa);this.J=0;this.Y=!1;this.P=this.B=0;this.M=this.H=this.F=window.NaN;this.o=null;this.I=new or(this);this.K=new ir(this,100);this.S(this.C,"appresize",this.ZG);this.S(this.C,"beginseeking",this.Zw)},f7=function(a,b){var c=!!a.o;
c&&a.o.ya("l",a.Bj,a);a.o=b&&Mx(b);a.Y=!!b&&b.sa;a.o?(c||(a.I.S(a.C,"videodatachange",a.aH),a.I.S(a.C,"progresssync",a.bk),a.I.S(a.C,"videoplayerreset",a.bk),a.I.S(a.C,"endseeking",a.lx)),a.o.subscribe("l",a.Bj,a),a.M=window.NaN,a.F=window.NaN,a.H=window.NaN,a.bk(),a.K.show(200)):(c&&qr(a.I),a.U.stop(),nv(a.J),a.K.da(),a.K.stop())},g7=function(a,b){var c=a.aa.cloneNode(!1),d=Mu(a.o,b,a.B);
i2(c,d,a.B,a.P);return c},h7=function(a){Q.call(this,["div",
"ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.G=this.la["ytp-storyboard-framepreview-img"];this.o=a;this.B=null;this.F=window.NaN;this.C=new or(this);this.D=new ir(this,100);this.S(a,"beginseeking",this.dH)},j7=function(a,b){var c=!!a.B;
a.B=b&&Mx(b);a.B?(c||(a.C.S(a.o,"videodatachange",a.hH),a.C.S(a.o,"progresssync",a.fH),a.C.S(a.o,"appresize",a.cH),a.C.S(a.o,"presentingplayerstatechange",a.gH),a.C.S(a.o,"endseeking",a.eH)),a.F=window.NaN,i7(a),a.D.show(200)):(c&&qr(a.C),a.D.da(),a.D.stop())},i7=function(a){var b=a.o.getCurrentTime(),c=pF(a.o).Da(),d=Ku(a.B,c.width),b=a.B.b[d].ak(b);
b!=a.F&&(a.F=b,Ou(a.B,b,c.width),b=Mu(a.B,b,c.width),i2(a.G,b,c.width,c.height))},l7=function(a,b){Q.call(this,["button",
["ytp-fullscreen-button","ytp-button"],{title:"{{title}}"}]);this.B=a;this.D=b;this.o=null;this.C=g6(b.g,this.element);this.S(a,"fullscreentoggled",this.Sr);this.S(a,"presentingplayerstatechange",this.fu);this.N("click",this.iH);var c=Sh();c&&this.S(window.document,c,this.lB);T(a).ka||k7(this);this.fu();this.Sr(a.Ia())},k7=function(a){if(!a.o){var b=P(null!=Qh(["requestFullscreen",
"webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.o=new h6(a.B,a.D,["div",["ytp-popup","ytp-generic-popup"],{role:"alert",tabindex:0},b[0],["a",{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},b[2]],b[4]],100,!0);G(a,a.o);a.o.subscribe("show",w(a.D.Vk,a.D,a.o));mr(a.B,a.o.element,4);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",
!0);a.C();a.C=null}},m7=function(a,b,c){var d=["button",
["ytp-multicam-button","ytp-button"],{title:P("YTP_SWITCH_CAMERA"),"aria-haspopup":!0,"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"}];Q.call(this,d);sh(this.element,th?'<div class="ytp-icon ytp-icon-switch-camera"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-44" /><path d="M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z" fill="#fff" id="ytp-svg-44" /></svg>');
this.B=a;this.o=!1;this.C=b.g;this.F=new be(this.G,0,this);G(this,this.F);this.N("click",w(c.ye,c,this.element,!1));this.S(a,"presentingplayerstatechange",qa(this.D,!1));this.S(a,"videodatachange",this.H);this.D(!0);Mb(this,g6(this.C,this.element))},n7=function(a,b){this.C=new or(this);
G(this,this.C);var c=["div","ytp-multicam-menu",{role:"dialog"},["div","ytp-multicam-menu-header",["div","ytp-multicam-menu-title",P("YTP_SWITCH_CAMERA"),["button",["ytp-multicam-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}]]],["div","ytp-multicam-menu-items"]];h6.call(this,a,b,c,250);c=this.la["ytp-multicam-menu-close"];sh(c,yh());this.S(c,"click",this.kb);this.o=a;this.D=this.la["ytp-multicam-menu-items"];this.B=[]},o7=function(a,b,c,d,e,f,k,m){this.A=a;
this.D=b;this.b=c;this.B=d;this.g=e;this.C=f;this.o=k;this.F=m},p7=function(){this.A=null;
this.B=this.b=0;this.o=new mA(this.g,null,this);G(this,this.o)},t7=function(a,b,c){var d=window.document.createElement("span");
sh(d,c);c=d.getElementsByTagName("path")[0].getAttribute("d");var e=b.getElementsByTagName("path")[0],d=e.getAttribute("d"),f="ytp-svg-transition-"+na(b);if(e.getAttribute("id")!=f){b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);e.setAttribute("id",f)}var m=q7(d),l=q7(c);r7(a,function(a){e.setAttribute("d",s7(m,l,a))},200)},r7=function(a,b,c){a.A=b;
a.B=Bt();a.b=c;a.g()},q7=function(a){var b=[];
a=a.match(Lja);for(var c=0;c<a.length;c++){var d=(0,window.parseFloat)(a[c]);b.push((0,window.isNaN)(d)?a[c]:d)}return b},s7=function(a,b,c){var d,e="";
for(d=0;d<a.length;d++)var f=a[d],e=ha(f)?e+(f+(b[d]-f)*c):e+f;return e},v7=function(a,b){var c=T(a);
Q.call(this,["button",["ytp-mute-button","ytp-button"],c.U?{title:"{{title}}"}:{"aria-disabled":!0,"aria-haspopup":!0}]);sh(this.element,Mh());this.o=a;this.P=b.g;this.B=this.C=window.NaN;T(this.o).P||(this.D=this.element.getElementsByTagName("path")[0],this.H=this.element.getElementsByTagName("svg")[1],this.J=this.D.getAttribute("d"));this.F=new p7;G(this,this.F);this.N("click",this.I);this.S(a,"appresize",this.G);this.S(a,"onVolumeChange",this.U);var d=null;c.U?Mb(this,g6(b.g,this.element)):(c=
P("YTP_VOLUME_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/),d=new h6(a,b,["span",["ytp-popup","ytp-generic-popup"],{tabindex:0},c[0],["a",{href:"https://support.google.com/youtube/?p=noaudio",target:"_blank"},c[2]],c[4]],100,!0),G(this,d),d.subscribe("show",w(b.Vk,b,d)),mr(a,d.element,4));this.M=d;this.G(pF(a).Da());u7(this,a.Db(),a.Jc())},u7=function(a,b,c){var d=c?0:b/100;
b=T(a.o);if(b.P)d=0==d?Mh():0<d&&.5>d?Lh():Kh(),d!=a.K&&(sh(a.element,d),a.K=d);else if(d=d?.5*Math.ceil(d/.5):-.5,a.B!=d){var e=a.C;(0,window.isNaN)(e)?w7(a,d):r7(a.F,w(function(a){w7(this,e+(this.B-e)*a)},a),250);
a.B=d}b.U&&(a.g("title",c?P("YTP_UNMUTE"):P("YTP_MUTE")),x7(a.P))},w7=function(a,b){a.C=b;
var c=a.J,d=Ve(2*b,0,1);d&&(c+=" "+s7(Mja,Nja,d),(d=Ve(2*(b-.5),0,1))&&(c+=" "+s7(Oja,Pja,d)));a.D.setAttribute("d",c);a.H.style.opacity=Math.max(b/-.5,0)},y7=function(a,b){var c=["button",
["ytp-pip-button","ytp-button"],{title:P("YTP_PIP")}];Q.call(this,c);sh(this.element,th?'<div class="ytp-icon ytp-icon-pip"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-31" /><path d="m 24.36,17.11 -7.27,0 0,5.33 7.27,0 0,-5.33 0,0 z M 28,24.22 28,11.76 C 28,10.78 27.18,10 26.18,10 L 9.81,10 C 8.81,10 8,10.78 8,11.76 L 8,24.22 C 8,25.2 8.81,26 9.81,26 L 26.18,26 C 27.18,26 28,25.2 28,24.22 l 0,0 z m -1.81,.01 -16.36,0 0,-12.48 16.36,0 0,12.48 0,0 z" fill="#fff" id="ytp-svg-31" /></svg>');
this.o=a;this.N("click",this.B);Mb(this,g6(b.g,this.element))},A7=function(a,b){Q.call(this,["button",
["ytp-play-button","ytp-button"],{title:"{{title}}","aria-label":"{{label}}"}]);this.o=a;this.B=null;this.D=b.g;this.C=null;this.F=new p7;G(this,this.F);this.S(a,"fullscreentoggled",this.G);this.S(a,"presentingplayerstatechange",this.H);this.S(a,"videodatachange",this.G);z7(this,Xz(a));this.N("click",this.I,this)},B7=function(a){switch(a){case 1:return Ch();
case 2:return Bh();case 3:return Fh();case 4:return Ih();default:return""}},z7=function(a,b){var c,d=Tx(a.o.getVideoData()),e=!1;
Zy(b)?c=d?4:2:U(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.B!=c){var f;switch(c){case 2:f=P("YTP_PAUSE");break;case 3:f=P("YTP_REPLAY");break;case 1:f=P("YTP_PLAY");break;case 4:f=P("YTP_STOP")}3==c?(a.C||(a.C=g6(a.D,a.element)),sh(a.element,B7(c)),a.update({title:f,label:null})):(a.C&&(a.C(),a.C=null),a.update({title:null,label:f}),d=B7(c),a.B&&3!=a.B&&!T(a.o).P?t7(a.F,a.element,d):sh(a.element,d));x7(a.D);a.B=c}},C7=function(a,b,c){var d,e;
c?(d="ytp-next-button",e=Ah()):(d="ytp-prev-button",e=Eh());Q.call(this,["a",[d,"ytp-button"],{title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"}]);sh(this.element,e);this.o=a;this.K=b.g;this.C=c;this.B=this.H=null;this.J=!1;this.G=this.I=this.D=null;this.F=!1;this.S(a,"fullscreentoggled",this.Hg);this.S(a,"videodatachange",this.Hg);this.S(a,"onPlaylistUpdate",
this.Hg);this.C||this.S(a,"appresize",this.gu);this.Hg()},D7=function(a){a.B&&a.B.ya("shuffle",a.Hg,a)},E7=function(a){return!!a.B&&!a.C&&3<=a.o.getCurrentTime()&&2!=a.o.getPresentingPlayerType()},F7=function(a){var b={duration:null,
preview:null,text:null,title:null,url:null},c=T(a.o),d=DL(a.o),e=a.C&&Ey(a.o);if(a.F)b.title=P("YTP_REPLAY");else if(d){var f=null;a.B&&(f=a.B.vb(a.C?ey(a.B):fy(a.B)));if(f){if(f.videoId){var k=a.B.B;b.url=c.getVideoUrl(f.videoId,k?k.toString():void 0)}b.text=f.title;b.duration=f.lengthSeconds?jy(f.lengthSeconds):null;b.preview=f.oc(c,"default.jpg")}b.title=P(a.C?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.H.H&&a.H.H.length&&(f=ly(a.H.H[0]),b.url=f.ol(c),b.text=f.title,b.duration=f instanceof ox?jy(f.lengthSeconds):
null,b.preview=f.oc(c,"default.jpg")),b.title=P("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.J=!!b.url;e||d||a.F?a.D||(a.D=g6(a.K,a.element),a.I=a.N("click",a.mH,a)):a.D&&(a.D(),a.D=null,a.qa(a.I),a.I=null);x7(a.K)},H7=function(a,b){var c=["div",
"ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:0,role:"slider","aria-label":P("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div",["ytp-play-progress","ytp-swatch-background-color"]],["div","ytp-load-progress"],["div","ytp-hover-progress"],["div","ytp-clip-start-exclude"],["div","ytp-clip-end-exclude"],
["div","ytp-ad-progress-list"],["div","ytp-marker-crenellation-list"],["div","ytp-marker-progress-list"]],["div",["ytp-scrubber-button","ytp-swatch-background-color"],["div","ytp-scrubber-pull-indicator"]]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div","ytp-clip-start",{title:P("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:P("YTP_WATCH_ALL")}]];Aq.call(this,c);this.B=a;this.Ca=b.g;this.ma=!1;this.D=this.Fa=0;this.aa=1;this.qb=this.H=
0;this.F=window.NaN;this.Ua=!1;this.M=this.Z=0;this.ub=this.la["ytp-ad-progress-list"];this.yb=this.la["ytp-marker-progress-list"];this.Pa=this.la["ytp-marker-crenellation-list"];this.Y={};this.ga={};this.P=window.Infinity;c=b.g;this.J=this.la["ytp-clip-end"];sh(this.J,wh());Mb(this,g6(c,this.J));this.ka=new a2(this.J,!0);G(this,this.ka);this.ka.subscribe("hoverstart",this.ju,this);this.ka.subscribe("hoverend",this.iu,this);this.S(this.J,"click",this.ck);this.Ja=this.la["ytp-clip-end-exclude"];this.Bb=
this.la["ytp-clip-start-exclude"];this.U=0;this.K=this.la["ytp-clip-start"];sh(this.K,xh());Mb(this,g6(c,this.K));this.ra=new a2(this.K,!0);G(this,this.ra);this.ra.subscribe("hoverstart",this.ju,this);this.ra.subscribe("hoverend",this.iu,this);this.S(this.K,"click",this.ck);this.gb=this.la["ytp-load-progress"];this.ea=0;this.Ib=this.la["ytp-play-progress"];this.ca=this.la["ytp-hover-progress"];this.G=0;this.ib=this.la["ytp-progress-bar"];this.C=null;this.Aa=this.la["ytp-scrubber-button"];this.za=
new $e;this.Za=new h2;this.o=new d2(0,0);this.I=this.wa=!1;this.$a=null;this.S(a,"presentingplayerstatechange",this.oH);this.S(a,"videodatachange",this.hu);this.S(a,"videoplayerreset",this.Sx);this.S(a,"cuerangesadded",this.mu);this.S(a,"cuerangesremoved",this.wH);this.S(a,"cuerangemarkersupdated",this.mu);this.S(a,"onPlaybackQualityChange",this.pH);G7(this,a.getVideoData(),!0)},L7=function(a){if(a.D){var b=a.B.rf(),c=new d2(b.seekableStart,b.seekableEnd),d=g2(c,b.loaded,0),b=g2(c,b.current,0),e=
a.o.g!=c.g||a.o.b!=c.b;
a.o=c;I7(a,b,d);e&&J7(a);K7(a)}},G7=function(a,b,c){var d=!!b&&Ox(b);
a.wa=d&&b.Zd;M7(a,ML(a.B));c&&(d?(c=b.clipEnd,a.U=b.clipStart,a.P=c,N7(a),I7(a,a.G,a.ea)):a.ck(),b=a.Ca,1==b.o&&b.qc());L7(a)},O7=function(a){return!!a&&Ox(a)&&!!a.A&&a.A.video.isAccelerated&&a.A.video.g},P7=function(a,b){a.Ua=b;
K(a.gb,"ytp-fast-load",b)},Q7=function(a,b,c,d){b=Ve(b,0,a.I?60:40);
a.H=b;var e=a.aa;a.aa=b/(a.I?60:40)*(Math.max(e2(a.o)/a.D,1)-1)+1;b=a.D*a.aa;a.M=Ve(d*b-c,0,b-a.D);e!=a.aa&&J7(a)},J7=function(a){var b=R7(a),c=-b.A/b.b,d=(-b.A+b.width)/b.b,e=Ef(a.Pa),f=0;
if(a.H>.2*(a.I?60:40))for(var k=e2(a.o)/60*d,m=Math.ceil(e2(a.o)/60*c);m<k;m++){var l=e[f];l||(l=window.document.createElement("div"),a.Pa.appendChild(l));f++;l.className=0==m%60?"ytp-60m-progress":0==m%30?"ytp-30m-progress":0==m%15?"ytp-15m-progress":"ytp-1m-progress";l.style.left=(60*m/e2(a.o)-c)*b.b+"px"}b=a.wa?a.o.b:0;a.update({boundTimeLeft:jy(f2(a.o,c)-b),boundTimeRight:jy(f2(a.o,d)-b)});for(c=e.length-1;c>=f;c--)Bf(e[c]);a.element.style.height=a.H+(a.I?8:5)+"px";a.R("height-change",a.H);a.Aa.style.height=
a.H+(a.I?20:13)+"px";for(var p in a.Y)S7(a,a.Y[p],a.ga[p]);N7(a);I7(a,a.G,a.ea)},R7=function(a){var b=a.za.x,c=a.D*a.aa,b=Ve(b,0,a.D);
a.Za.update(b,a.D,-a.M,-(c-a.M-a.D));return a.Za},I7=function(a,b,c){a.G=b;
a.ea=c;var d=R7(a),e=a.o.b,f=f2(a.o,a.G);a.update({ariamin:Math.floor(a.o.g),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:P("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:jy(f),DURATION:jy(e)})});var e=g2(a.o,a.U,0),k=g2(a.o,a.P,1),f=Ve(b,e,k);c=a.Ua?1:Ve(c,e,k);k=b*d.b+d.A;a.Aa.style.display=0<=k&&b<=d.width?"":"none";a.Aa.style.left=k+"px";T7(a,a.Ib,d,e,f);T7(a,a.gb,d,e,c)},T7=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.b+c.A,0)+"px";
d=Math.min((e-d)*c.b+c.A,c.width);f||T(a.B).isMobile?(b.style.width=d+"px",Iq(b,"transform")):Gq(b,"transform","scalex("+(c.width?d/c.width:0)+")")},N7=function(a){var b=a.U>a.o.g,c=0<a.o.b&&a.P<a.o.b;
K(a.element,"ytp-clip-start-enabled",b);K(a.element,"ytp-clip-end-enabled",c);b=b?g2(a.o,a.U,0):0;c=c?g2(a.o,a.P,1):1;a.K.style.left=Math.round(1E3*b)/10+"%";a.J.style.left=Math.round(1E3*c)/10+"%";a.Bb.style.width=Math.round(1E3*b)/10+"%";a.Ja.style.left=Math.round(1E3*c)/10+"%";a.Ja.style.width=Math.round(1E3*(1-c))/10+"%"},K7=function(a){var b=R7(a);
T7(a,a.ca,b,a.G,b.g);K(a.ca,"ytp-hover-progress-light",b.g>a.G)},S7=function(a,b,c){var d=R7(a),e=g2(a.o,b.start/1E3,0),f;
a:{switch(b.style){case "ytp-chapter-marker":f=8;break a;case "ytp-ad-progress":f=6;break a;case "ytp-time-marker":f=Number.POSITIVE_INFINITY;break a}f=void 0}var k=f/d.width;switch(b.style){case "ytp-chapter-marker":f=e+k/2;e-=k/2;break;default:f=g2(a.o,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=Ve(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}T7(a,c,d,e,f,!0);c.className=b.style},U7=function(a,b){var c=b.getId();
a.Y[c]==b&&(Bf(a.ga[c]),delete a.Y[c],delete a.ga[c])},M7=function(a,b){b?a.C||(a.element.removeAttribute("aria-disabled"),a.C=new a2(a.ib,!0),a.C.subscribe("hovermove",a.tH,a),a.C.subscribe("hoverend",a.sH,a),a.C.subscribe("dragstart",a.rH,a),a.C.subscribe("dragmove",a.vH,a),a.C.subscribe("dragend",a.uH,a),a.$a=a.N("keydown",a.qH)):a.C&&(a.element.setAttribute("aria-disabled",!0),a.qa(a.$a),a.C.cancel(),a.C.dispose(),a.C=null)},W7=function(a){Q.call(this,["div",
"ytp-remote",["div","ytp-remote-display-status",["div","ytp-remote-display-status-icon"],["div","ytp-remote-display-status-text","{{statustext}}"],["div","ytp-remote-display-status-receiver","{{receiver}}"]]]);this.o=new ir(this,250);G(this,this.o);this.B=a;sh(this.la["ytp-remote-display-status-icon"],uh());this.S(a,"presentingplayerstatechange",this.C);V7(this,Xz(a))},V7=function(a,b){if(3==a.B.getPresentingPlayerType()){var c;
c=U(b,128)?P("YTP_MDX_PLAYER_ERROR"):P("YTP_MDX_STATUS_CONNECTED");var d=a.B.zb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.o.show()}else a.o.da()},X7=function(a,b,c){var d=["button",
["ytp-remote-button","ytp-button"],{title:P("YTP_MDX_TOOLTIP")}];Q.call(this,d);this.W=a;this.D=c;this.B=null;this.S(a,"onMdxReceiversChange",this.o);this.S(a,"presentingplayerstatechange",this.o);this.S(a,"appresize",this.o);this.o();this.N("click",this.C,this);Mb(this,g6(b.g,this.element))},Y7=function(a,b){y6.call(this,P("YTP_ANNOTATIONS"),5);
this.D=b;this.W=a;this.B=!1;this.S(a,"videodatachange",this.C);this.S(a,"onApiChange",this.C);this.subscribe("select",this.F,this);this.C()},Z7=function(a,b,c,d,e){var f=u6({"aria-haspopup":!0});
t6.call(this,f,b,a);this.o=d;this.H=null;this.B={};this.F=new q6;G(this,this.F);this.K=new v6(c,this.F,a,e);G(this,this.K);this.N("keydown",this.xH);this.N("click",this.open)},$7=function(a,b){for(var c=a.F,d=0;d<c.o.length;d++)c.o[d].ya("size-change",c.B,c);
c.o=[];c.Mb([]);c.R("size-change");for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.B[f],m=f==a.H;m&&(d=!0);if(k&&k.priority==-e){var m=a,l=f;s6(m.B[l],m.Qc(l,!0));delete a.B[f]}else k=new t6(["div","ytp-menuitem",{tabindex:0,role:"menuitemradio","aria-checked":m?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.Qc(f,!0)),k.N("click",w(a.ZB,a,f));c[f]=k;r6(a.F,k,!0)}d||(a.H=null);for(f in a.B)a.B[f].dispose();a.B=c},a8=function(a,b){Z7.call(this,P("YTP_AUDIO_TRACK_TITLE"),2,a,b);
this.W=a;this.I=new Q(["div","",["span","",P("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);s6(this,this.I);this.J={};this.C=!1;this.S(a,"videodatachange",this.G);this.S(a,"onPlaybackAudioChange",this.G);this.G()},b8=function(a,b){y6.call(this,P("YTP_AUTOPLAY"),6);
this.G=b;this.W=a;this.D=!1;this.B=[];this.S(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.H,this);this.C()},c8=function(a,b){Z7.call(this,P("YTP_QUALITY_TITLE"),1,a,b);
J(this.F.element,"ytp-quality-menu");this.W=a;this.J={};this.I="unknown";this.C=!1;this.S(a,"videodatachange",this.D);this.S(a,"videoplayerreset",this.D);this.S(a,"onPlaybackQualityChange",this.G);this.D()},d8=function(a,b,c){var d=(a=a.J[b])?a.qualityLabel:(d=Hr[b])?d+"p":P("YTP_AUTO");
c=["span",c,d];var e;a&&a.isAccelerated&&a.g?c.push(["div","ytp-menuitem-badge-container",{child:new L5('<svg fill="#00838f" height="11px" viewBox="0 0 48 48" width="11px"><path d="M0 0v48h48V0H0zm10.6 30.64L4 24.05l6.69-6.69 6.6 6.59-6.69 6.69zM24 44l-6.7-6.7 13.35-13.35-13.32-13.28L24 4l20 20-20 20z" /><path d="M 24,44 44,24 24,4 17.33,10.67 30.65,23.95 17.3,37.3 z M 10.6,30.64 17.29,23.95 10.69,17.36 4,24.05 z" fill="#fff" /></svg>')}]):"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":
0==b.indexOf("hd")&&(e="HD");e&&(c.push(" "),c.push(["sup","ytp-swatch-color",e]));return c},e8=function(a,b){Z7.call(this,P("YTP_MDX_TITLE"),0,a,b);
this.W=a;this.C=!1;this.I={};this.S(a,"onMdxReceiversChange",this.G);this.S(a,"presentingplayerstatechange",this.G);this.G()},f8=function(a,b){Z7.call(this,P("YTP_SPEED_TITLE"),4,a,b);
this.W=a;this.C=!1;this.D=null;this.S(a,"presentingplayerstatechange",this.pu);this.pu()},h8=function(a,b,c,d){Z7.call(this,g8(d),a,b,c);
J(this.element,"ytp-subtitles-options-menu-item");this.G=d.option.toString();this.C=Ib(d.options,this.D,this);$7(this,zi(d.options,this.D))},g8=function(a){return(a.message?P(a.message):a.text)||""},i8=function(a,b){this.G={};
this.o=new q6;for(var c=0;c<K6.length;c++){var d=K6[c],e=new h8(-c,a,b,d);G(this,e);e.subscribe("settingChange",this.H,this);this.G[d.option.toString()]=e;r6(this.o,e,!0)}c=new t6(u6(),-K6.length,P("YTP_RESET"));G(this,c);c.N("click",w(this.H,this,"reset",!0));r6(this.o,c,!0);v6.call(this,a,this.o,P("YTP_OPTIONS"))},j8=function(a,b){for(var c in b){var d=a.G[c];
if(d){var e=b[c].toString();d.B[e]&&d.gd(e)}}},k8=function(a,b){Z7.call(this,P("YTP_AUTO_TRANSLATE"),0,a,b);
this.C={}},l8=function(a,b){Z7.call(this,P("YTP_SUBTITLES"),3,a,b,w(this.hE,this));
this.W=a;this.J=!1;this.C={};this.I=new Q(["div","",["span","",P("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);G(this,this.I);s6(this,this.I);this.G=new k8(a,b);G(this,this.G);this.G.subscribe("select",this.aD,this);this.D=new i8(a,b);G(this,this.D);this.D.subscribe("settingChange",this.EH,this);this.S(a,"videodatachange",this.Th);this.S(a,"onApiChange",this.Th);this.S(a,"onCaptionsTrackListChanged",this.Th);this.S(a,"captionschanged",this.Th);this.Th()},o8=function(a,b){Z7.call(this,
P("YTP_THREED_SHORT"),7,a,b);
this.W=a;this.C=!1;this.S(a,"videodatachange",this.G);this.D=null;this.G()},p8=function(a,b){this.o=a;
this.D=new q6("ytp-main-menu-id");G(this,this.D);var c=new v6(a,this.D);G(this,c);l6.call(this,a,b,c,"ytp-settings-menu");this.I=this.G=null;this.K=!1},r8=function(a){if(!a.K){a.K=!0;
var b=new c8(a.o,a);G(a,b);b=new l8(a.o,a);G(a,b);b=new Y7(a.o,a);G(a,b);T(a.o).Y&&(b=new f8(a.o,a),G(a,b));b=new o8(a.o,a);G(a,b);T(a.o).gb&&(b=new b8(a.o,a),G(a,b));b=new a8(a.o,a);G(a,b);T(a.o).o&&(a.I=new e8(a.o,a),G(a,a.I));q8(a.G,a.D.o.length)}},s8=function(a,b){r6(a.D,b);
q8(a.G,a.D.o.length)},t8=function(a,b){a.A&&1>=a.D.o.length&&a.da();
a.D.remove(b);q8(a.G,a.D.o.length)},u8=function(a,b,c){var d=["button",
["ytp-button","ytp-settings-button"],{"aria-haspopup":!0,"aria-owns":"ytp-main-menu-id",title:P("YTP_SETTINGS")}];Q.call(this,d);sh(this.element,Gh());this.B=c;this.W=a;this.D=!0;this.N("click",this.F);this.S(a,"onPlaybackQualityChange",this.o);this.S(a,"videodatachange",this.o);this.S(a,"webglsettingschanged",this.o);this.S(a,"appresize",this.C);Mb(this,g6(b.g,this.element));this.o();this.C(pF(a).Da())},q8=function(a,b){a.D=!!b;
a.C(pF(a.W).Da())},v8=function(a,b){Q.call(this,["button",
["ytp-size-button","ytp-button"],{title:"{{title}}"}]);this.o=a;this.D=b.g;this.C=null;this.F=new p7;G(this,this.F);this.S(a,"sizestylechange",this.B);this.S(a,"fullscreentoggled",this.B);this.S(a,"presentingplayerstatechange",this.B);this.B();this.N("click",this.G);Mb(this,g6(this.D,this.element))},w8=function(a,b){var c=["button",
["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:P("YTP_SUBTITLES_TOOLTIP")}];Q.call(this,c);this.B=a;sh(this.element,Jh());this.S(a,"videodatachange",this.o);this.S(a,"appresize",this.o);this.S(a,"onApiChange",this.o);this.S(a,"onCaptionsTrackListChanged",this.o);this.S(a,"captionschanged",this.o);this.o();this.N("click",this.C);Mb(this,g6(b.g,this.element))},x8=function(a,b){Q.call(this,["div",
["ytp-time-display","notranslate"],["span","ytp-time-current","{{currenttime}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"]]);this.D=new Q(["button",["ytp-live-badge","ytp-button"],{disabled:!0},P("YTP_LIVE")]);G(this,this.D);this.D.b(this.element);this.o=a;this.I=b.g;this.B=null;this.F=this.C=!1;this.H=this.G=null;this.N("click",this.FH);this.S(a,"presentingplayerstatechange",this.Ig);this.S(a,"appresize",this.Ig);this.S(a,"liveviewshift",this.GH);this.S(a,"videodatachange",
this.HH);var c=a.getVideoData();c&&(this.C=c.sa,K(this.element,"ytp-live",this.C));this.Ig()},z8=function(a,b,c){Q.call(this,["div",
"ytp-volume-panel",{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},["div","ytp-volume-slider",["div","ytp-volume-slider-handle"]]]);this.o=a;this.G=b;this.M=c;this.J=!1;this.I=rF(b);this.U=this.D=0;this.P=this.la["ytp-volume-slider"];this.X=this.la["ytp-volume-slider-handle"];this.H=new a2(this.P,!0);G(this,this.H);this.H.subscribe("dragstart",this.QC,this);this.H.subscribe("dragmove",this.PC,this);this.H.subscribe("dragend",
this.OC,this);this.K=null;this.B=this.C=this.F=!1;this.S(a,"onVolumeChange",this.LH);this.S(a,"appresize",this.tu);this.S(a,"fullscreentoggled",this.JH);this.S(a,"onShowControls",this.Do);this.S(a,"onHideControls",this.Do);this.S(this.element,"keydown",this.RC);this.S(this.element,"focus",qa(this.ru,!0));this.S(this.element,"blur",qa(this.ru,!1));this.tu(pF(a).Da());y8(this,a.Db(),a.Jc())},y8=function(a,b,c){var d=Math.floor(b),e=d+"% "+P("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+P("YTP_SCREENREADER_VOLUME_MUTED"):
"");
c=c?0:b/100;a.g("valuenow",d);a.g("valuetext",e);a.X.style.left=(a.I?60:40)*c+"px";a.D=b},A8=function(a,b,c,d,e){var f=a.C||a.F||a.B||a.J;
a.C=b;a.F=c;a.B=d;a.J=e;b=a.C||a.F||a.B||a.J;f!=b&&(b?a.K=a.S(a.element,"wheel",a.KH):(a.qa(a.K),a.K=null),K(a.M,"ytp-volume-slider-active",b))},B8=function(a,b){var c=T(a);
Q.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",target:"_blank",title:P("YTP_URL_NAVIGATE_TO",{WEBSITE:hI(c)}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.b?(sh(this.element,th?'<div class="ytp-icon ytp-icon-logo-gaming"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 98 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-25" /><path class="ytp-svg-fill" d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-24" /><path class="ytp-svg-fill ytp-svg-fill-logo-tube-text" d="M23,12 L43,12 L43,24 L23,24 Z" fill="none" id="ytp-svg-26" /><path class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" fill="#fff" id="ytp-svg-25" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-27" /><g class="ytp-svg-fill" id="ytp-svg-27"><path d="M50.85,16.34 C50.14,16.34 49.78,16.77 49.72,17.30 C49.61,18.30 49.61,19.64 49.72,20.65 C49.78,21.18 50.14,21.61 50.85,21.61 C51.55,21.61 52.03,21.21 52.03,20.67 L52.03,20.16 C52.03,20.09 51.98,20.04 51.91,20.04 L51.12,20.04 C50.99,20.04 50.89,19.93 50.89,19.80 L50.89,18.66 C50.89,18.53 50.99,18.42 51.12,18.42 L53.39,18.42 C53.52,18.42 53.63,18.53 53.63,18.66 L53.63,20.67 C53.63,22.11 52.45,23.30 50.85,23.30 C49.25,23.30 48.25,22.09 48.08,20.65 C47.97,19.64 47.97,18.30 48.08,17.30 C48.25,15.86 49.25,14.65 50.85,14.65 C52.46,14.65 53.63,15.79 53.63,17.39 C53.63,17.52 53.52,17.63 53.39,17.63 L52.23,17.63 C52.10,17.63 52.01,17.52 52.00,17.39 C51.95,16.77 51.52,16.34 50.85,16.34" /><path d="M57.57,19.76 C57.55,19.86 57.60,19.90 57.67,19.90 L58.74,19.90 C58.81,19.90 58.85,19.86 58.83,19.76 L58.27,16.89 C58.26,16.85 58.25,16.84 58.21,16.84 L58.19,16.84 C58.16,16.84 58.14,16.85 58.13,16.89 L57.57,19.76 Z M56.80,22.98 C56.78,23.09 56.69,23.16 56.58,23.16 L55.36,23.16 C55.17,23.16 55.10,23.03 55.13,22.93 L57.21,14.96 C57.24,14.85 57.33,14.78 57.43,14.78 L58.99,14.78 C59.10,14.78 59.19,14.85 59.21,14.96 L61.29,22.93 C61.31,23.03 61.24,23.16 61.06,23.16 L59.83,23.16 C59.73,23.16 59.65,23.09 59.61,22.98 L59.25,21.75 C59.23,21.66 59.18,21.57 59.08,21.57 L57.31,21.57 C57.20,21.57 57.15,21.64 57.13,21.75 L56.80,22.98 Z" /><path d="M65.75,17.32 C65.78,17.44 65.92,17.44 65.96,17.32 L66.61,14.99 C66.64,14.84 66.73,14.78 66.85,14.78 L68.46,14.78 C68.59,14.78 68.69,14.89 68.69,15.02 L68.69,22.93 C68.69,23.06 68.59,23.16 68.46,23.16 L67.32,23.16 C67.19,23.16 67.09,23.06 67.09,22.93 L67.09,18.18 C67.09,18.12 67.02,18.11 66.99,18.17 L66.45,19.97 C66.40,20.11 66.33,20.17 66.20,20.17 L65.51,20.17 C65.39,20.17 65.32,20.11 65.27,19.97 L64.71,18.17 C64.69,18.11 64.62,18.12 64.62,18.18 L64.62,22.93 C64.62,23.06 64.51,23.16 64.38,23.16 L63.24,23.16 C63.12,23.16 63.01,23.06 63.01,22.93 L63.01,15.02 C63.01,14.89 63.12,14.78 63.24,14.78 L64.85,14.78 C64.98,14.78 65.06,14.84 65.10,14.99 L65.75,17.32 Z" /><path d="M72.68,16.52 C72.68,16.45 72.63,16.40 72.56,16.40 L71.39,16.40 C71.27,16.40 71.16,16.29 71.16,16.16 L71.16,15.02 C71.16,14.89 71.27,14.78 71.39,14.78 L75.59,14.78 C75.72,14.78 75.82,14.89 75.82,15.02 L75.82,16.16 C75.82,16.29 75.72,16.40 75.59,16.40 L74.42,16.40 C74.35,16.40 74.31,16.45 74.31,16.52 L74.31,21.43 C74.31,21.50 74.35,21.55 74.42,21.55 L75.70,21.55 C75.83,21.55 75.94,21.66 75.94,21.79 L75.94,22.93 C75.94,23.06 75.83,23.16 75.70,23.16 L71.28,23.16 C71.15,23.16 71.05,23.06 71.05,22.93 L71.05,21.79 C71.05,21.66 71.15,21.55 71.28,21.55 L72.56,21.55 C72.63,21.55 72.68,21.50 72.68,21.43 L72.68,16.52 Z" /><path d="M83.53,22.93 C83.53,23.06 83.42,23.16 83.30,23.16 L81.92,23.16 C81.72,23.16 81.64,23.06 81.61,22.96 L80.02,18.76 C80.00,18.69 79.92,18.71 79.92,18.78 L79.92,22.93 C79.92,23.06 79.81,23.16 79.69,23.16 L78.52,23.16 C78.39,23.16 78.29,23.06 78.29,22.93 L78.29,15.02 C78.29,14.89 78.39,14.78 78.52,14.78 L79.91,14.78 C80.08,14.78 80.16,14.89 80.20,15.00 L81.79,19.55 C81.82,19.62 81.90,19.60 81.90,19.52 L81.90,15.02 C81.90,14.89 82.00,14.78 82.13,14.78 L83.30,14.78 C83.42,14.78 83.53,14.89 83.53,15.02 L83.53,22.93 Z" /><path d="M88.59,16.34 C87.88,16.34 87.52,16.77 87.46,17.30 C87.35,18.30 87.35,19.64 87.46,20.65 C87.52,21.18 87.88,21.61 88.59,21.61 C89.29,21.61 89.77,21.21 89.77,20.67 L89.77,20.16 C89.77,20.09 89.72,20.04 89.65,20.04 L88.86,20.04 C88.73,20.04 88.63,19.93 88.63,19.80 L88.63,18.66 C88.63,18.53 88.73,18.42 88.86,18.42 L91.13,18.42 C91.26,18.42 91.37,18.53 91.37,18.66 L91.37,20.67 C91.37,22.11 90.19,23.30 88.59,23.30 C86.99,23.30 85.99,22.09 85.82,20.65 C85.71,19.64 85.71,18.30 85.82,17.30 C85.99,15.86 86.99,14.65 88.59,14.65 C90.20,14.65 91.37,15.79 91.37,17.39 C91.37,17.52 91.26,17.63 91.13,17.63 L89.97,17.63 C89.84,17.63 89.75,17.52 89.74,17.39 C89.69,16.77 89.26,16.34 88.59,16.34" /></g></svg>'),
J(this.element,"ytp-youtube-gaming-button")):sh(this.element,th?'<div class="ytp-icon ytp-icon-logo"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 51 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-21" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-22" /><path class="ytp-svg-fill" d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-21" /><path class="ytp-svg-fill ytp-svg-fill-logo-tube-text" d="M23,12 L43,12 L43,24 L23,24 Z" fill="none" id="ytp-svg-23" /><path class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" fill="#fff" id="ytp-svg-22" /></svg>');
this.o=a;this.N("click",this.C);this.S(a,"videodatachange",this.B);this.B();Mb(this,g6(b.g,this.element))},C8=function(a,b,c){or.call(this);
var d=T(a);this.W=a;this.b=b;this.G=window.NaN;this.F=null;this.H=c;this.H.subscribe("autohideupdate",this.DH,this);c=!gz(Xz(a));var e=new Q(["div","ytp-gradient-bottom"]);G(this,e);mr(a,e.element,8);this.C=new ir(e,250,c,100);G(this,this.C);this.g=new Q(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);G(this,this.g);mr(a,this.g.element,8);this.B=new ir(this.g,250,c,100);G(this,this.B);c=this.g.element.children[0];this.A=new p8(a,b);G(this,this.A);mr(a,this.A.element,6);this.A.subscribe("show",
this.vE,this);this.A.subscribe("show",w(b.eE,b,this.A));this.o=new H7(a,b);G(this,this.o);this.o.b(this.g.element,0);e=new e7(a,b);G(this,e);mr(a,e.element,4);this.o.subscribe("height-change",e.bH,e);e=new h7(a);G(this,e);mr(a,e.element,4);e=new rq(["div","ytp-left-controls"]);G(this,e);e.b(c);var f=new C7(a,b,!1);G(this,f);f.b(e.element);f=new A7(a,b);G(this,f);f.b(e.element);f=new C7(a,b,!0);G(this,f);f.b(e.element);var k=new Q(["span"]);G(this,k);k.b(e.element);if(!d.useMediaVolume&&(f=new v7(a,
b),G(this,f),f.b(k.element),d.U)){f=new z8(a,b,this.g.element);G(this,f);f.b(k.element);k=new a2(k.element);G(this,k);var m=w(f.Tr,f,!0);k.subscribe("hoverstart",m);k=new a2(e.element);G(this,k);f=w(f.Tr,f,!1);k.subscribe("hoverend",f)}this.D=new x8(a,b);G(this,this.D);this.D.b(e.element);e=new rq(["div","ytp-right-controls"]);G(this,e);e.b(c);c=new w8(a,b);G(this,c);c.b(e.element);c=new u8(a,b,this.A);G(this,c);this.A.G=c;c.b(e.element);c=new n7(a,b);G(this,c);mr(a,c.element,5);c.subscribe("show",
w(b.Uk,b,c));c=new m7(a,b,c);G(this,c);c.b(e.element);d.hd&&(c=new B8(a,b),G(this,c),c.b(e.element));c=new v8(a,b);G(this,c);c.b(e.element);d.o&&(c=new W7(a),G(this,c),mr(a,c.element,4),c=new X7(a,b,this.A),G(this,c),c.b(e.element));d.jc&&(d=new d7(a,b),G(this,d),d.b(e.element));d=Wt();d.webkitSetPresentationMode&&ia(d.webkitSupportsPresentationMode)&&d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new y7(a,b),G(this,d),d.b(e.element));this.I=new l7(a,b);G(this,this.I);this.I.b(e.element);
this.S(a,"appresize",this.Dn);this.S(a,"fullscreentoggled",this.Dn);this.S(a,"progresssync",this.Cn);this.Dn()},D8=function(a,b){gz(Xz(a.W))||b?b&&(a.B.da(),a.C.da(),a.b.g.Cf(a.fa())):b||(a.B.show(),a.C.show(),a.Cn())},E8=function(a){var b=pF(a.W).Da().width;
return Math.max(b-24*(rF(a.b)?2:1),100)},F8=function(a){Q.call(this,["div",
"ytp-title",["a","ytp-title-channel-logo",{href:"{{channelImageLink}}",target:"_blank"}],["div","ytp-title-text",["a",["ytp-title-link","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},["span","ytp-title-playlist-icon"],["span",null,"{{title}}"]],["a","ytp-title-channel-name",{href:"{{channelNameLink}}",target:"_blank"},"{{channelName}}"]]]);this.o=a;this.B=null;this.J=this.la["ytp-title-link"];this.I=this.la["ytp-title-channel-logo"];this.F=this.la["ytp-title-playlist-icon"];
sh(this.F,Dh());this.G=this.D=null;this.S(a,"videodatachange",this.C);this.S(a,"videoplayerreset",this.C);this.S(a,"appresize",this.H);this.H(pF(a).Da());this.C()},H8=function(a){var b=a.o.getVideoData(),c=b.videoId&&2==a.o.getPresentingPlayerType();
c&&b.videoId==a.D?J(a.element,"ytp-title-extra-info"):(he(a.element,"ytp-title-extra-info"),c&&(b.author&&b.oi&&b.profilePicture?G8(a,b.videoId,b.author,b.oi,b.profilePicture):b.videoId!=a.G&&(c=fI(T(a.o),b.videoId,!1),Sj(c,{method:"GET",ab:w(a.K,a,b.videoId),withCredentials:!0}),a.G=b.videoId)))},G8=function(a,b,c,d,e){d=T(a.o).aa+"://"+gI(T(a.o))+d;
a.I.style.backgroundImage="url("+e+")";a.g("channelImageLink",d);a.g("channelNameLink",d);a.g("channelName",P("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.D=b;H8(a)},I8=function(a,b){var c=pF(a).Da();
Q.call(this,["div","",["div","ytp-tooltip-bg","",["div","ytp-tooltip-duration","{{duration}}"]],["div","ytp-tooltip-text-wrapper",["div","ytp-tooltip-image"],["div","ytp-tooltip-title","{{title}}"],["span","ytp-tooltip-text","{{text}}"]]]);this.P=a;this.ca=b;this.Z=T(a).isMobile;this.I=this.la["ytp-tooltip-bg"];this.ea=this.la["ytp-tooltip-image"];this.Y=w(this.MB,this);this.M=w(this.OB,this);this.B=null;this.G=new ir(this,100);G(this,this.G);this.o=null;this.K=!1;this.C=null;this.F=window.NaN;this.H=
"";this.aa=c.width;this.J=!0;this.D=1;this.U=new be(this.Bz,250,this);G(this,this.U);this.X=new be(this.qc,5E3,this);G(this,this.X)},K8=function(a,b){if(null!=a.o)if(b)switch(a.o){case 3:J8(a);
a.G.show();break;case 2:J8(a);a.G.show(400);break;default:a.G.show()}else a.G.da();a.J=b},g6=function(a,b){if(a.Z)return r;
b.addEventListener("mouseover",a.M);return w(function(){this.B==b&&this.qc();b.removeEventListener("mouseover",this.M)},a)},M8=function(a,b,c){if(a.o)if(3==a.o)a.qc();
else return;L8(a,b,3,c)},L8=function(a,b,c,d){(0,window.isNaN)(a.F)||(a.F=window.NaN,a.I.style.background="");
a.B=b;a.K=!!d;d?a.H=d:(a.H=b.getAttribute("title"),b.removeAttribute("title"));a.element.className="ytp-tooltip";if(b=b.getAttribute("data-tooltip-image"))a.ea.style.backgroundImage="url("+b+")";K(a.element,"ytp-tooltip-image-enabled",!!b);a.o=c;a.P.addEventListener("appresize",a.qc,a);a.J&&(J8(a),a.G.show(3==a.o?0:400))},J8=function(a){var b=a.B.getAttribute("data-tooltip-text");
if(b&&!a.K){a.g("text",b);var c=a.B.getAttribute("data-duration");a.update({title:a.H,duration:c});var d=a.B.getAttribute("data-preview"),e=96*a.D,f=54*a.D,k=120*a.D,m=90*a.D;a.I.style.width=e+"px";a.I.style.height=f+"px";a.I.style.background=d?"#000 url("+d+") "+(e-k)/2+"px "+(f-m)/2+"px/"+k+"px "+m+"px":"";fe(a.element,["ytp-text-detail","ytp-preview"]);K(a.element,"ytp-has-duration",!!c)}else a.g("text",a.H),ie(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);N8(a,!!b)},N8=function(a,
b,c){a.element.style.maxWidth=b?"":Math.min(a.aa,200*a.D)+"px";
O8(a.ca,a.element,a.B,c,1==a.o);a.element.style.top?J(a.element,"ytp-bottom"):a.element.style.bottom&&J(a.element,"ytp-top");3==a.o&&a.X.start()},x7=function(a){a.B&&!a.K&&a.B.hasAttribute("title")&&(a.H=a.B.getAttribute("title"),a.B.removeAttribute("title"),a.J&&J8(a))},P8=function(a,b){K(a.element,"ytp-preview",0<=b);
if(!(0>b||b==a.F)){a.F=b;var c=96*a.D,d=96*a.D,e=Mu(a.C,a.F,c);i2(a.I,e,c,d,!0);a.U.start()}},R8=function(a,b,c){Q.call(this,["button",
["ytp-watch-later-button","ytp-button"],{title:"{{title}}","data-tooltip-image":"{{image}}"}]);this.o=a;this.F=b.g;this.G=c;J(c,"ytp-watch-later-button-visible");this.D=null;this.C=this.B=!1;this.N("click",this.MH,this);this.S(a,"videoplayerreset",this.NH);this.S(a,"appresize",this.uu);this.uu(pF(a).Da());Q8(this,2);Mb(this,g6(b.g,this.element))},Q8=function(a,b,c){if(b!=a.D){var d=a.element;
switch(b){case 3:sh(d,Hh());break;case 1:sh(d,th?'<div class="ytp-icon ytp-icon-watch-later-added"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-50" /><path class="ytp-svg-fill" d="M15.03,26 L7,17.91 L9.83,15.05 L14.94,20.19 L25.07,10 L28,12.94 L15.03,26 Z" id="ytp-svg-50" /></svg>');break;case 2:sh(d,th?'<div class="ytp-icon ytp-icon-watch-later"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-49" /><path class="ytp-svg-fill" d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z" id="ytp-svg-49" /></svg>');
break;case 4:sh(d,th?'<div class="ytp-icon ytp-icon-alert"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-2" /><path class="ytp-svg-fill" d="M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z" id="ytp-svg-2" xlink:href="#ytp-svg-2" /></svg>')}a.D=
b}c?a.update({title:c,image:null}):(b=T(a.o),b.userDisplayName?(c={USER_NAME:b.userDisplayName},a.update({title:a.B?P("YTP_ADDED_TO_WATCH_LATER_AS",c):P("YTP_WATCH_LATER_AS_2",c),image:b.userDisplayImage})):a.update({title:P("YTP_WATCH_LATER"),image:null}));x7(a.F)},S8=function(a){Q.call(this,["a",
["ytp-watermark","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","aria-label":P("YTP_URL_NAVIGATE_TO",{WEBSITE:hI(T(a))}),"data-sessionlink":"feature=player-watermark"}]);sh(this.element,th?'<div class="ytp-icon ytp-icon-watermark"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 77 34" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-21" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-22" /><path class="ytp-svg-fill" d="m 26.81,26.92 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.18 2.80,0 0,12.48 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.72 2.80,0 0,15.38 -2.80,0 0,0 z M 18.83,12.91 c -0.74,-1.05 -1.91,-1.48 -3.10,-1.48 -1.33,0 -2.35,.43 -3.10,1.48 -0.57,.77 -0.88,2.02 -0.88,3.66 l -0.00,5.46 c 0,1.63 .27,2.76 .84,3.53 .74,1.04 1.95,1.60 3.13,1.60 1.18,0 2.41,-0.55 3.16,-1.60 .56,-0.76 .82,-1.89 .82,-3.53 l 0,-5.48 c 0,-1.64 -0.32,-2.87 -0.88,-3.65 l 0,0 0,0 z m -1.91,9.44 c .14,1.52 -0.31,2.27 -1.18,2.27 -0.87,0 -1.32,-0.75 -1.18,-2.27 l 0,-6.09 c -0.14,-1.52 .31,-2.23 1.18,-2.23 .87,0 1.33,.71 1.18,2.23 l -0.00,6.09 0,0 z m -8.27,4.56 -2.95,0 0,-8.37 c 0,0 -3.06,-10.27 -3.69,-12.18 l 3.10,0 2.07,8.02 2.06,-8.02 3.10,0 -3.69,12.18 0,8.37 0,0 z" id="ytp-svg-21" /><path class="ytp-svg-fill ytp-svg-fill-logo-tube-text" d="m 34,5.07 40,0 0,24 -40,0 z" fill="none" id="ytp-svg-23" /><path class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" d="M 73.80,3.53 C 72.12,1.72 70.24,1.72 69.38,1.61 63.21,1.15 53.95,1.15 53.95,1.15 c -0.01,0 -9.27,0 -15.44,.45 -0.86,.10 -2.74,.11 -4.41,1.91 -1.32,1.37 -1.75,4.49 -1.75,4.49 0,0 -0.44,3.66 -0.44,7.32 l 0,3.43 c 0,3.66 .44,7.32 .44,7.32 0,0 .43,3.11 1.75,4.49 1.67,1.80 3.88,1.74 4.86,1.93 C 42.48,32.89 53.94,33 53.94,33 c 0,0 9.26,-0.01 15.43,-0.47 .86,-0.10 2.74,-0.11 4.41,-1.91 1.32,-1.37 1.75,-4.49 1.75,-4.49 0,0 .44,-3.66 .44,-7.32 l 0,-3.43 c 0,-3.66 -0.44,-7.32 -0.44,-7.32 0,0 -0.43,-3.11 -1.75,-4.49 l 0,0 0,0 z m -35.17,23.39 0,-17.51 -3.10,0 0,-2.89 9.30,-0.00 0,2.89 -3.24,0 0,17.51 -2.95,0 0,0 z m 10.78,0 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.03 2.80,0 0,12.33 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.57 2.80,0 0,15.23 -2.80,0 0,0 z m 12.70,-1.52 c -0.35,1.13 -1.13,1.71 -2.19,1.71 -0.95,0 -2.01,-0.58 -2.90,-1.72 l -0.00,1.53 -3.02,0 0,-20.40 3.02,0 -0.00,6.65 c .86,-1.09 1.92,-1.71 2.91,-1.71 1.06,0 1.78,.63 2.13,1.77 .17,.61 .35,1.59 .35,3.03 l 0,6.09 c 0,1.40 -0.11,2.40 -0.29,3.04 l 0,0 0,0 z m 7.36,-1.89 c .02,-0.15 .02,-0.80 .02,-1.91 l 2.80,0 0,.43 c 0,.88 -0.07,1.51 -0.09,1.79 -0.09,.61 -0.30,1.16 -0.62,1.65 -0.73,1.10 -1.83,1.64 -3.23,1.64 -1.39,0 -2.46,-0.51 -3.23,-1.55 -0.56,-0.76 -0.93,-1.89 -0.93,-3.51 l 0,-5.33 c 0,-1.62 .33,-2.88 .89,-3.65 .77,-1.04 1.83,-1.59 3.20,-1.59 1.34,0 2.40,.55 3.15,1.59 .55,.76 .86,1.95 .86,3.58 l 10e-4,3.11 -5.32,0 0,2.73 c -0.00,1.40 .37,2.11 1.29,2.11 .65,0 1.04,-0.36 1.19,-1.10 l 0,0 0,0 z m -1.21,-9.51 c -0.89,0 -1.27,.38 -1.27,1.81 l 0,1.68 2.51,-0.00 0,-1.66 c 0,-1.40 -0.35,-1.83 -1.23,-1.83 l 0,0 0,0 z m -11.16,.69 -0.00,9.23 c .44,.46 .95,.69 1.39,.69 .77,0 1.11,-0.58 1.11,-2.10 l 0,-6.54 c 0,-1.52 -0.34,-1.97 -1.11,-1.97 -0.44,0 -0.94,.23 -1.39,.69 l 0,0 0,0 z" fill="#fff" id="ytp-svg-22" /></svg>');
this.B=a;this.o=null;this.S(a,"videodatachange",this.C);this.S(a,"presentingplayerstatechange",this.F);a=Xz(a);this.Xa(!U(a,2));this.C()},U8=function(a){or.call(this);
MF();var b=T(a),c=pF(a);this.b=a;Qja(this);var d=Xz(a);this.ka=!1;this.ia=!0;this.ga=!1;this.K=null;this.F=[];var e=new F6(a);G(this,e);mr(a,e.element,4);var f=new c7(a);G(this,f);mr(a,f.element,4);this.D=new a6(a);G(this,this.D);mr(a,this.D.element,4);var k=new Q(["div","ytp-gradient-top"]);G(this,k);mr(a,k.element,1);this.Z=new ir(k,250,!0,100);G(this,this.Z);this.o=new Q(["div","ytp-chrome-top"]);G(this,this.o);mr(a,this.o.element,1);this.aa=new ir(this.o,250,!0,100);G(this,this.aa);this.U=[];
this.M=new N6(a);G(this,this.M);this.M.b(e.element);k=a.getVideoData();this.B=new K5(c,w(this.RG,this),k,b.useTabletControls);G(this,this.B);this.B.subscribe("autohideupdate",this.SG,this);this.g=new I8(a,this);G(this,this.g);mr(a,this.g.element,4);this.G=new f6(a,this);G(this,this.G);mr(a,this.G.element,2);var m=new iC(a,this.G);G(this,m);mr(a,m.element,5);m=new P6(a,this);G(this,m);mr(a,m.element,5);m.subscribe("show",w(this.Uk,this,m));this.U.push(m);m=new R6(a,this,m);G(this,m);m.b(this.o.element);
m=new F8(a);G(this,m);m.b(this.o.element);m=new rq(["div","ytp-chrome-top-buttons"]);G(this,m);m.b(this.o.element);if(b.xf){var l=new R8(a,this,this.o.element);G(this,l);l.b(m.element)}l=new T6(a,this);G(this,l);mr(a,l.element,5);l.subscribe("show",w(this.Uk,this,l));this.U.push(l);l=new V6(a,this,l,this.o.element);G(this,l);l.b(m.element);m=null;m=new W6(a);G(this,m);mr(a,m.element,3);(this.A="1"==b.A?new C8(a,this,this.B):null)&&G(this,this.A);"3"==b.A&&(l=new S6(a,this),G(this,l),mr(a,l.element,
8));b.ka&&"3"!=b.A?(l=new Z5(c,w(this.Zq,this),w(this.BC,this),w(this.Yq,this)),G(this,l)):this.S(c,"click",w(function(a){this.Yq(a)||this.Zq(a)},this));
this.S(c,"touchstart",this.CC);this.H=new A6(a,this);G(this,this.H);this.H.subscribe("show",this.du,this);this.ea=!1;b.Ad&&(l=new S8(a),G(this,l),mr(a,l.element,7));l=new $5(a);G(this,l);mr(a,l.element,4);this.Y=k.videoId;this.C=null;this.I=!1;this.ca=[];this.ba=new Q(["div","",{tabindex:0}]);this.ba.N("focus",this.rx,this);this.X=new Q(["div","",{tabindex:0}]);this.X.N("focus",this.tx,this);k=a.xa();k.setAttribute("aria-label",P("YTP_PLAYER_NORMAL"));switch(b.color){case "white":J(k,"ytp-color-white");
break;case "blue":J(k,"ytp-color-blue")}(this.P=b.useTabletControls?null:new H6(a,c,this.H,this.B,m,this.D,w(this.Mo,this)))&&G(this,this.P);this.S(a,"appresize",this.zn);this.S(a,"fullscreentoggled",this.TG);this.S(a,"presentingplayerstatechange",this.UG);this.S(a,"videodatachange",this.cu);this.S(a,"videoplayerreset",this.mC);this.S(a,"autonavvisibility",this.Bh,this);this.S(a,"cardstatechange",this.wg,this);this.S(a,"minimized",this.wg,this);this.S(a,"onFrescaStateChange",this.wg,this);T8(this,
d);this.Bh();this.zn();this.ma=[c.B,f.element,e.element,this.D.element,this.M.element]},qF=function(a){var b=tz(a.b)&&JL(a.b);
LL(a.b);return a.ga||b||!!a.K||LL(a.b)||a.b.app.T.am},O8=function(a,b,c,d,e){b.style.left="";
b.style.top="";b.style.bottom="";var f=Zq(b);e=e||a.A&&Jf(a.A.fa(),c);if(null==d||!e)var k=Zq(c),m=Vq(c,a.b.xa());d=(null==d?m.x+k.width/2:d)-f.width/2;e?(k=12*(rF(a.A.b)?2:1),m=E8(a.A),c=pF(a.b).Da().height,d=Ve(d,k,k+m-f.width),f=c-(rF(a.A.b)?72:50)-f.height):Jf(a.o.element,c)?(k=pF(a.b).Da().width,d=Ve(d,12,k-f.width-12),f=rF(a)?69:48,"gvn"==T(a.b).b&&(f+=20)):(a=pF(a.b).Da(),d=Ve(d,12,a.width-f.width-12),f=m.y>(a.height-k.height)/2?m.y-f.height-12:m.y+k.height+12);b.style.top=f+"px";b.style.left=
d+"px"},V8=function(a,b){if(!b)return!1;
for(var c=0;c<a.ma.length;c++)if(Jf(a.ma[c],b))return!1;return ee(b,"ytp-player-content")||ee(b,"html5-endscreen")||b==a.b.xa()?!1:!0},W8=function(a,b){if("3"==T(a.b).A){var c=Xz(a.b);
if((U(c,8)||U(c,4))&&(!U(c,2)||T(a.b).experiments.$("disable_native_controls_ended"))&&(c=lm(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1},rF=function(a){return a.b.Ia()||!1},T8=function(a,b){var c=b.Ya()&&!U(b,32);
a.B.rb(128,!c);c=3==a.b.getPresentingPlayerType();a.B.rb(256,c);var c=a.b.xa(),d;U(b,2)?d=["ended-mode"]:(d=[],U(b,8)?d.push("playing-mode"):U(b,4)&&d.push("paused-mode"),U(b,1)&&!U(b,32)&&d.push("buffering-mode"),U(b,32)&&d.push("seeking-mode"),U(b,64)&&d.push("unstarted-mode"));Gb(a.ca,d)||(ie(c,a.ca),a.ca=d,fe(c,d));a.A&&D8(a.A,qF(a));d=T(a.b);var e=gz(b),f=U(b,2);K(c,"ytp-hide-controls",("3"==d.A?!f:"1"!=d.A)||e);K(c,"ytp-native-controls","3"==d.A&&!e&&!f);if(U(b,128)){a.C||(a.C=new R5(a.b),G(a,
a.C),a.C.b(c),mr(a.b,a.C.element,4));c=a.C;e=b.b;f=T(c.B);d=e.message;var k="embedded"==f.ua,m=e.messageKey,l,p,e=!1;"YTP_ERROR_GENERIC_WITHOUT_LINK"!=m||f.Sb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==m||"YTP_HTML5_PROTECTED_FLASH_FALLBACK"==m?(l="https://get.adobe.com/flashplayer/",k=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=m||f.Sb||(l="//"+gI(f)+"/html5",m="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(l="//support.google.com/youtube/?p=player_error1",p=c.B.getVideoData().clientPlaybackNonce,
m="YTP_ERROR_GENERIC_WITH_LINK_AND_CPN",f.K&&!f.C&&(e=!0));l&&(l={BEGIN_LINK:'<br/><a href="'+l+'"'+(k?' target="_blank"':"")+">",END_LINK:"</a>"},p&&(l.CPN=p),d=P(m,l));for(p=0;p<c.C.length;p++)c.qa(c.C[p]);c.C=[];c.g("content",new L5(d));if(e)for(p=w(c.D,c),l=c.element.getElementsByTagName("a"),d=0;d<l.length;d++)e=c.S(l[d],"click",p),c.C.push(e);a.C.show()}else a.C&&(a.C.dispose(),a.C=null)},X8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;
for(var d=null;b;){if("none"!=Jq(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=X8(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d},Qja=function(a){a=T(a.b);
var b=a.P;if($t("ytp-normal-css-loaded")){var c=$t("ytp-sprite-mode-css-loaded");b!=c&&Pi(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}},b9=function(a,b){F.call(this);
var c=b;c instanceof $h||(c=new $h(c));var d=this.X=c,e;a:{var f=d.args.legacy_config;if(f){var k=f?Vf(f):null;if(k){var m,l=new j5(k),p=Z(l,1),t=Z(l,2),u=Z(l,3),x=Z(l,4),B=Z(l,5),C=Z(l,6),H=Z(l,7),L=Z(l,8),R=Z(l,9),ra=Z(l,10),sa=Z(l,11),Aa=Z(l,12),cb=Z(l,13),re=Z(l,14),bk=Z(l,15),ck=Z(l,16),Dm=Z(l,17),dk=Z(l,18),ek=Z(l,19),Fv=Z(l,20),ag=Z(l,21),lc=Z(l,22),fD=Z(l,23),Fd=Z(l,24),m8=Z(l,25),n8=Z(l,26),Rja=Z(l,27),Sja=Z(l,28),Tja=Z(l,29),Uja=Z(l,30),Vja=Z(l,31),Wja=Z(l,32),Xja=Z(l,33),Yja=Z(l,34),Zja=
Z(l,35),$ja=Z(l,36),aka=Z(l,37),bka=Z(l,38),cka=Z(l,39),dka=Z(l,40),eka=Z(l,41),fka=Z(l,42),gka=Z(l,43),hka=Z(l,44),ika=Z(l,45),jka=Z(l,46),kka=Z(l,47),lka=Z(l,48),mka=Z(l,49),nka=Z(l,50),oka=Z(l,51),pka=Z(l,52),qka=Z(l,53),rka=Z(l,54),ska=Z(l,55),tka=Z(l,56),uka=Z(l,57),vka=Z(l,58),wka=Z(l,59),xka=Z(l,60),yka=Z(l,61),zka=Z(l,62),Aka=Z(l,63),Bka=Z(l,64),Cka=Z(l,65),Dka=Z(l,66),Eka=Z(l,67),Fka=Z(l,68),Gka=Z(l,69),Hka=Z(l,70),Ika=Z(l,71),Jka=Z(l,72),Kka=Z(l,73),Lka=Z(l,74),Mka=Z(l,75),Nka=Z(l,76),Oka=
Z(l,77),Pka=Z(l,78),Qka=Z(l,79),Rka=Z(l,80),Ska=Z(l,81),Tka=Z(l,82),Uka=Z(l,83),Vka=Z(l,84),Wka=Z(l,85),Xka=Z(l,86),Yka=Z(l,87),Zka=Z(l,88),$ka=Z(l,89),ala=Z(l,90),bla=Z(l,91),dla=Z(l,92),ela=Z(l,93),fla=Z(l,94),gla=Z(l,95),hla=Z(l,96),ila=Z(l,97),jla=Z(l,98),kla=Z(l,99),lla=Z(l,100),mla=Z(l,101),nla=Z(l,102),ola=Z(l,103),pla=Z(l,104),qla=Z(l,105),rla=Z(l,106),sla=Z(l,107),tla=Z(l,108),ula=Z(l,109),vla=Z(l,110),wla=Z(l,111),xla=Z(l,112),yla=Z(l,113),zla=Z(l,114),Ala=Z(l,115),Bla=Z(l,116),Cla=Z(l,
117),Dla=Z(l,118),Ela=Z(l,119),Fla=Z(l,120),Gla=Z(l,121),Hla=Z(l,122),Ila=Z(l,123),Jla=Z(l,124),Kla=Z(l,125),Lla=Z(l,126),Mla=Z(l,127),Nla=Z(l,128),Ola=Z(l,129),Pla=Z(l,130),Qla=Z(l,131),Rla=Z(l,132),Sla=Z(l,133),Tla=Z(l,134),Ula=Z(l,135),Vla=Z(l,136),Wla=Z(l,137),Xla=Z(l,138),Yla=Z(l,139),Zla=Z(l,140),$la=Z(l,141),ama=Z(l,142),bma=Z(l,143),cma=Z(l,144),dma=Z(l,145),ema=Z(l,146),fma=Z(l,147),gma=Z(l,148),hma=Z(l,149),jma=Z(l,150),kma=Z(l,151),lma=Z(l,153),mma=Z(l,154),nma=Z(l,155),oma=Z(l,156),pma=
Z(l,157),qma=Z(l,158),rma=Z(l,159),sma=Z(l,160),tma=Z(l,161),uma=Z(l,162),vma=Z(l,163),wma=Z(l,164),xma=Z(l,165),yma=Z(l,166),zma=Z(l,167),Ama=Z(l,168),Bma=Z(l,169),Cma=Z(l,170),Dma=Z(l,171),Ema=Z(l,172),Fma=Z(l,173),Gma=Z(l,174),Hma=Z(l,175),Ima=Z(l,176),Jma=Z(l,177),Kma=Z(l,178),Lma=Z(l,179),Mma=Z(l,180),Nma=Z(l,181),Oma=Z(l,182),Pma=Z(l,183),Qma=Z(l,184),Rma=Z(l,185),Sma=Z(l,186),Tma=Z(l,187),Uma=Z(l,188),Vma=Z(l,189),Wma=Z(l,190),Xma=Z(l,191),Yma=Z(l,192),Zma=Z(l,193),$ma=Z(l,194),ana=Z(l,195),
bna=Z(l,196),cna=Z(l,197),dna=Z(l,198),ena=Z(l,199),fna=Z(l,200),gna=Z(l,201),hna=Z(l,202),ina=Z(l,203),jna=Z(l,204),kna=Z(l,205),lna=Z(l,206),mna=Z(l,207),nna=Z(l,208),ona=Z(l,209),pna=Z(l,210),qna=Z(l,211),rna=Z(l,212),sna=Z(l,213),tna=Z(l,214),una=Z(l,215),vna=Z(l,216),wna=Z(l,217),xna=Z(l,218),yna=Z(l,219),zna=Z(l,220),Ana=Z(l,221),Bna=Z(l,222),Cna=Z(l,223),Dna=Z(l,224),Ena=Z(l,225),Fna=Z(l,226),Gna=Z(l,227),Hna=Z(l,228),Ina=Z(l,229),Jna=Z(l,230),Kna=Z(l,231),Lna=Z(l,232),Mna=Z(l,233),Nna=Z(l,
234),Ona=Z(l,235),Pna=Z(l,236),Qna=Z(l,237),Rna=Z(l,238),Sna=Z(l,239),Tna=Z(l,240),Una=Z(l,241),Vna=Z(l,242),Wna=Z(l,243),Xna=Z(l,245),Yna=Z(l,246),Zna=Z(l,247),$na=Z(l,248),aoa=Z(l,249),boa=Z(l,250),coa=Z(l,251),doa=Z(l,252),eoa=Z(l,253),foa=Z(l,254),goa=Z(l,255),hoa=Z(l,256),ioa=Z(l,257),joa=Z(l,258),koa=Z(l,259),loa=Z(l,260),moa=Z(l,261),noa=Z(l,262),ooa=Z(l,263),poa=Z(l,264),qoa=Z(l,265),roa=Z(l,266),soa=Z(l,267),toa=Z(l,268),uoa=Z(l,269),voa=Z(l,270),woa=Z(l,271),xoa=Z(l,272),yoa=Z(l,273),zoa=
Z(l,275),Aoa=Z(l,276),Boa=Z(l,277),Coa=Z(l,278),Doa=Z(l,279),Eoa=Z(l,280),Foa=Z(l,281),Goa=Z(l,282),Hoa=Z(l,283),Ioa=Z(l,284),Joa=Z(l,285),Koa=Z(l,286),Loa=Z(l,287),Moa=Z(l,288),Noa=Z(l,289),Ooa=Z(l,290),Poa=Z(l,291),Qoa=Z(l,292),Roa=Z(l,293),Soa=Z(l,294),Toa=Z(l,295),Uoa=Z(l,296),Voa=Z(l,297),Woa=Z(l,298),Xoa=Z(l,299),Yoa=Z(l,300),Zoa=Z(l,301),$oa=Z(l,302),apa=Z(l,303),bpa=Z(l,304),cpa=Z(l,306),dpa=Z(l,307),epa=Z(l,308),fpa=Z(l,309),gpa=Z(l,310),hpa=Z(l,311),ipa=Z(l,312),jpa=Z(l,313),kpa=Z(l,314),
lpa=Z(l,315),mpa=Z(l,316),npa=Z(l,317),opa=Z(l,318),ppa=Z(l,319),qpa=Z(l,320),rpa=Z(l,321),spa=Z(l,322),tpa=Z(l,323),upa=Z(l,324),vpa=Z(l,325),wpa=Z(l,326),xpa=Z(l,327),ypa=Z(l,328),zpa=Z(l,329),Apa=Z(l,330),Bpa=Z(l,331),Cpa=Z(l,332),Dpa=Z(l,333),Epa=Z(l,334),Fpa=Z(l,335),Gpa=Z(l,336),LK=Z(l,337);m={el:p,ps:t,autonav:u,autoplay:x,eventid:B,fexp:C,fflags:H,isHtml5MobileDevice:L,legacyBehavior:R,playerErrorLogFraction:ra,canWatchLater:sa,mute:Aa,partnerid:cb,showinfo:re,ss:bk,watchXlb:ck,dclk:Dm,ivModule:dk,
iv3Module:ek,iv3EditModule:Fv,ivInvideoUrl:ag,ivLoadPolicy:lc,atc:fD,loudness:Fd,infringe:m8,subtitlesXlb:n8,ccFont:Rja,ccModule:Sja,ccFontsUrl:Tja,cc3Module:Uja,ttsurl:Vja,ccAsr:Wja,ccContribute:Xja,ccAutoCaps:Yja,ccLoadPolicy:Zja,captionTracks:$ja,captionAudioTracks:aka,captionTranslationLanguages:bka,defaultAudioTrackIndex:cka,cr:dka,hostLanguage:eka,hl:fka,enablecsi:gka,csiPageType:hka,c:ika,cbr:jka,cbrver:kka,cos:lka,cosver:mka,cplatform:nka,cbrand:oka,cmodel:pka,cnetwork:qka,isRtl:rka,enhanceModule:ska,
enhanceXlb:tka,regionModule:uka,previewSplitMode:vka,status:wka,reason:xka,errorcode:yka,errordetail:zka,apiaryHost:Aka,apiaryHostFirstparty:Bka,gapiHintOverride:Cka,gapiHintParams:Dka,innertubeApiKey:Eka,innertubeApiVersion:Fka,innertubeContextClientVersion:Gka,loaderurl:Hka,multicameraModule:Ika,multicameraPreroll:Jka,multifeedMetadataList:Kka,allowEmbed:Lka,allowedDomains:Mka,ypcItemTitle:Nka,ypcItemUrl:Oka,ypcItemThumbnail:Pka,ypcOfferHeadline:Qka,ypcOfferDescription:Rka,ypcOfferId:Ska,ypcOfferButtonText:Tka,
ypcFullVideoMessage:Uka,ypcModule:Vka,ypcVid:Wka,ypcLicenseCheckerModule:Xka,heartbeatServerUrl:Yka,ypcLicenseSessionToken:Zka,purchaseId:$ka,heartbeatToken:ala,heartbeatInterval:bla,heartbeatRetries:dla,ypcClickwrapModule:ela,ypcClickwrapMessage:fla,livestream:gla,livePlayback:hla,authTimeout:ila,hlsdvr:jla,streaminglibModule:kla,frescaModule:lla,frescaPreroll:mla,frescaXlb:nla,enableCardio:ola,enableCardioBeforePlayback:pla,liveChunkReadahead:qla,innertubeClientVersion:rla,adHost:sla,adHostTierId:tla,
coreDbp:ula,googleCustAge:vla,googleCustGender:wla,pyvAdChannel:xla,showPyvInRelated:yla,tagForChildDirected:zla,playerWide:Ala,enablesizebutton:Bla,bannerUrl:Cla,profilePicture:Dla,channelTitle:Ela,spacecastAddress:Fla,timestamp:Gla,fmtList:Hla,urlEncodedFmtStreamMap:Ila,adaptiveFmts:Jla,licenseInfo:Kla,idup:Lla,dashmpd:Mla,hlsvp:Nla,hlsFormats:Ola,probeUrl:Pla,storyboardSpec:Qla,liveStoryboardSpec:Rla,ismb:Sla,surveySmartpixelUrl:Tla,surveycreativedata:Ula,threedXlb:Vla,threedModule:Wla,threedConverted:Xla,
approxThreedLayout:Yla,threedLayout:Zla,t:$la,token:ama,noGetVideoLog:bma,tmi:cma,plid:dma,pltype:ema,ptchn:fma,ptk:gma,oid:hma,idpj:jma,ldpj:kma,userAge:lma,userGender:mma,sw:nma,remarketingUrl:oma,ppvRemarketingUrl:pma,rmktenabled:qma,baseurl:rma,videostatsPlaybackBaseUrl:sma,subscribed:tma,engaged:uma,vid:vma,uid:wma,aid:xma,focenabled:yma,socialenabled:zma,ytfocenabled:Ama,ytfochistoryenabled:Bma,ssrt:Cma,delay:Dma,cl:Ema,osid:Fma,vm:Gma,videoId:Hma,title:Ima,lengthSeconds:Jma,keywords:Kma,ucid:Lma,
allowRatings:Mma,avgRating:Nma,viewCount:Oma,author:Pma,thumbnailUrl:Qma,isListed:Rma,liveDefaultBroadcast:Sma,vq:Tma,watermark:Uma,accountPlaybackToken:Vma,watchAjaxToken:Wma,yvaXlb:Xma,yvaModule:Yma,yvaPreroll:Zma,ypcXlb:$ma,authuser:ana,pageid:bna,userDisplayName:cna,userDisplayImage:dna,playlistTitle:ena,playlistLength:fna,index:gna,iurl:hna,iurlmq:ina,iurlhq:jna,iurlsd:kna,iurlmaxres:lna,iurlWebp:mna,iurlmqWebp:nna,iurlhqWebp:ona,iurlsdWebp:pna,iurlmaxresWebp:qna,start:rna,end:sna,resume:tna,
of:una,list:vna,q:wna,referrer:xna,sdetail:yna,sourceid:zna,externalList:Ana,forcedExperiments:Bna,cctp:Cna,adformat:Dna,listtype:Ena,privembed:Fna,afvInstreamMax:Gna,adLanguageIso6392:Hna,adTag:Ina,afvAdTagRestrictedToInstream:Jna,maxDynamicAllocationAdTagLength:Kna,asLaunchedInCountry:Lna,adFlags:Mna,adPreroll:Nna,aftv:Ona,invideo:Pna,dynamicAllocationAdTag:Qna,gutTag:Rna,pyvInRelatedCafeExperimentId:Sna,afvAdTag:Tna,yO:Una,loeid:Vna,adDevice:Wna,cafeExperimentId:Xna,adsenseVideoDocId:Yna,fw:Zna,
adSlots:$na,shortform:aoa,tpasPartnerId:boa,instream:coa,trueview:doa,midrollFreqcap:eoa,mpvid:foa,mpu:goa,afv:hoa,tpasAdTypeId:ioa,tpasVideoId:joa,sffb:koa,contentOwnerName:loa,afvMergeEnabled:moa,excludedAds:noa,noAfvInstream:ooa,adAge:poa,adGender:qoa,adLoggingFlag:roa,showContentThumbnail:soa,cid:toa,afvInvideoAdTag:uoa,allowHtml5Ads:voa,supportedWithoutAds:woa,instreamLong:xoa,adBreaks:yoa,afcRmFallback:zoa,allowAdInAutoplay:Aoa,c4:Boa,dbp:Coa,fqsf:Doa,gptMigration:Eoa,xfp:Foa,midrollPrefetchSize:Goa,
trueviewLactt:Hoa,xfpTag:Ioa,advideo:Joa,ad3Module:Koa,vmap:Loa,serverPrefetchedVast:Moa,amsBaseTag:Noa,fadeOutStartMilliseconds:Ooa,fadeOutDurationMilliseconds:Poa,fadeInStartMilliseconds:Qoa,fadeInDurationMilliseconds:Roa,applyFadeOnMidrolls:Soa,adModule:Toa,pla:Uoa,plaAdTag:Voa,vastAdsModule:Woa,forcedSkipOffset:Xoa,enabledEngageTypes:Yoa,freewheelAdTag:Zoa,postAdRequests:$oa,enablejsapi:apa,ssl:bpa,baseYtUrl:cpa,controls:dpa,disablekb:epa,jsapicallback:fpa,svt:gpa,canplaylive:hpa,storeUserVolume:ipa,
useMediaVolume:jpa,sslStream:kpa,dash:lpa,liveStartWalltime:mpa,oauthToken:npa,visitorData:opa,vvt:ppa,osig:qpa,paygated:rpa,videoMastheadAdQuartileUrls:spa,tvList:tpa,pyvViewBeaconUrl:upa,pyvQuartile25BeaconUrl:vpa,pyvQuartile50BeaconUrl:wpa,pyvQuartile75BeaconUrl:xpa,pyvQuartile100BeaconUrl:ypa,pyvBillableUrl:zpa,rco:Apa,cco:Bpa,feature:Cpa,isFling:Dpa,ctrl:Epa,ytr:Fpa,ytrcc:Gpa,startseconds:null==LK?LK:+LK,sentiment:Z(l,338),spacecastFormatMap:Z(l,339),spacecastAdaptiveFormats:Z(l,340),suggestedquality:Z(l,
341),rvs:Z(l,342),urlEncodedThirdPartyMedia:Z(l,343),vssCredentialsToken:Z(l,344),vssCredentialsType:Z(l,345),ypcGid:Z(l,346),ypcPreview:Z(l,347),ypcOrigin:Z(l,348),requiresPurchase:Z(l,349),mdx:Z(l,350),retryneterr:Z(l,351),itct:Z(l,352),ypcOverlayTimeout:Z(l,353),app:Z(l,354),cweb:Z(l,355),pyvConvUrl:Z(l,356),cver:Z(l,357),on3g:Z(l,358),autohide:Z(l,359),useNativeControls:Z(l,360),useTabletControls:Z(l,361),codeDbp:Z(l,362),rel:Z(l,363),attrib:Z(l,364),showwatchlater:Z(l,365),spacecastModule:Z(l,
367),fairPlayCert:Z(l,368),showEndToEndLatency:Z(l,369),heartbeatSoftFail:Z(l,370),drmSessionId:Z(l,371),ivEndscreenUrl:Z(l,372),allowAdsPayCreator:Z(l,373),externalPlayVideo:Z(l,374),disablecast:Z(l,375),pyvAdTag:Z(l,376),channelUrl:Z(l,378),channelThumbnail:Z(l,379)};var R3={},St;for(St in m){var Hpa=Y8[St]?Y8[St]:St.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();R3[Hpa]=m[St]}e=R3;break a}}e=null}var MK;if(e){var Vh=d.args,vl=e,DA=[],zc;for(zc in Vh)Ipa[zc]||(vl.hasOwnProperty(zc)?typeof Vh[zc]!=
typeof vl[zc]?DA.push("wrong type. key ["+zc+"]: ("+typeof Vh[zc]+") "+Vh[zc]+"; ("+typeof vl[zc]+") "+vl[zc]):Vh[zc]!==vl[zc]&&DA.push("values differ. key ["+zc+"]: ("+typeof Vh[zc]+") "+Vh[zc]+"; ("+typeof vl[zc]+") "+vl[zc]):DA.push("missing. key ["+zc+" ]: ("+typeof Vh[zc]+") "+Vh[zc]));MK=DA}else MK=[];for(var fp=MK,T3=Math.floor(Math.random()*fp.length),fp=fp.slice(T3).concat(fp.slice(0,T3)),NK=0;NK<fp.length;NK++)Pi(Error("Discrepancy in legacy config: "+fp[NK]));var gp=this.X.args||{};this.T=
new aI(gp);G(this,this.T);this.T.experiments.$("legacy_autoplay_flag")||"detailpage"!=this.T.ua||(gp.autoplay="1");this.Ub=Uu("detailpage"==this.T.ua&&"blazer"!=this.T.b||"books"==this.T.b,gp.enablesizebutton);this.ca=Uu(!1,gp.player_wide);this.M=this.T.Ma&&Uu(!1,gp.external_list);this.hd=this.T.Ma&&Uu(!1,gp.external_play_video);this.ka=new or(this);G(this,this.ka);this.Fa=null;this.J=new kg;this.ba=new kg;this.b=new yL(this);G(this,this.b);this.Oa=new yL(this,1);G(this,this.Oa);this.D=new A5(this);
G(this,this.D);this.D.subscribe("resize",this.aF,this);this.K=1;this.Za={};var OK;if(this.T.storeUserVolume){var U3=yj("yt-player-volume")||{},V3=U3.volume;OK={volume:(0,window.isNaN)(V3)?100:Ve(Math.floor(V3),0,100),muted:!!U3.muted}}else OK={volume:100,muted:this.T.mute};this.U=OK;this.W=this.T.Ma?new xL(this,1):new wL(this,1);G(this,this.W);this.Aa=this.A=null;this.Ja={};var hp=this.T,zj=new kca;XH(hp)&&(zj.B=!0,zj.o=.1);hp.$a&&(zj.A=hp.$a/8);zj.b=hp.experiments.b("html5_bandwidth_window_size")||
zj.b;hp.experiments.$("html5_use_server_bandwidth_estimate")&&(zj.C=!0);var W3=hp.experiments.b("html5_request_delay_cutoff");W3&&(zj.g=W3);this.ga=new jca(zj);this.$a={internalvideodatachange:this.fA,liveviewshift:this.YE,playbackready:this.gA,playbackstarted:this.hA,statechange:this.iA,signatureexpired:this.MC};var Aj=new LM,X3=this.b;Aj.g!=X3&&(MM(Aj),Aj.C={},Aj.g=X3);var Wh={};Wh.loaded=w(this.Jq,this);Wh.unloaded=w(this.Kq,this);Wh.destroyed=w(this.qm,this);Wh.command_pause=Z8(this.pauseVideo,
this);Wh.command_play=Z8(this.pf,this);Wh.command_seek=Z8(this.seekTo,this);Wh.command_redirect_controls=w(this.Fs,this);Wh.command_stop_redirect_controls=w(this.sj,this);Aj.D=Wh;this.T.H.subscribe("vast_info_card_add",qa(Aj.G,"vast_info_card_add"),Aj);this.B=Aj;G(this,this.B);this.I=new t1(this.T,"",this.B);var Y3=new EK(this.T,1,this.I,this.D,w(this.J.R,this.J));$8(this,Y3,this.$a);this.g=Y3;this.g.ga=this.ga;this.Ib={airplayactivechange:this.Yz,airplayavailabilitychange:this.Zz,beginseeking:this.VE,
endseeking:this.WE,internalaudioformatchange:this.kA,internalvideodatachange:this.jn,internalvideoformatchange:this.nD,playbackstalledatstart:this.SC,progresssync:this.$E,seekto:this.bF,onLoadProgress:this.AB,onVideoProgress:this.pD,playbackready:this.iC,statechange:this.ZE,connectionissue:this.MA,heartbeatparams:this.XE,videoelementevent:this.cF};this.H=this.C=null;this.gb=this.ib=-1;this.ia=this.F=this.G=null;this.Z={};this.ra=null;this.yb=new be(this.D.Je,16,this.D);G(this,this.yb);this.Ua=!1;
this.Y=!0;this.Ca=this.o=null;this.za=!1;this.P=this.T.C?1:a9(this,yj("yt-player-playback-rate")||1);this.ma=null;this.Mc=this.qb=!1;this.ub=this.Bb=null;this.aa=0;this.jc=new X5(this.D.element);G(this,this.jc);this.Pa=0;this.wa=!1;this.b.addEventListener("crn_"+b9.A,this.dA,this);this.b.addEventListener("crx_"+b9.A,this.eA,this);this.b.addEventListener("crn_"+b9.g,this.sq,this);this.b.addEventListener("crx_"+b9.g,this.sq,this);this.D.initialize(a);th=this.T.P;var Tt=new ox(this.X.args);if(Ox(Tt)){this.g.vh(Tt,
w(this.Gj,this));if(wy(this.T)){var QK;var Jpa=Tt.videoId,$3=yj("yt-player-restore-playhead");QK=$3?$3[Jpa]:void 0;QK&&(Tt.startSeconds=QK)}Bj("yt-player-restore-playhead");(this.T.experiments.$("legacy_autoplay_flag")?this.T.ib:Tt.Zc)&&(this.T.Ua||this.T.experiments.C)&&JK(this.g)}this.I.g("fs");var Of=this.D;Of.isDisposed();var EA=Of.app.T;EA.I||Of.yn("tag-pool-enabled");EA.Sb&&Of.yn("house-brand");"gvn"==EA.b&&Of.yn("ytp-gvn");EA.K&&(Of.H=Xi("yt-dom-content-change",Of.Je,Of));Of.S(window,"resize",
Of.Je,Of);var xl=this.W;xl.b=this.D.element;for(var Ut in xl.A)xl.b[Ut]=xl.A[Ut];for(Ut in xl.o)xl.b[Ut]=xl.o[Ut];var a4=Rh(this.D.element);a4&&this.ka.S(this.D,a4,this.kB);this.ka.S(window,"resize",this.AC);var FA=this.X.args;c9(this);var RK=S4(this);this.b.va("onVolumeChange",this.U);if(FA&&dy(FA)){var c4=wy(this.T);c4&&!this.M&&(FA.fetch=0);d9(this,FA);if(c4&&!this.M)e9(this);else if(!Ox(RK)){var SK=this.o,Kpa=w(this.Nq,this);SK.D=Kpa;SK.C&&Mi(SK.D,0)}}var jp=this.X.args.jsapicallback;jp&&(ia(jp)||
(jp=q(jp)),jp&&Z8(w(jp,aa,this.T.Se),aa));if(this.T.o){var d4="embedded"==this.T.ua,e4=void 0;!this.T.experiments.$("legacy_cast")&&d4&&(e4={device:"Desktop",app:"youtube-desktop"});np(d4,e4)}a5(this,this.g);if(!U(this.g.getPlayerState(),128)){var HA=Zt(this.T.B);"fmt.noneavailable"==HA?HK(this.g,HA,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocanplaymedia.1"):"html5.missingapi"==HA?HK(this.g,HA,"YTP_ERROR_UNSUPPORTED_DEVICE",void 0):(this.T.experiments.$("legacy_autoplay_flag")?this.T.ib:RK.Zc)&&
this.T.Ua&&Ox(RK)?f9(this):"leanback"!=this.T.ua&&g9(this)}this.ea=new U8(this.b);G(this,this.ea);IL(this.Oa,"init")},i9=function(a,b){var c=a.g,d=a.$a,e;
for(e in d)c.ya(e,d[e],a);a.g.dispose();a.g=b;$8(a,b,a.$a);h9(a)},j9=function(a,b){a.Fa||(a.Fa=new W5(a),G(a,a.Fa),mr(a.b,a.Fa.element,4));
a.Fa.Xa(b)},c9=function(a){var b=Y4.getTag(!0,!a.T.B);
a.A=new JH(b);a.Aa=a.A;a.C&&bL(a.C,a.A);a.A.b.loop=a.za;a.A.b.playbackRate=a.P;a.T.useMediaVolume?(a.ma&&a.ka.qa(a.ma),a.ma=a.ka.S(a.A,"volumechange",a.IB)):(a.A.setVolume(a.U.volume/100),a.A.b.muted=a.U.muted);Eja(a.D,b);a.T.Be=a.A;CH(a.A)},k9=function(a){if(a.A){a.ma&&(a.ka.qa(a.ma),a.ma=null);
a.C&&aL(a.C);var b=a.D;b.o&&(Bf(b.o),b.o=null);a.T.Be=null;Y4.releaseTag(a.A.fa());a.A=null}},n2=function(a,b){a.T.I?(a.ia&&(a.A.setPosition(new $e(a.ia.left,a.ia.top)),a.A.setSize(ig(a.ia)),a.ia=null),GH(a.A),aL(a.C),bL(a.C,a.A),a.A.b.loop=a.za,a.A.b.playbackRate=a.P):Y4.releaseTag(b)},a5=function(a,b){a.C!=b&&(a.C&&(MM(a.B),iq(a,"cuerangesremoved",a.C.C.b.b||[]),$4(a)),b!=a.g&&(a.Ja[b.G]=b),a.C=b,b.ga=a.ga,a.A&&bL(b,a.A),$8(a,b,a.Ib),a.jn("newdata",b,b.getVideoData()),b.aa.b&&a.jn("dataloaded",
b,b.getVideoData()),iq(a,"cuerangesadded",a.C.C.b.b||[]),Zy(b.getPlayerState())&&hL(b))},$8=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)},$4=function(a){aL(a.C);
var b=a.C,c=a.Ib,d;for(d in c)b.ya(d,c[d],a);b=a.C;b!=a.g&&(c=b.G,a.Ja[c]==b&&delete a.Ja[c]);a.C=null},hq=function(a,b){return b?1==b?a.g:a.Ja[b]||null:a.C},l9=function(a){var b=a.B;
E([wF.A,dca,Ry,aA,Mba,bca,Faa,pI.g,ica,$aa],b.Ww,b);a.b.R("videoready",a.getVideoData())},n9=function(a){if(a.T.o){a.F||(a.F=new y5(a),m9(a,a.F));
var b=wp();z5(a.F,tp(),b);var c=a.F;c&&!c.D&&c.Va(a.Oa)&&c.create();a.T.experiments.$("legacy_cast")&&b&&a.F.load()}},m9=function(a,b){G(a,b);
b.subscribe("loaded",a.Jq,a);b.subscribe("unloaded",a.Kq,a);b.subscribe("command_pause",Z8(a.pauseVideo,a));b.subscribe("command_play",Z8(a.pf,a));b.subscribe("command_seek",Z8(a.seekTo,a));b.subscribe("command_redirect_controls",a.Fs,a);b.subscribe("command_stop_redirect_controls",a.sj,a)},o9=function(a,b){b&&b.D&&("ad"==b.Ea&&ie(a.D.element,["ytp-ad-overlay-open",
"ytp-ad-overlay-closed"]),b.destroy())},S4=function(a){return a.g.getVideoData()},p9=function(a,b){return(a.C&&2==a.C.G)==(2==b)?IH(a.Aa):0},g9=function(a){a.b.R("initializingmode");
q9(a,2)},f9=function(a){if(U(a.g.getPlayerState(),128))return!1;
if(a.T.experiments.$("preload_touch")&&a.H&&a.H.getVideoData().videoId==a.g.getVideoData().videoId){var b=a.H;a.H=null;i9(a,b)}a.b.R("initializingmode");a5(a,a.g);q9(a,3);(b=!a.T.I)||(q("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(k9(a),c9(a),bL(a.g,a.A));TK(a.g);if(U(a.g.getPlayerState(),128))return!1;r9(a,3);return a.Mc=!0},Z8=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);
Mi(function(){a.apply(b||this,c)},0)}},s9=function(a,b){a.za!=b&&(a.za=b,a.C==a.g&&(a.A.b.loop=b),a.b.R("loopchange",b))},t9=function(a,b,c){!(0,window.isNaN)(b)&&a.A&&(b=a9(a,b),a.P!=b&&(a.P=b,a.g==a.C&&(a.A.b.playbackRate=b),c&&xj("yt-player-playback-rate",b),a.b.va("onPlaybackRateChange",b)))},a9=function(a,b){var c=1,c=a.T.Y?u9:[1];
return c=1>b?fb(c,function(a){return a>=b}):ib(c,function(a){return a<=b})},v9=function(a,b){var c=hq(a,b);
return c?c.ln():a.getVideoData().ba},w9=function(a,b,c,d){if(c=hq(a,c))d=d||b,b=yu(b,d,!0),xj("yt-player-quality",d,a.T.experiments.b("html5_sticky_quality_duration_secs")||604800),mL(c,"m",b)},x9=function(a,b){var c=hq(a,b);
return c?c.Hh():0},z9=function(a,b){var c=qL(a.g,b);
if(a.C&&a.C!=a.g){var d=qL(a.C,b),e;for(e in d)c["ad_"+e]=d[e]}(d=y9(a))&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Oa.Pj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return Zf(c)},A9=function(a,b){return 3==a.getPresentingPlayerType()?iz(a.F.J):2==b?a.gb:a.ib},h9=function(a){o9(a,a.G);
a.T.o&&o9(a,a.F);a.qb=!1;a.sj();s9(a,!1);a.Za={};a=a.I;var b=a.A;b.o={};b.A={};a.o=!1},y9=function(a){a=a.jc;
var b=!a.b,c="";if(!a.b){a.b=new Q(["canvas",{style:"display: none"}]);a.b.b(a.A);var d=a.b.element;try{a.g=d.getContext("webgl")}catch(e){}}if(a.g)try{a.g.getExtension("WEBGL_debug_renderer_info"),c=a.g.getParameter(37446),c=c.replace(/[ :]/g,"_")}catch(e){}b&&Y5(a);return c},e9=function(a){var b=B9();
if(b)if(b.list){if(a.o&&a.o.B.toString()==b.list)if(0<=b.index){var c=b.video;a.b.Ia()&&((c=c[a.o.Pb()])&&c.encrypted_id!=a.o.vb().videoId||(b.index=a.o.Pb()));hy(a.o,b);a.Ca&&C9(a,a.Ca)}else a.Ca=null}else a.Gk()},d9=function(a,b){if(a.o){a.o.ya("error",a.Gk,a);
Nb(a.o);a.o=null;var c=zL(a.B,"playlist");c&&(qb(a.B.b,c),c.destroy())}b&&(a.M&&(b.fetch=0),a.o=new cy(b),a.o.subscribe("error",a.Gk,a))},D9=function(a,b,c,d){b in a.Za||(c=new dq(c,d,{id:b,
priority:1}),c.b=b9.g,a.g.C.ob([c]),a.Za[b]=c)},q9=function(a,b){b!=a.K&&(2==b&&(r9(a,-1),r9(a,5)),a.K=b,a.b.R("appstatechange",b))},r9=function(a,b){a.C&&2==a.C.G?a.gb!=b&&(a.gb=b,a.b.va("onAdStateChange",b)):a.ib!=b&&(a.ib=b,a.b.va("onStateChange",b))},F9=function(a,b,c){a.T.experiments.$("legacy_autoplay_flag")||"detailpage"!=a.T.ua||(b.autoplay="1");
var d=new ox(b);b&&dy(b)?(wy(a.T)&&!a.M&&(b.fetch=0),d9(a,b)):a.o&&d9(a,null);a.M=Uu(!1,b.external_list);wy(a.T)&&!a.M&&e9(a);return E9(a,d,c)},G9=function(a,b){a.H&&a.H.getVideoData().videoId==b.videoId||(b.Ua=!0,a.H||(a.H=new EK(a.T,1,a.I,a.D,w(a.J.R,a.J)),a.H.ga=a.ga),a.H.vh(b,w(a.Gj,a)),JK(a.H,!0))},E9=function(a,b,c){if(!Rv("_start",a.I.b)){var d=a.I.b;
Vv("yt_sts","p",d);Qv("_start",void 0,d);a.I.info("srt",0)}if(a.H&&a.H.getVideoData().videoId==b.videoId)d=a.H,a.H=null,i9(a,d);else{d=hq(a,c);if(!d)return!1;a.yb.stop();H9(a,c);d.vh(b,w(a.Gj,a))}if(!IK(d))return!1;a.Ua&&(d.gb=!1,a.Ua=!1);if(d==a.g)return q9(a,1),f9(a);TK(d);return!0},I9=function(a,b,c){c=hq(a,c);
b&&c==a.g&&(c.getVideoData().Cg=!0)},J9=function(a,b,c){var d=hq(a,c);
d&&(H9(a,c),d.vh(b,w(a.Gj,a)),$H(d.T,b.o),d==a.g&&(q9(a,1),g9(a)))},L9=function(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");
if(a.b.Ia()||"detailpage"!=a.T.ua){c=a.I;var f=c.A;f.o={};f.A={};c.o=!1;a.I.reset();b={video_id:b};e&&(b.autoplay="1");d?(b.list=d,a.Y=!1,K9(a,b,void 0,void 0,void 0)):F9(a,b,1)}else e=c||{},e.lact=AB(),e.vis=AK(a.T),a.hd||"gaming"==a.T.b?a.b.va("onPlayVideo",{videoId:b,sessionData:e,listId:d}):(a=a.T.getVideoUrl(b,d),q("yt.player.exports.navigate")(a,e,!0),(window.ytspf||{}).enabled?window.spf.navigate(a):ry(a))},K9=function(a,b,c,d,e){if(ka(b)&&!ea(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");
d={};for(e=0;e<c.length;e++){var f=c[e];b[f]&&(d[f]=b[f])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},v(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;d9(a,b);b=a.o;a=w(a.Nq,a);b.D=a;b.C&&Mi(b.D,0)},Oy=function(a){wy(a.T)&&!a.M&&e9(a);
return!(!a.o||!a.o.hasNext())},M9=function(a,b){S4(a).autonavState=b;
a.b.R("autonavchange",b)},N9=function(a,b,c){a.M&&!a.b.Ia()?a.b.va("onPlaylistNext"):a.o?wy(a.T)&&!a.b.Ia()?C9(a,"yt.www.watch.lists.next"):(a.o.hasNext(b)&&gy(a.o,ey(a.o)),a.o.C?E9(a,a.o.vb(void 0,c),1):a.Y=!1):Ey(a.b)&&hq(a,1).getVideoData().H&&(b=zi(hq(a,1).getVideoData().H,ly)[0],L9(a,b.vb().videoId,b.za,b.Bg(),c))},O9=function(a,b){if(a.M&&!a.b.Ia())a.b.va("onPlaylistPrevious");
else if(a.o)if(wy(a.T)&&!a.b.Ia())C9(a,"yt.www.watch.lists.prev");else{var c=a.o;(c.H||b||0<=c.b-1)&&gy(a.o,fy(a.o));a.o.C?E9(a,a.o.vb(),1):a.Y=!1}},C9=function(a,b){var c=q(b);
if(c){var d=B9();d&&d.list&&c();a.Ca=null}else a.Ca=b},P9=function(a,b){a.M&&!a.b.Ia()?a.b.va("onPlaylistIndex",b):a.o&&(a.o.C?E9(a,a.o.vb(b),1):a.Y=!1,gy(a.o,b))},B9=function(){var a=q("yt.www.watch.lists.getState");
return a?a():null},R9=function(a,b,c,d,e,f){b={id:b};
"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):(0,window.isNaN)(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);c=new dq(1E3*c,1E3*d,b);c.b=b9.A;Q9(a,[c],1);return!0},Q9=function(a,b,c){var d=hq(a,c);
d&&(d.C.ob(b),c&&a.getPresentingPlayerType()!=c||iq(a,"cuerangesadded",b))},e5=function(a){var b=Bt(),c=a.getCurrentTime();
a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)},T9=function(a,b,c){a.U=b;
c&&a.T.storeUserVolume&&!a.T.useMediaVolume&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(xj("yt-player-volume",c),xj("yt-player-volume",c,2592E3)));S9(a);a.T.useMediaVolume||(b=hc(b),a.T.storeUserVolume||(b.unstorable=!0),a.b.va("onVolumeChange",b))},S9=function(a){var b=a.getVideoData();
b.hi||(a.A.setVolume(a.U.volume*(a.T.useMediaVolume?ox.g:b.gi)/100),a.A.b.muted=a.U.muted)},U9=function(a,b){var c=window.screen&&window.screen.orientation;
if(a.T.experiments.$("lock_fullscreen")&&c&&c.Dz)if(b){var d=0==c.type.indexOf("portrait"),e=d;if(a.T.experiments.$("lock_fullscreen_auto")){var f=VG(a.D);1>f?e=!0:1<f&&(e=!1)}if(!a.wa||e!=d){if(c=c.Dz(e?"portrait":"landscape"))c["catch"](r);a.wa=!0}}else a.wa&&(a.wa=!1,c.KO())},V9=function(a,b){var c=!!b,d=!!a.Pa!=c;
a.Pa=b;a.T.experiments.$("legacy_player_fullscreen_order")?d&&(a.I.g("fsc"),a.T.jf=c,a.D.Je()):(a.T.jf=c,a.D.Je(),d&&a.I.g("fsc"));d&&(a.b.R("fullscreentoggled",c),d=S4(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.Oa.Ce()&&(c.listId=a.Oa.Ce()),a.b.va("onFullscreenChange",c))},iq=function(a,b,c){a.b.R(b,c);
if(c&&XH(a.T)){var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&a.b.va(d,c)}},W9=function(a){var b=a.g.getVideoData(),b=new ox({video_id:b.videoId,
oauth_token:b.oauthToken});J9(a,b,1)},H9=function(a,b){Cv(a.aa);
a.aa=0;var c=hq(a,b);c&&1!=a.K&&2!=a.K&&(MM(a.B),1==b&&o9(a,a.G),ZK(c),iq(a,"cuerangesremoved",a.C.C.b.b||[]),c.C.reset())},X9=function(a,b){if(NL(a.Oa)){var c=a.Z.play_pause?a.ra:null;
c?c.re("control_play"):a.pf(b)}},Y9=function(a,b,c,d,e){var f=hq(a,e);
if(!f||2!=f.G&&!Tx(f.getVideoData()))(f=a.Z.seek?a.ra:null)?f.re("control_seek",b):a.seekTo(b,c,d,e)},Z9=function(a,b,c){a.Ub=b;
a.ca=c;a.b.R("sizestylechange",b,c);a.D.Je()},$9=function(a,b,c,d,e){c=a.T.Ma&&a.G&&b==a.G.Ea?a.G.Td(c,d):(a.T.Ma||e)&&a.F&&a.F.D&&b==a.F.Ea?a.F.Td(c,d):b&&c?(a=zL(a.B,b))?a.Td(c,d):null:null;
return c},a$=function(a,b,c){if(b){if(a.T.Ma&&a.G&&b==a.G.Ea)return a.G.tf();
if((a.T.Ma||c)&&a.F&&a.F.D&&b==a.F.Ea)return a.F.tf()}else return b=PM(a.B),a.T.Ma&&a.G&&b.push(a.G.Ea),(a.T.Ma||c)&&a.F&&a.F.D&&b.push(a.F.Ea),b;return PM(a.B,b)},xn=xn||{},aa=this,la="closure_uid_"+(1E9*Math.random()>>>0),ma=0,D=Date.now||function(){return+new Date};y(ua,Error);ua.prototype.name="CustomError";var gf;var Sa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ba=/&/g,Ca=/</g,Da=/>/g,Ea=/"/g,Fa=/'/g,Ga=/\x00/g,za=/[\x00&<>"']/,La=/&([^;\s<&]+);?/g,an={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},$m={"'":"\\'"},Oa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Wa=2147483648*Math.random()|0;var jb=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;
if(v(a))return v(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Lpa=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;
0>c&&(c=Math.max(0,a.length+c));if(v(a))return v(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},E=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ge=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k=v(a)?a.split(""):a,m=0;m<d;m++)if(m in k){var l=k[m];
b.call(c,l,m,a)&&(e[f++]=l)}return e},zi=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=v(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e},Xe=Array.prototype.reduce?function(a,b,c,d){d&&(b=w(b,d));
return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;
E(a,function(c,k){e=b.call(d,e,c,k,a)});
return e},Ph=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1},Bg=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};F.prototype.Sa=!1;F.prototype.isDisposed=function(){return this.Sa};
F.prototype.dispose=function(){this.Sa||(this.Sa=!0,this.O())};
F.prototype.O=function(){if(this.Ga)for(;this.Ga.length;)this.Ga.shift()()};var jc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");mc.prototype.stopPropagation=function(){this.g=!0};
mc.prototype.preventDefault=function(){this.Br=!1};oc[" "]=r;var qc;a:{var b$=aa.navigator;if(b$){var c$=b$.userAgent;if(c$){qc=c$;break a}}qc=""};var Cc=rc("Opera"),qf=rc("Trident")||rc("MSIE"),gu=rc("Edge"),TG=gu||qf,Dq=rc("Gecko")&&!(Na(qc,"WebKit")&&!rc("Edge"))&&!(rc("Trident")||rc("MSIE"))&&!rc("Edge"),Bc=Na(qc,"WebKit")&&!rc("Edge"),C5=Bc&&rc("Mobile"),yK=rc("Macintosh"),kI=rc("Android"),zca=tc(),AN=rc("iPad"),d$;a:{var e$="",f$=function(){var a=qc;if(Dq)return/rv\:([^\);]+)(\)|;)/.exec(a);if(gu)return/Edge\/([\d\.]+)/.exec(a);if(qf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Bc)return/WebKit\/(\S+)/.exec(a);if(Cc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
f$&&(e$=f$?f$[1]:"");if(qf){var g$=uc();if(null!=g$&&g$>(0,window.parseFloat)(e$)){d$=String(g$);break a}}d$=e$}var wc=d$,vc={},h$=aa.document,yc=h$&&qf?uc()||("CSS1Compat"==h$.compatMode?(0,window.parseInt)(wc,10):5):void 0;var Zc=!qf||Ac(9),Mpa=qf&&!xc("9");!Bc||xc("528");Dq&&xc("1.9b")||qf&&xc("8")||Cc&&xc("9.5")||Bc&&xc("528");Dq&&!xc("8")||qf&&xc("9");var Npa={ek:"click",OM:"rightclick",AJ:"dblclick",mL:"mousedown",sL:"mouseup",rL:"mouseover",qL:"mouseout",pL:"mousemove",nL:"mouseenter",oL:"mouseleave",SM:"selectstart",mO:"wheel",QK:"keypress",PK:"keydown",RK:"keyup",QI:"blur",gK:"focus",BJ:"deactivate",hK:qf?"focusin":"DOMFocusIn",iK:qf?"focusout":"DOMFocusOut",fJ:"change",IM:"reset",RM:"select",rN:"submit",DK:"input",zM:"propertychange",TJ:"dragstart",OJ:"drag",QJ:"dragenter",SJ:"dragover",RJ:"dragleave",VJ:"drop",PJ:"dragend",GN:"touchstart",
FN:"touchmove",EN:"touchend",DN:"touchcancel",MI:"beforeunload",pJ:"consolemessage",tJ:"contextmenu",IJ:"DOMContentLoaded",ERROR:"error",sK:"help",LOAD:"load",gL:"losecapture",$L:"orientationchange",DM:"readystatechange",JM:"resize",QM:"scroll",vN:"timeupdate",PN:"unload",mK:"hashchange",cM:"pagehide",dM:"pageshow",sM:"popstate",uJ:"copy",fM:"paste",zJ:"cut",II:"beforecopy",JI:"beforecut",KI:"beforepaste",XL:"online",UL:"offline",MESSAGE:"message",oJ:"connect",uI:Dc("AnimationStart"),sI:Dc("AnimationEnd"),
tI:Dc("AnimationIteration"),JN:Dc("TransitionEnd"),lM:"pointerdown",rM:"pointerup",kM:"pointercancel",oM:"pointermove",qM:"pointerover",pM:"pointerout",mM:"pointerenter",nM:"pointerleave",lK:"gotpointercapture",hL:"lostpointercapture",xL:"MSGestureChange",yL:"MSGestureEnd",zL:"MSGestureHold",AL:"MSGestureStart",BL:"MSGestureTap",CL:"MSGotPointerCapture",DL:"MSInertiaStart",FL:"MSLostPointerCapture",GL:"MSPointerCancel",HL:"MSPointerDown",IL:"MSPointerEnter",JL:"MSPointerHover",KL:"MSPointerLeave",
LL:"MSPointerMove",ML:"MSPointerOut",NL:"MSPointerOver",OL:"MSPointerUp",TEXT:"text",sN:"textInput",mJ:"compositionstart",nJ:"compositionupdate",lJ:"compositionend",cK:"exit",YK:"loadabort",ZK:"loadcommit",$K:"loadredirect",aL:"loadstart",bL:"loadstop",LM:"responsive",aN:"sizechanged",RN:"unresponsive",gO:"visibilitychange",nN:"storage",NJ:"DOMSubtreeModified",JJ:"DOMNodeInserted",LJ:"DOMNodeRemoved",MJ:"DOMNodeRemovedFromDocument",KJ:"DOMNodeInsertedIntoDocument",GJ:"DOMAttrModified",HJ:"DOMCharacterDataModified",
LI:"beforeprint",iI:"afterprint"};y(Ec,mc);
Ec.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?Dq&&(pc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,
this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.b=a;a.defaultPrevented&&this.preventDefault()};
Ec.prototype.stopPropagation=function(){Ec.L.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};
Ec.prototype.preventDefault=function(){Ec.L.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Mpa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Fc="closure_listenable_"+(1E6*Math.random()|0),Hc=0;Kc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=Lc(e,b,c,d);return-1<b?(Jc(e[b]),pb(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1};var Uc="closure_lm_"+(1E6*Math.random()|0),cd={},Xc=0,fd="__closure_events_fn_"+(1E9*Math.random()>>>0);y(I,F);I.prototype[Fc]=!0;h=I.prototype;h.qg=function(a){this.ma=a};
h.addEventListener=function(a,b,c,d){Qc(this,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){ad(this,a,b,c,d)};
h.V=function(a){var b,c=this.ma;if(c){b=[];for(var d=1;c;c=c.ma)b.push(c),++d}c=this.Ja;d=a.type||a;if(v(a))a=new mc(a,c);else if(a instanceof mc)a.target=a.target||c;else{var e=a;a=new mc(d,c);kc(a,e)}var e=!0,f;if(b)for(var k=b.length-1;!a.g&&0<=k;k--)f=a.currentTarget=b[k],e=gd(f,d,!0,a)&&e;a.g||(f=a.currentTarget=c,e=gd(f,d,!0,a)&&e,a.g||(e=gd(f,d,!1,a)&&e));if(b)for(k=0;!a.g&&k<b.length;k++)f=a.currentTarget=b[k],e=gd(f,d,!1,a)&&e;return e};
h.O=function(){I.L.O.call(this);this.Pc&&Oc(this.Pc);this.ma=null};
h.N=function(a,b,c,d){return Mc(this.Pc,String(a),b,!1,c,d)};
h.qa=function(a,b,c,d){return this.Pc.remove(String(a),b,c,d)};hd.prototype.get=function(){var a;0<this.g?(this.g--,a=this.b,this.b=a.next,a.next=null):a=this.A();return a};var md;var vd=new hd(function(){return new qd},function(a){a.reset()},100);
pd.prototype.remove=function(){var a=null;this.b&&(a=this.b,this.b=this.b.next,this.b||(this.g=null),a.next=null);return a};
qd.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null};
qd.prototype.reset=function(){this.next=this.scope=this.b=null};var rd,td=!1,ud=new pd;Cd.prototype.reset=function(){this.context=this.g=this.o=this.b=null;this.A=!1};
var Dd=new hd(function(){return new Cd},function(a){a.reset()},100);
Bd.prototype.then=function(a,b,c){return Md(this,ia(a)?a:null,ia(b)?b:null,c)};
yd(Bd);Bd.prototype.cancel=function(a){0==this.b&&wd(function(){var b=new Td(a);Od(this,b)},this)};
Bd.prototype.G=function(a){this.b=0;Ad(this,2,a)};
Bd.prototype.H=function(a){this.b=0;Ad(this,3,a)};
Bd.prototype.F=function(){for(var a;a=Pd(this);)Qd(this,a,this.b,this.D);this.C=!1};
var Xd=ld;y(Td,ua);Td.prototype.name="cancel";y(Yd,I);h=Yd.prototype;h.enabled=!1;h.Ec=null;h.Ax=function(){if(this.enabled){var a=D()-this.o;0<a&&a<.8*this.b?this.Ec=this.g.setTimeout(this.A,this.b-a):(this.Ec&&(this.g.clearTimeout(this.Ec),this.Ec=null),this.V("tick"),this.enabled&&(this.Ec=this.g.setTimeout(this.A,this.b),this.o=D()))}};
h.start=function(){this.enabled=!0;this.Ec||(this.Ec=this.g.setTimeout(this.A,this.b),this.o=D())};
h.stop=function(){this.enabled=!1;this.Ec&&(this.g.clearTimeout(this.Ec),this.Ec=null)};
h.O=function(){Yd.L.O.call(this);this.stop();delete this.g};y(be,F);h=be.prototype;h.oa=0;h.O=function(){be.L.O.call(this);this.stop();delete this.b;delete this.g};
h.start=function(a){this.stop();this.oa=$d(this.A,n(a)?a:this.o)};
h.we=function(a){this.isActive()||this.start(a)};
h.stop=function(){this.isActive()&&ae(this.oa);this.oa=0};
h.isActive=function(){return 0!=this.oa};
h.fp=function(){this.oa=0;this.b&&this.b.call(this.g)};var Se={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var je=/<[^>]*>|&[^;]+;/g,z0=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),oe=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),me=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),ne=/^http:\/\/.*/,Daa=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
le=/\s+/,pe=/[\d\u06f0-\u06f9]/;te.prototype.hf=!0;te.prototype.fe=function(){return this.b};
te.prototype.toString=function(){return"Const{"+this.b+"}"};
var se={};xe.prototype.hf=!0;var we={};xe.prototype.fe=function(){return this.b};
var Qe=ye(""),Pe=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;Ae.prototype.hf=!0;Ae.prototype.fe=function(){return this.b};
Ae.prototype.Rl=!0;Ae.prototype.Kf=function(){return 1};
var Ce=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,ze={};De("about:blank");Ge.prototype.hf=!0;Ge.prototype.fe=function(){return this.b};
Ge.prototype.Rl=!0;Ge.prototype.Kf=function(){return 1};
var Fe={};Ke.prototype.Rl=!0;Ke.prototype.Kf=function(){return this.g};
Ke.prototype.hf=!0;Ke.prototype.fe=function(){return this.b};
var Oe=/^[a-zA-Z0-9-]+$/,Re={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Opa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Je={};Me("<!DOCTYPE html>",0);Me("",0);Me("<br>",0);h=$e.prototype;h.clone=function(){return new $e(this.x,this.y)};
h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
h.scale=function(a,b){var c=ha(b)?b:a;this.x*=a;this.y*=c;return this};h=bf.prototype;h.clone=function(){return new bf(this.width,this.height)};
h.Cd=function(){return this.width*this.height};
h.aspectRatio=function(){return this.width/this.height};
h.isEmpty=function(){return!this.Cd()};
h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
h.scale=function(a,b){var c=ha(b)?b:a;this.width*=a;this.height*=c;return this};var uf=!qf||Ac(9),Df=!Dq&&!qf||qf&&Ac(9)||Dq&&xc("1.9.1");qf&&xc("9");var Hf=qf||Cc||Bc;var mf={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};h=ef.prototype;h.fa=function(a){return v(a)?this.b.getElementById(a):a};
h.Cx=function(a,b,c){return tf(this.b,arguments)};
h.createElement=function(a){return this.b.createElement(a)};
h.appendChild=xf;h.contains=Jf;var dg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},cg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=eg.prototype;h.Ta=function(){return this.right-this.left};
h.getHeight=function(){return this.bottom-this.top};
h.clone=function(){return new eg(this.top,this.right,this.bottom,this.left)};
h.contains=function(a){return this&&a?a instanceof eg?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
h.scale=function(a,b){var c=ha(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};h=fg.prototype;h.clone=function(){return new fg(this.left,this.top,this.width,this.height)};
h.contains=function(a){return a instanceof fg?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
h.scale=function(a,b){var c=ha(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};y(kg,F);h=kg.prototype;h.subscribe=function(a,b,c){var d=this.g[a];d||(d=this.g[a]=[]);var e=this.bc;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.bc=e+3;d.push(e);return e};
h.yc=function(a){var b=this.b[a];if(b){var c=this.g[b];0!=this.o?(this.A.push(a),this.b[a+1]=r):(c&&qb(c,a),delete this.b[a],delete this.b[a+1],delete this.b[a+2])}return!!b};
h.R=function(a,b){var c=this.g[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.B)for(e=0;e<c.length;e++){var k=c[e];mg(this.b[k+1],this.b[k+2],d)}else{this.o++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.b[k+1].apply(this.b[k+2],d)}finally{if(this.o--,0<this.A.length&&0==this.o)for(;c=this.A.pop();)this.yc(c)}}return 0!=e}return!1};
h.clear=function(a){if(a){var b=this.g[a];b&&(E(b,this.yc,this),delete this.g[a])}else this.b.length=0,this.g={}};
h.cb=function(a){if(a){var b=this.g[a];return b?b.length:0}a=0;for(b in this.g)a+=this.cb(b);return a};
h.O=function(){kg.L.O.call(this);this.clear();this.A.length=0};var og="StopIteration"in aa?aa.StopIteration:{message:"StopIteration",stack:""};ng.prototype.next=function(){throw og;};
ng.prototype.kc=function(){return this};h=sg.prototype;h.cb=function(){return this.pa};
h.Ha=function(){wg(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};
h.La=function(){wg(this);return this.b.concat()};
h.$e=function(a){for(var b=0;b<this.b.length;b++){var c=this.b[b];if(tg(this.g,c)&&this.g[c]==a)return!0}return!1};
h.Na=function(a,b){if(this===a)return!0;if(this.pa!=a.cb())return!1;var c=b||vg;wg(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};
h.isEmpty=function(){return 0==this.pa};
h.clear=function(){this.g={};this.Ae=this.pa=this.b.length=0};
h.remove=function(a){return tg(this.g,a)?(delete this.g[a],this.pa--,this.Ae++,this.b.length>2*this.pa&&wg(this),!0):!1};
h.get=function(a,b){return tg(this.g,a)?this.g[a]:b};
h.set=function(a,b){tg(this.g,a)||(this.pa++,this.b.push(a),this.Ae++);this.g[a]=b};
h.forEach=function(a,b){for(var c=this.La(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
h.clone=function(){return new sg(this)};
h.kc=function(a){wg(this);var b=0,c=this.Ae,d=this,e=new ng;e.next=function(){if(c!=d.Ae)throw Error("The map has changed since the iterator was created");if(b>=d.b.length)throw og;var e=d.b[b++];return a?e:d.g[e]};
return e};var Eg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Sg=/#|$/,Vg=/[?&]($|#)/;N.prototype.toString=function(){var a=[],b=this.o;b&&a.push(fh(b,i$,!0),":");var c=this.g;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(fh(b,i$,!0),"@"),a.push(xa(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.A)this.g&&"/"!=c.charAt(0)&&a.push("/"),a.push(fh(c,"/"==c.charAt(0)?Ppa:Qpa,!0));(c=this.b.toString())&&a.push("?",c);(c=this.F())&&a.push("#",fh(c,Rpa));return a.join("")};
N.prototype.clone=function(){return new N(this)};
N.prototype.I=function(){return this.b.toString()};
N.prototype.F=function(){return this.G};
var i$=/[#\/\?@]/g,Qpa=/[\#\?:]/g,Ppa=/[\#\?]/g,gh=/[\#\?@]/g,Rpa=/#/g;h=dh.prototype;h.cb=function(){ph(this);return this.pa};
h.remove=function(a){ph(this);a=qh(this,a);return ug(this.b,a)?(this.g=null,this.pa=this.pa-this.b.get(a).length,this.b.remove(a)):!1};
h.clear=function(){this.b=this.g=null;this.pa=0};
h.isEmpty=function(){ph(this);return 0==this.pa};
h.$e=function(a){var b=this.Ha();return kb(b,a)};
h.La=function(){ph(this);for(var a=this.b.Ha(),b=this.b.La(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
h.Ha=function(a){ph(this);var b=[];if(v(a))rh(this,a)&&(b=sb(b,this.b.get(qh(this,a))));else{a=this.b.Ha();for(var c=0;c<a.length;c++)b=sb(b,a[c])}return b};
h.set=function(a,b){ph(this);this.g=null;a=qh(this,a);rh(this,a)&&(this.pa=this.pa-this.b.get(a).length);this.b.set(a,[b]);this.pa=this.pa+1;return this};
h.get=function(a,b){var c=a?this.Ha(a):[];return 0<c.length?String(c[0]):b};
h.toString=function(){if(this.g)return this.g;if(!this.b)return"";for(var a=[],b=this.b.La(),c=0;c<b.length;c++)for(var d=b[c],e=xa(d),d=this.Ha(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+xa(d[f]));a.push(k)}return this.g=a.join("&")};
h.clone=function(){var a=new dh;a.g=this.g;this.b&&(a.b=this.b.clone(),a.pa=this.pa);return a};/*
 Portions of this code are from the google-caja project, received by
 Google under the Apache license (http://code.google.com/p/google-caja/).
 All other code is Copyright 2009 Google, Inc. All Rights Reserved.

// Copyright (C) 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

*/
var th=void 0;var Nh=Bc?"webkit":Dq?"moz":qf?"ms":Cc?"o":"",j$=q("yt.dom.getNextId_");if(!j$){j$=function(){return++Spa};
ba("yt.dom.getNextId_",j$,void 0);var Spa=0};var Xh={enablejsapi:1},Yh={},Zh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};$h.prototype.clone=function(){var a=new $h,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==da(c)?a[b]=hc(c):a[b]=c}return a};var ei=window.document.currentScript&&-1!=window.document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",fi=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"],k$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"],ci=ai()?k$.concat(fi):fi.concat(k$);var hu=rc("Firefox"),VH=tc()||rc("iPod"),ux=rc("iPad"),WH=rc("Android")&&!(sc()||rc("Firefox")||rc("Opera")||rc("Silk")),Xl=sc(),eu=rc("Safari")&&!(sc()||rc("Coast")||rc("Opera")||rc("Edge")||rc("Silk")||rc("Android"))&&!(tc()||rc("iPad")||rc("iPod"));var ui=D(),li=null,si=Array(50),ri=-1,ti=!1;var Gi={};var Ii=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};ba("yt.config_",Ii,void 0);ba("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Qi=window.yt&&window.yt.msgs_||q("window.ytcfg.msgs")||{};ba("yt.msgs_",Qi,void 0);var Bt=window.performance&&window.performance.timing&&window.performance.now&&window.__yt_experimental_now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};var Tpa=q("yt.pubsub.instance_")||new kg;kg.prototype.subscribe=kg.prototype.subscribe;kg.prototype.unsubscribeByKey=kg.prototype.yc;kg.prototype.publish=kg.prototype.R;kg.prototype.clear=kg.prototype.clear;ba("yt.pubsub.instance_",Tpa,void 0);var Ui=q("yt.pubsub.subscribedKeys_")||{};ba("yt.pubsub.subscribedKeys_",Ui,void 0);var Wi=q("yt.pubsub.topicToKeys_")||{};ba("yt.pubsub.topicToKeys_",Wi,void 0);var Vi=q("yt.pubsub.isSynchronous_")||{};ba("yt.pubsub.isSynchronous_",Vi,void 0);
var Ti=q("yt.pubsub.skipSubId_")||null;ba("yt.pubsub.skipSubId_",Ti,void 0);y(hj,gj);hj.prototype.cb=function(){var a=0;qg(this.kc(!0),function(){a++});
return a};
hj.prototype.clear=function(){var a=rg(this.kc(!0)),b=this;E(a,function(a){b.remove(a)})};y(ij,hj);h=ij.prototype;h.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};
h.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
h.get=function(a){a=this.b.getItem(a);if(!v(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
h.remove=function(a){this.b.removeItem(a)};
h.cb=function(){return this.b.length};
h.kc=function(a){var b=0,c=this.b,d=new ng;d.next=function(){if(b>=c.length)throw og;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!v(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
h.clear=function(){this.b.clear()};
h.key=function(a){return this.b.key(a)};y(jj,ij);y(kj,ij);lj.prototype.set=function(a,b){n(b)?this.b.set(a,Zf(b)):this.b.remove(a)};
lj.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return Vf(b)}catch(c){throw"Storage: Invalid value was encountered";}};
lj.prototype.remove=function(a){this.b.remove(a)};y(mj,lj);mj.prototype.set=function(a,b){mj.L.set.call(this,a,oj(b))};
mj.prototype.g=function(a){a=mj.L.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
mj.prototype.get=function(a){if(a=this.g(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};y(pj,mj);pj.prototype.set=function(a,b,c){if(b=oj(b)){if(c){if(c<D()){pj.prototype.remove.call(this,a);return}b.expiration=c}b.creation=D()}pj.L.set.call(this,a,b)};
pj.prototype.g=function(a,b){var c=pj.L.g.call(this,a);if(c)if(!b&&qj(c))pj.prototype.remove.call(this,a);else return c};y(rj,pj);var uj,l$=new jj;uj=l$.isAvailable()?new rj(l$):null;var wj,m$=new kj;wj=m$.isAvailable()?new rj(m$):null;var xk={CI:"atp",bN:"ska",CM:"que",PL:"mus",YM:"sus"};var Oj=null;"undefined"!=typeof window.XMLHttpRequest?Oj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(Oj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var Rj={"X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-Youtube-Identity-Token":"XSRF_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};Zj.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};
Zj.prototype.B=function(a,b){a(Error("Request error: "+b.status))};
Zj.prototype.D=function(a){a(Error("request timed out"))};y(kk,F);kk.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.X.subscribe(a,b,c)};
kk.prototype.ya=function(a,b,c){return this.isDisposed()?!1:lg(this.X,a,b,c)};
kk.prototype.yc=function(a){return this.isDisposed()?!1:this.X.yc(a)};
kk.prototype.R=function(a,b){return this.isDisposed()?!1:this.X.R.apply(this.X,arguments)};y(lk,kk);lk.prototype.zc=function(){return this.screens};
lk.prototype.contains=function(a){return!!ik(this.screens,a)};
lk.prototype.get=function(a){return a?jk(this.screens,a):null};
lk.prototype.info=function(a){qi(this.C,a)};y(pk,kk);var n$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=pk.prototype;h.start=function(){!this.b&&(0,window.isNaN)(this.g)&&this.As()};
h.stop=function(){this.b&&(this.b.abort(),this.b=null);(0,window.isNaN)(this.g)||(O(this.g),this.g=window.NaN)};
h.O=function(){this.stop();pk.L.O.call(this)};
h.As=function(){this.g=window.NaN;this.b=Sj(ak(this.D,"/pairing/get_screen"),{method:"POST",Hb:{pairing_code:this.C},timeout:5E3,ab:w(this.NE,this),onError:w(this.ME,this),wc:w(this.OE,this)})};
h.NE=function(a,b){this.b=null;var c=b.screen||{};c.dialId=this.o;c.name=this.B;this.R("pairingComplete",new vi(c))};
h.ME=function(a){this.b=null;a.status&&404==a.status?this.A>=n$.length?this.R("pairingFailed",Error("DIAL polling timed out")):(a=n$[this.A],this.g=Mi(w(this.As,this),a),this.A++):this.R("pairingFailed",Error("Server error "+a.status))};
h.OE=function(){this.b=null;this.R("pairingFailed",Error("Server not responding"))};y(qk,hj);qk.prototype.set=function(a,b){this.g.set(this.b+a,b)};
qk.prototype.get=function(a){return this.g.get(this.b+a)};
qk.prototype.remove=function(a){this.g.remove(this.b+a)};
qk.prototype.kc=function(a){var b=this.g.kc(!0),c=this,d=new ng;d.next=function(){for(var d=b.next();d.substr(0,c.b.length)!=c.b;)d=b.next();return a?d.substr(c.b.length):c.g.get(d)};
return d};h=tk.prototype;h.cb=function(){return this.b.cb()};
h.remove=function(a){return this.b.remove(uk(a))};
h.clear=function(){this.b.clear()};
h.isEmpty=function(){return this.b.isEmpty()};
h.contains=function(a){return ug(this.b,uk(a))};
h.Ha=function(){return this.b.Ha()};
h.clone=function(){return new tk(this)};
h.Na=function(a){return this.cb()==xg(a)&&wk(this,a)};
h.kc=function(){return this.b.kc(!1)};yk.prototype.Na=function(a){return a?this.id==a.id:!1};var Ak=/\s*;\s*/;h=zk.prototype;h.isEnabled=function(){return window.navigator.cookieEnabled};
h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');n(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(D()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f};
h.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(Ak),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
h.remove=function(a,b,c){var d=n(this.get(a));this.set(a,"",0,b,c);return d};
h.La=function(){return Bk(this).keys};
h.Ha=function(){return Bk(this).values};
h.isEmpty=function(){return!this.b.cookie};
h.cb=function(){return this.b.cookie?(this.b.cookie||"").split(Ak).length:0};
h.$e=function(a){for(var b=Bk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
h.clear=function(){for(var a=Bk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Gk=new zk("undefined"==typeof window.document?null:window.document);Gk.g=3950;var Qk,Jk="";y(Tk,lk);h=Tk.prototype;h.start=function(){Sk(this)&&this.R("screenChange");!yj("yt-remote-lounge-token-expiration")&&Uk(this);O(this.b);this.b=Mi(w(this.start,this),1E4)};
h.Fj=function(a,b){Sk(this);mk(this,a);Vk(this,!1);this.R("screenChange");b(a);a.token||Uk(this)};
h.remove=function(a,b){var c=Sk(this);ok(this,a)&&(Vk(this,!1),c=!0);b(a);c&&this.R("screenChange")};
h.zj=function(a,b,c,d){var e=Sk(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,Vk(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.R("screenChange")};
h.O=function(){O(this.b);Tk.L.O.call(this)};
h.Mx=function(a){Sk(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],f=this.get(e.screenId);f&&(f.token=e.loungeToken,--b)}Vk(this,!b);b&&qi(this.C,"Missed "+b+" lounge tokens.")};
h.Lx=function(a){qi(this.C,"Requesting lounge tokens failed: "+a)};y(Xk,kk);h=Xk.prototype;h.start=function(){var a=(0,window.parseInt)(yj("yt-remote-fast-check-period")||"0",10);(this.o=D()-144E5<a?0:a)?al(this):(this.o=D()+3E5,xj("yt-remote-fast-check-period",this.o),this.Am())};
h.isEmpty=function(){return cc(this.b)};
h.update=function(){Wk("Updating availability on schedule.");var a=this.C(),b=Qb(this.b,function(b,d){return b&&!!jk(a,d)},this);
$k(this,b)};
h.O=function(){O(this.A);this.A=window.NaN;this.g&&(this.g.abort(),this.g=null);Xk.L.O.call(this)};
h.Am=function(){O(this.A);this.A=window.NaN;this.g&&this.g.abort();var a=bl(this);if(Ub(a)){var b=ak(this.B,"/pairing/get_screen_availability");this.g=fk(this.B,b,{lounge_token:Yb(a).join(",")},w(this.EC,this,a),w(this.DC,this))}else $k(this,{}),al(this)};
h.EC=function(a,b){this.g=null;var c=Yb(bl(this));if(Gb(c,Yb(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;$k(this,d);al(this)}else this.bb("Changing Screen set during request."),this.Am()};
h.DC=function(a){this.bb("Screen availability failed: "+a);this.g=null;al(this)};
h.bb=function(a){qi("OnlineScreenService",a)};y(dl,lk);h=dl.prototype;h.start=function(){this.g.start();this.b.start();this.screens.length&&(this.R("screenChange"),this.b.isEmpty()||this.R("onlineScreenChange"))};
h.Fj=function(a,b,c){this.g.Fj(a,b,c)};
h.remove=function(a,b,c){this.g.remove(a,b,c);this.b.update()};
h.zj=function(a,b,c,d){this.g.contains(a)?this.g.zj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,qi(this.C,a),d(Error(a)))};
h.zc=function(a){return a?this.screens:sb(this.screens,ge(this.A,function(a){return!this.contains(a)},this))};
h.Bs=function(){return ge(this.zc(!0),function(a){return!!this.b.b[a.id]},this)};
h.Cs=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new pk(this.B,a,b,c);f.subscribe("pairingComplete",w(function(a){Nb(f);d(el(this,a))},this));
f.subscribe("pairingFailed",function(a){Nb(f);e(a)});
f.start();return w(f.stop,f)};
h.QE=function(a,b,c,d){Sj(ak(this.B,"/pairing/get_screen"),{method:"POST",Hb:{pairing_code:a},timeout:5E3,ab:w(function(a,d){var k=new vi(d.screen||{});if(!k.name||hl(this,k.name)){var m;a:{m=k.name;for(var l=2,p=b(m,l);hl(this,p);){l++;if(20<l)break a;p=b(m,l)}m=p}k.name=m}c(el(this,k))},this),
onError:w(function(a){d(Error("pairing request failed: "+a.status))},this),
wc:w(function(){d(Error("pairing request timed out."))},this)})};
h.O=function(){Nb(this.g);Nb(this.b);dl.L.O.call(this)};
h.Yx=function(){il(this);this.R("screenChange");this.b.update()};
dl.prototype.dispose=dl.prototype.dispose;y(kl,kk);h=kl.prototype;h.fj=function(a){this.A=a;this.R("sessionScreen",this.A)};
h.uc=function(a){this.isDisposed()||(a&&ll(this,""+a),this.A=null,this.R("sessionScreen",null))};
h.info=function(a){qi(this.J,a)};
h.Es=function(){return null};
h.Hm=function(a){var b=this.g;a?(b.displayStatus=new window.chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;window.chrome.cast.setReceiverDisplayStatus(b,w(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),w(function(){ll(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
h.O=function(){this.Hm("");kl.L.O.call(this)};y(nl,kl);h=nl.prototype;h.Gm=function(a){if(this.b){if(this.b==a)return;ll(this,"Overriding cast sesison with new session object");this.b.removeUpdateListener(this.D);this.b.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C)}this.b=a;this.b.addUpdateListener(this.D);this.b.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.C);this.o&&pl(this);ol(this,"getMdxSessionStatus")};
h.dg=function(a){this.info("launchWithParams: "+Zf(a));this.o=a;this.b&&pl(this)};
h.stop=function(){this.b?this.b.stop(w(function(){this.uc()},this),w(function(){this.uc(Error("Failed to stop receiver app."))},this)):this.uc(Error("Stopping cast device witout session."))};
h.Hm=r;h.O=function(){this.info("disposeInternal");O(this.B);this.B=0;this.b&&(this.b.removeUpdateListener(this.D),this.b.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C));this.b=null;nl.L.O.call(this)};
h.BD=function(a,b){if(!this.isDisposed())if(b){var c=Wf(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+Zf(c));switch(d){case "mdxSessionStatus":ml(this,c.screenId);break;default:ll(this,"Unknown youtube message: "+d)}}else ll(this,"Unable to parse message.")}else ll(this,"No data in message.")};
h.$o=function(a,b,c,d){gl(this.G,this.g.label,a,this.g.friendlyName,w(function(e){e?b(e):0<=d?(ll(this,"Screen "+a+" appears to be offline. "+d+" retries left."),Mi(w(this.$o,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
h.Es=function(){return this.b};
h.RE=function(a){this.isDisposed()||a||(ll(this,"Cast session died."),this.uc())};y(ql,kl);h=ql.prototype;h.Gm=function(a){this.o=a;this.o.addUpdateListener(this.I)};
h.dg=function(a){this.B=a;this.D()};
h.stop=function(){this.b();this.b=r;O(this.C);this.o?this.o.stop(w(this.uc,this,null),w(this.uc,this,"Failed to stop DIAL device.")):this.uc()};
h.O=function(){this.b();this.b=r;O(this.C);this.o&&this.o.removeUpdateListener(this.I);this.o=null;ql.L.O.call(this)};
h.UE=function(a){this.isDisposed()||a||(ll(this,"DIAL session died."),this.b(),this.b=r,this.uc())};
h.Sl=function(a){this.H=gk();if(this.B){var b=new window.chrome.cast.DialLaunchResponse(!0,sl(this));a(b);rl(this)}else this.D=w(function(){O(this.C);this.D=r;this.C=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,sl(this));a(b);rl(this)},this),this.C=Mi(w(function(){this.D()},this),100)};
h.pz=function(a,b){gl(this.G,this.F.receiver.label,a,this.g.friendlyName,w(function(a){a&&a.token?(this.fj(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.Sl(b)},this),w(function(a){ll(this,"Failed to get DIAL screen: "+a);
this.Sl(b)},this))};y(tl,kl);tl.prototype.stop=function(){this.uc()};
tl.prototype.Gm=r;tl.prototype.dg=function(){O(this.b);this.b=window.NaN;var a=jk(this.G.zc(),this.g.label);a?this.fj(a):this.uc(Error("No such screen"))};
tl.prototype.O=function(){O(this.b);this.b=window.NaN;tl.L.O.call(this)};y(ul,kk);h=ul.prototype;
h.init=function(a,b){window.chrome.cast.timeout.requestSession=3E4;var c=new window.chrome.cast.SessionRequest("233637DE");c.dialRequest=new window.chrome.cast.DialRequest("YouTube");var d=window.chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?window.chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:window.chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new window.chrome.cast.ApiConfig(c,w(this.$q,this),w(this.wC,this),d,e);c.customDialLaunchCallback=w(this.WA,this);window.chrome.cast.initialize(c,w(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.o),ni(),this.g.subscribe("onlineScreenChange",w(this.Ds,this)),this.A=Bl(this),window.chrome.cast.setCustomReceivers(this.A,r,w(function(a){this.bb("Failed to set initial custom receivers: "+Zf(a))},this)),this.R("yt-remote-cast2-availability-change",zl(this)),b(!0))},this),w(function(a){this.bb("Failed to initialize API: "+Zf(a));
b(!1)},this))};
h.bE=function(a,b){yl("Setting connected screen ID: "+a+" -> "+b);if(this.b){var c=this.b.A;if(!a||c&&c.id!=a)yl("Unsetting old screen status: "+this.b.g.friendlyName),Nb(this.b),this.b=null}if(a&&b){if(!this.b){c=jk(this.g.zc(),a);if(!c){yl("setConnectedScreenStatus: Unknown screen.");return}var d=wl(this,c);d||(yl("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.A.push(d),
window.chrome.cast.setCustomReceivers(this.A,r,w(function(a){this.bb("Failed to set initial custom receivers: "+Zf(a))},this)));
yl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);Al(this,new tl(this.g,d),!0)}this.b.Hm(b)}else yl("setConnectedScreenStatus: no screen.")};
h.dE=function(a){this.isDisposed()?this.bb("Setting connection data on disposed cast v2"):this.b?this.b.dg(a):this.bb("Setting connection data without a session")};
h.TE=function(){this.isDisposed()?this.bb("Stopping session on disposed cast v2"):this.b?(this.b.stop(),Nb(this.b),this.b=null):yl("Stopping non-existing session")};
h.requestSession=function(){window.chrome.cast.requestSession(w(this.$q,this),w(this.IC,this))};
h.O=function(){this.g.ya("onlineScreenChange",w(this.Ds,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.o);var a=ji,b=q("yt.mdx.remote.debug.handlers_");qb(b||[],a);Nb(this.b);ul.L.O.call(this)};
h.bb=function(a){qi("Controller",a)};
h.ar=function(a,b){this.b==a&&(b||Al(this,null),this.R("yt-remote-cast2-session-change",b))};
h.uC=function(a,b){if(!this.isDisposed())if(a)switch(yl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.b)if(this.b.g.label!=a.label)yl("onReceiverAction_: Stopping active receiver: "+this.b.g.friendlyName),this.b.stop();else{yl("onReceiverAction_: Casting to active receiver.");this.b.A&&this.R("yt-remote-cast2-session-change",this.b.A);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:Al(this,new tl(this.g,a));
break;case window.chrome.cast.ReceiverType.DIAL:Al(this,new ql(this.g,a));break;case window.chrome.cast.ReceiverType.CAST:Al(this,new nl(this.g,a));break;default:this.bb("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.b&&this.b.g.label==a.label?this.b.stop():this.bb("Stopping receiver w/o session: "+a.friendlyName)}else this.bb("onReceiverAction_ called without receiver.")};
h.WA=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.bb("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.b?this.b.g:null;if(!c||c.label!=b.label)return this.bb("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),window.Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=window.chrome.cast.ReceiverType.DIAL){if(this.b.A)return yl("Reselecting dial screen."),
this.R("yt-remote-cast2-session-change",this.b.A),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.bb('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);Al(this,new ql(this.g,b))}b=this.b;b.F=a;return b.F.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(w(b.pz,b,(b.F.extraData||{}).screenId||null)):new window.Promise(w(b.Sl,b))};
h.$q=function(a){if(!this.isDisposed()){yl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.b)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)yl("Got resumed cast session before resumed mdx connection."),Al(this,new nl(this.g,b),!0);else{this.bb("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.b.g,d=jk(this.g.zc(),c.label);d&&wi(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(yl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Nb(this.b),this.b=new nl(this.g,b),this.b.subscribe("sessionScreen",w(this.ar,this,this.b)),this.b.dg(null));this.b.Gm(a)}}};
h.SE=function(){return this.b?this.b.Es():null};
h.IC=function(a){this.isDisposed()||(this.bb("Failed to estabilish a session: "+Zf(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&Al(this,null))};
h.wC=function(a){yl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=zl(this);this.B=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;zl(this)!=b&&this.R("yt-remote-cast2-availability-change",zl(this))}};
h.Ds=function(){if(!this.isDisposed()){var a=zl(this);this.A=Bl(this);yl("Updating custom receivers: "+Zf(this.A));window.chrome.cast.setCustomReceivers(this.A,r,w(function(){this.bb("Failed to set custom receivers.")},this));
var b=zl(this);b!=a&&this.R("yt-remote-cast2-availability-change",b)}};
ul.prototype.setLaunchParams=ul.prototype.dE;ul.prototype.setConnectedScreenStatus=ul.prototype.bE;ul.prototype.stopSession=ul.prototype.TE;ul.prototype.getCastSession=ul.prototype.SE;ul.prototype.requestSession=ul.prototype.requestSession;ul.prototype.init=ul.prototype.init;ul.prototype.dispose=ul.prototype.dispose;var Ml=null,Ol=[];am.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
am.prototype.Rp=function(){return this.event?!1===this.event.returnValue:!1};
am.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
am.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};
var $l={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var cm=q("yt.events.listeners_")||{};ba("yt.events.listeners_",cm,void 0);var em=q("yt.events.counter_")||{count:0};ba("yt.events.counter_",em,void 0);new sm;sm.prototype.set=function(a){this.b=a};
sm.prototype.reset=function(){this.set(D())};
sm.prototype.get=function(){return this.b};tm.prototype.stringify=function(a){return Xf(this.g,a)};
tm.prototype.parse=function(a){return this.b(a)};h=um.prototype;h.get=function(a){a=vm(this,a);return this.b[a]};
h.set=function(a,b){a=vm(this,a);this.b[a]=b};
h.cb=function(){return this.b.length};
h.isEmpty=function(){return 0==this.b.length};
h.clear=function(){this.g=this.b.length=0};
h.Ha=function(){for(var a=this.cb(),b=this.cb(),c=[],a=this.cb()-a;a<b;a++)c.push(this.get(a));return c};
h.La=function(){for(var a=[],b=this.cb(),c=0;c<b;c++)a[c]=c;return a};
h.$e=function(a){for(var b=this.cb(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};y(wm,F);h=wm.prototype;h.sg=!1;h.lh=0;h.df=null;h.Of=function(a){this.b=arguments;this.df||this.lh?this.sg=!0:xm(this)};
h.stop=function(){this.df&&(ae(this.df),this.df=null,this.sg=!1,this.b=[])};
h.pause=function(){this.lh++};
h.resume=function(){this.lh--;this.lh||!this.sg||this.df||(this.sg=!1,xm(this))};
h.O=function(){wm.L.O.call(this);this.stop()};
h.UC=function(){this.df=null;this.sg&&!this.lh&&(this.sg=!1,xm(this))};y(ym,F);var Bm=[];ym.prototype.N=function(a,b,c,d){return zm(this,a,b,c,d)};
ym.prototype.qa=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)this.qa(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.o||this,c=Rc(c),d=!!d,b=Gc(a)?Pc(a.Pc,String(b),c,d,e):a?(a=Tc(a))?Pc(a,b,c,d,e):null:null,b&&(bd(b),delete this.g[b.key]);return this};
ym.prototype.O=function(){ym.L.O.call(this);Gm(this)};
ym.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Im.prototype.b=null;var o$;y(Lm,Im);o$=new Lm;h=Nm.prototype;h.ef=null;h.ad=!1;h.yg=null;h.Zm=null;h.ph=null;h.Pf=null;h.ge=null;h.ve=null;h.lf=null;h.Cb=null;h.Dh=0;h.bd=null;h.Dj=null;h.ff=null;h.Zg=-1;h.Gr=!0;h.Xe=!1;h.vl=0;h.jj=null;var Vm={},Tm={};h=Nm.prototype;h.setTimeout=function(a){this.B=a};
h.ND=function(a){a=a.target;var b=this.jj;b&&3==yn(a)?b.Of():this.us(a)};
h.us=function(a){try{if(a==this.Cb)a:{var b=yn(this.Cb),c=this.Cb.g,d=this.Cb.getStatus();if(qf&&!Ac(10)||Bc&&!xc("420+")){if(4>b)break a}else if(3>b||3==b&&!Cc&&!Cn(this.Cb))break a;this.Xe||4!=b||7==c||(8==c||0>=d?this.b.Yc(3):this.b.Yc(2));en(this);var e=this.Cb.getStatus();this.Zg=e;var f=Cn(this.Cb);(this.ad=200==e)?(4==b&&Xm(this),this.C?(Zm(this,b,f),Cc&&this.ad&&3==b&&(this.o.N(this.g,"tick",this.HD),this.g.start())):Wm(this,f),this.ad&&!this.Xe&&(4==b?this.b.ej(this):(this.ad=!1,Rm(this)))):
(this.ff=400==e&&0<f.indexOf("Unknown SID")?3:0,Um(),Xm(this),Ym(this))}}catch(k){this.Cb&&Cn(this.Cb)}finally{}};
h.HD=function(){var a=yn(this.Cb),b=Cn(this.Cb);this.Dh<b.length&&(en(this),Zm(this,a,b),this.ad&&4!=a&&Rm(this))};
h.dD=function(a){dn(w(this.cD,this,a),0)};
h.cD=function(a){this.Xe||(en(this),Wm(this,a),Rm(this))};
h.kr=function(a){dn(w(this.bD,this,a),0)};
h.bD=function(a){this.Xe||(Xm(this),this.ad=a,this.b.ej(this),this.b.Yc(4))};
h.cancel=function(){this.Xe=!0;Xm(this)};
h.tD=function(){this.yg=null;var a=D();0<=a-this.Zm?(2!=this.Pf&&this.b.Yc(3),Xm(this),this.ff=2,Um(),Ym(this)):cn(this,this.Zm-a)};h=kn.prototype;h.sl=null;h.xc=null;h.kj=!1;h.hp=null;h.Ai=null;h.tl=null;h.ul=null;h.Fc=null;h.Id=-1;h.Yg=null;h.Ng=null;h.connect=function(a){this.ul=a;a=ln(this.b,null,this.ul);Um();this.hp=D();var b=this.b.F;null!=b?(this.Yg=b[0],(this.Ng=b[1])?(this.Fc=1,mn(this)):(this.Fc=2,on(this))):(jh(a,"MODE","init"),this.xc=new Nm(this,0,void 0,void 0,void 0),this.xc.ef=this.sl,Qm(this.xc,a,!1,null,!0),this.Fc=0)};
h.Ow=function(a){if(a)this.Fc=2,on(this);else{Um();var b=this.b;b.Rc=b.$d.Id;Wn(b,9)}a&&this.Yc(2)};
h.Nk=function(a){return this.b.Nk(a)};
h.gp=function(){return!1};
h.Wq=function(a,b){this.Id=a.Zg;if(0==this.Fc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.Rc=this.Id;Wn(c,2);return}this.Yg=c[0];this.Ng=c[1]}else c=this.b,c.Rc=this.Id,Wn(c,2);else if(2==this.Fc)if(this.kj)Um(),this.tl=D();else if("11111"==b){if(Um(),this.kj=!0,this.Ai=D(),c=this.Ai-this.hp,!qf||Ac(10)||500>c)this.Id=200,this.xc.cancel(),Um(),nn(this.b,this,!0)}else Um(),this.Ai=this.tl=D(),this.kj=!1};
h.ej=function(){this.Id=this.xc.Zg;if(this.xc.ad)0==this.Fc?this.Ng?(this.Fc=1,mn(this)):(this.Fc=2,on(this)):2==this.Fc&&((!qf||Ac(10)?!this.kj:200>this.tl-this.Ai)?(Um(),nn(this.b,this,!1)):(Um(),nn(this.b,this,!0)));else{0==this.Fc?Um():2==this.Fc&&Um();var a=this.b;a.Rc=this.Id;Wn(a,2)}};
h.wh=function(){return this.b.wh()};
h.isActive=function(){return this.b.isActive()};
h.Yc=function(a){this.b.Yc(a)};y(pn,I);var zn=/^https?$/i,Upa=["POST","PUT"];h=pn.prototype;
h.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+a);b=b?b.toUpperCase():"GET";this.G=a;this.C="";this.g=0;this.U=b;this.K=!1;this.A=!0;this.b=this.J?Mm(this.J):Mm(o$);this.I=this.J?Km(this.J):Km(o$);this.b.onreadystatechange=w(this.ip,this);try{Zl(wn(this,"Opening Xhr")),this.M=!0,this.b.open(b,String(a),!0),this.M=!1}catch(f){Zl(wn(this,"Error opening Xhr: "+f.message));vn(this,f);return}a=c||"";var e=this.headers.clone();
d&&Ag(d,function(a,b){e.set(b,a)});
d=fb(e.La(),sn);c=aa.FormData&&a instanceof aa.FormData;!kb(Upa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.b.setRequestHeader(b,a)},this);
this.X&&(this.b.responseType=this.X);$b(this.b,"withCredentials")&&(this.b.withCredentials=this.P);try{Bn(this),0<this.B&&(this.H=rn(this.b),Zl(wn(this,"Will abort after "+this.B+"ms if incomplete, xhr2 "+this.H)),this.H?(this.b.timeout=this.B,this.b.ontimeout=w(this.jp,this)):this.D=$d(this.jp,this.B,this)),Zl(wn(this,"Sending request")),this.F=!0,this.b.send(a),this.F=!1}catch(f){Zl(wn(this,"Send error: "+f.message)),vn(this,f)}};
h.jp=function(){"undefined"!=typeof xn&&this.b&&(this.C="Timed out after "+this.B+"ms, aborting",this.g=8,wn(this,this.C),this.V("timeout"),fn(this,8))};
h.O=function(){this.b&&(this.A&&(this.A=!1,this.o=!0,this.b.abort(),this.o=!1),un(this,!0));pn.L.O.call(this)};
h.ip=function(){this.isDisposed()||(this.M||this.F||this.o?An(this):this.tC())};
h.tC=function(){An(this)};
h.isActive=function(){return!!this.b};
h.getStatus=function(){try{return 2<yn(this)?this.b.status:-1}catch(a){return-1}};h=Dn.prototype;h.Tg=null;h.$b=null;h.sb=null;h.rl=null;h.Ci=null;h.ro=null;h.Gi=null;h.fh=0;h.Nz=0;h.Qb=null;h.ce=null;h.Dd=null;h.af=null;h.$d=null;h.Cj=null;h.cg=-1;h.Zp=-1;h.Rc=-1;h.Ug=0;h.zf=0;h.Ze=8;var Xn=new I;y(Fn,mc);y(Gn,mc);y(Hn,mc);h=Dn.prototype;h.connect=function(a,b,c,d,e){Um();this.rl=b;this.Tg=c||{};d&&n(e)&&(this.Tg.OSID=d,this.Tg.OAID=e);this.$d=new kn(this);this.$d.sl=null;this.$d.g=this.B;this.$d.connect(a)};
h.gp=function(){return 0==this.b};
h.gr=function(a){this.ce=null;Rn(this,a)};
h.fr=function(){this.Dd=null;this.sb=new Nm(this,0,this.A,"rpc",this.C);this.sb.ef=null;this.sb.vl=0;var a=this.ro.clone();hh(a,"RID","rpc");hh(a,"SID",this.A);hh(a,"CI",this.Cj?"0":"1");hh(a,"AID",this.cg);Jn(this,a);if(!qf||Ac(10))hh(a,"TYPE","xmlhttp"),Qm(this.sb,a,!0,this.Gi,!1);else{hh(a,"TYPE","html");var b=this.sb,c=!!this.Gi;b.Pf=3;b.ge=kh(a.clone());bn(b,c)}};
h.Wq=function(a,b){if(0!=this.b&&(this.sb==a||this.$b==a))if(this.Rc=a.Zg,this.$b==a&&3==this.b)if(7<this.Ze){var c;try{c=this.B.parse(b)}catch(f){c=null}if(ea(c)&&3==c.length)if(0==c[0])a:{if(!this.Dd){if(this.sb)if(this.sb.ph+3E3<this.$b.ph)Mn(this),this.sb.cancel(),this.sb=null;else break a;Un(this);Um()}}else this.Zp=c[1],0<this.Zp-this.cg&&37500>c[2]&&this.Cj&&0==this.zf&&!this.af&&(this.af=dn(w(this.oA,this),6E3));else Wn(this,11)}else"y2f%"!=b&&Wn(this,11);else if(this.sb==a&&Mn(this),!z(b)){c=
this.B.parse(b);ea(c);for(var d=0;d<c.length;d++){var e=c[d];this.cg=e[0];e=e[1];2==this.b?"c"==e[0]?(this.A=e[1],this.Gi=e[2],e=e[3],null!=e?this.Ze=e:this.Ze=6,this.b=3,this.Qb&&this.Qb.zo(this),this.ro=ln(this,this.wh()?this.Gi:null,this.rl),Sn(this)):"stop"==e[0]&&Wn(this,7):3==this.b&&("stop"==e[0]?Wn(this,7):"noop"!=e[0]&&this.Qb&&this.Qb.yo(this,e),this.zf=0)}}};
h.oA=function(){null!=this.af&&(this.af=null,this.sb.cancel(),this.sb=null,Un(this),Um())};
h.ej=function(a){var b;if(this.sb==a)Mn(this),this.sb=null,b=2;else if(this.$b==a)this.$b=null,b=1;else return;this.Rc=a.Zg;if(0!=this.b)if(a.ad)1==b?(D(),Xn.V(new Gn(Xn,a.lf?a.lf.length:0)),Nn(this),this.o.length=0):Sn(this);else{var c=a.ff,d;if(!(d=3==c||7==c||0==c&&0<this.Rc)){if(d=1==b)this.$b||this.ce||1==this.b||2<=this.Ug?d=!1:(this.ce=dn(w(this.gr,this,a),Tn(this,this.Ug)),this.Ug++,d=!0);d=!(d||2==b&&Un(this))}if(d)switch(c){case 1:Wn(this,5);break;case 4:Wn(this,10);break;case 3:Wn(this,
6);break;case 7:Wn(this,12);break;default:Wn(this,2)}}};
h.ix=function(a){if(!kb(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};
h.oE=function(a){a?Um():(Um(),Vn(this,8))};
h.Nk=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new pn;a.P=!1;return a};
h.isActive=function(){return!!this.Qb&&this.Qb.isActive(this)};
h.Yc=function(){Xn.V(new Hn(Xn))};
h.wh=function(){return!(!qf||Ac(10))};
h=Yn.prototype;h.zo=function(){};
h.yo=function(){};
h.xo=function(){};
h.Ek=function(){};
h.To=function(){return{}};
h.isActive=function(){return!0};y($n,Yd);$n.prototype.C=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);Zd(this,a)}this.D()};
$n.prototype.start=function(){$n.L.start.call(this);this.B=D()+this.b};
$n.prototype.stop=function(){this.B=0;$n.L.stop.call(this)};y(ao,Yn);h=ao.prototype;h.subscribe=function(a,b,c){return this.A.subscribe(a,b,c)};
h.ya=function(a,b,c){return lg(this.A,a,b,c)};
h.yc=function(a){return this.A.yc(a)};
h.R=function(a,b){return this.A.R.apply(this.A,arguments)};
h.dispose=function(){this.H||(this.H=!0,this.A.clear(),co(this),Nb(this.A))};
h.isDisposed=function(){return this.H};
h.connect=function(a,b,c){if(!this.b||2!=this.b.b){this.G="";this.g.stop();this.B=a||null;this.o=b||0;a=this.I+"/test";b=this.I+"/bind";var d=new Dn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.Qb=null);d.Qb=this;this.b=d;e?this.b.connect(a,b,this.C,e.A,e.cg):c?this.b.connect(a,b,this.C,c.sessionId,c.arrayId):this.b.connect(a,b,this.C)}};
h.sendMessage=function(a,b){var c={_sc:a};b&&kc(c,b);this.g.enabled||2==(this.b?this.b.b:0)?this.D.push(c):eo(this)&&On(this.b,c)};
h.zo=function(){Zn(this.g);this.B=null;this.o=0;if(this.D.length){var a=this.D;this.D=[];for(var b=0,c=a.length;b<c;++b)On(this.b,a[b])}this.R("handlerOpened")};
h.xo=function(a,b){var c=2==b&&401==this.b.Rc;if(4!=b&&!c){if(6==b||410==this.b.Rc)c=this.g,c.stop(),Zd(c,500);this.g.start()}this.R("handlerError",b)};
h.Ek=function(a,b,c){if(!this.g.enabled)this.R("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.D.push(d)}};
h.To=function(){var a={v:2};this.G&&(a.gsessionid=this.G);0!=this.o&&(a.ui=""+this.o);0!=this.F&&(a.ui=""+this.F);this.B&&kc(a,this.B);return a};
h.yo=function(a,b){"S"==b[0]?this.G=b[1]:"gracefulReconnect"==b[0]?(Zn(this.g),this.g.start(),Ln(this.b)):this.R("handlerMessage",new rm(b[0],b[1]))};
h.LE=function(){this.g.stop();var a=this.b,b=0;a.sb&&b++;a.$b&&b++;0!=b?this.g.start():this.connect(this.B,this.o)};h=go.prototype;h.cb=function(){return this.b.length+this.g.length};
h.isEmpty=function(){return lb(this.b)&&lb(this.g)};
h.clear=function(){this.b=[];this.g=[]};
h.contains=function(a){return kb(this.b,a)||kb(this.g,a)};
h.remove=function(a){var b;b=this.b;var c=Lpa(b,a);0<=c?(pb(b,c),b=!0):b=!1;return b||qb(this.g,a)};
h.Ha=function(){for(var a=[],b=this.b.length-1;0<=b;--b)a.push(this.b[b]);for(var c=this.g.length,b=0;b<c;++b)a.push(this.g[b]);return a};lo.prototype.reset=function(a){this.A="";no(this);this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.A=a.listId,this.videoId=a.videoId,this.b=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.g=a.trackData,this.o=a.playerTime,this.B=a.playerTimeAt)};
lo.prototype.Ya=function(){return 1==this.b};
lo.prototype.clone=function(){return new lo(ro(this))};y(uo,kk);h=uo.prototype;h.play=function(){1==this.g?(this.b?this.b.play(null,r,w(function(){this.bb("Failed to play video with cast v2 channel.");wo(this,"play")},this)):wo(this,"play"),Bo(this,1,po(vo(this))),Co(this)):Ao(this,this.play)};
h.pause=function(){1==this.g?(this.b?this.b.pause(null,r,w(function(){this.bb("Failed to pause video with cast v2 channel.");wo(this,"pause")},this)):wo(this,"pause"),Bo(this,2,po(vo(this))),Co(this)):Ao(this,this.pause)};
h.seekTo=function(a){if(1==this.g){if(this.b){var b=vo(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;b.Ya()||3==b.b?c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.b.seek(c,r,w(function(){this.bb("Failed to seek in video with cast v2 channel.");wo(this,"seekTo",{newTime:a})},this))}else wo(this,"seekTo",{newTime:a});
Bo(this,3,a);Co(this)}else Ao(this,qa(this.seekTo,a))};
h.stop=function(){if(1==this.g){this.b?this.b.stop(null,r,w(function(){this.bb("Failed to stop video with cast v2 channel.");wo(this,"stopVideo")},this)):wo(this,"stopVideo");
var a=vo(this);no(a);xo(this,a);Co(this)}else Ao(this,this.stop)};
h.setVolume=function(a,b){if(1==this.g){var c=vo(this);if(this.A){if(c.volume!=a){var d=Math.round(a)/100;this.A.setReceiverVolumeLevel(d,w(function(){Do("set receiver volume: "+d)},this),w(function(){this.bb("failed to set receiver volume.")},this))}c.muted!=b&&this.A.setReceiverMuted(b,w(function(){Do("set receiver muted: "+b)},this),w(function(){this.bb("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);wo(this,"setVolume",e)}c.muted=b;c.volume=a;xo(this,c)}else Ao(this,qa(this.setVolume,a,b))};
h.Jm=function(a,b){if(1==this.g){var c=vo(this);if(b){c.g={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,format:b.format,kind:b.kind};var d={videoId:a,style:Zf(b.style)};kc(d,c.g);wo(this,"setSubtitlesTrack",d)}else d={videoId:a},wo(this,"setSubtitlesTrack",d);xo(this,c)}else Ao(this,qa(this.Jm,a,b))};
h.zs=function(a,b){if(1==this.g){wo(this,"setAudioTrack",{videoId:a,audioTrackId:b.Lb.id});var c=vo(this);c.audioTrackId=b.Lb.id;xo(this,c)}else Ao(this,qa(this.zs,a,b))};
h.dispose=function(){if(3!=this.g){var a=this.g;this.g=3;this.R("proxyStateChange",a,this.g)}uo.L.dispose.call(this)};
h.O=function(){O(this.B);this.B=window.NaN;zo(this);this.o=null;this.C.clear();to(this,null);uo.L.O.call(this)};
h.hn=function(a){if((a!=this.g||2==a)&&3!=this.g&&0!=a){var b=this.g;this.g=a;this.R("proxyStateChange",b,a);if(1==a)for(;!this.C.isEmpty();)jo(this.C).apply(this);else 3==a&&this.dispose()}};
h.kC=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.B))&&this.R(a)};
h.tA=function(a){if(!a)this.gh(null),to(this,null);else if(this.A.receiver.volume){a=this.A.receiver.volume;var b=vo(this),c=Math.round(100*a.level||0);if(b.volume!=c||b.muted!=a.muted)Do("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=c,b.muted=!!a.muted,xo(this,b)}};
h.gh=function(a){Do("Cast media: "+!!a);this.b&&this.b.removeUpdateListener(this.G);if(this.b=a)this.b.addUpdateListener(this.G),Eo(this),Co(this)};
h.sA=function(a){a?(Eo(this),Co(this)):this.gh(null)};
h.bb=function(a){qi("CP",a)};y(Go,kk);h=Go.prototype;h.connect=function(a,b){if(b){var c=b.listId,d=b.videoId,e=b.index,f=b.currentTime||0;5>=f&&(f=0);var k={videoId:d,currentTime:f};c&&(k.listId=c);n(e)&&(k.currentIndex=e);c&&(this.Ka.A=c);this.Ka.videoId=d;this.Ka.index=e||0;this.Ka.state=3;oo(this.Ka,f);Ho("Connecting with setPlaylist and params: "+Zf(k));this.b.connect({method:"setPlaylist",params:Zf(k)},a,Kk())}else Ho("Connecting without params"),this.b.connect({},a,Kk());Jo(this)};
h.dispose=function(){this.isDisposed()||(this.R("beforeDispose"),Io(this,3));Go.L.dispose.call(this)};
h.O=function(){Ko(this);Mo(this);Lo(this);O(this.D);this.D=window.NaN;O(this.F);this.F=window.NaN;this.A=null;gm(this.J);this.J.length=0;this.b.dispose();Go.L.O.call(this);this.g=this.Ka=this.b=null};
h.Fx=function(){this.B(2)};
h.xA=function(){Ho("Channel opened");this.I&&(this.I=!1,Lo(this),this.H=Mi(w(function(){Ho("Timing out waiting for a screen.");this.B(1)},this),15E3));
Ok(bo(this.b),this.M)};
h.uA=function(){Ho("Channel closed");(0,window.isNaN)(this.o)?Pk(!0):Pk();this.dispose()};
h.vA=function(a){Pk();(0,window.isNaN)(this.C())?(Ho("Channel error: "+a+" without reconnection"),this.dispose()):(this.I=!0,Ho("Channel error: "+a+" with reconnection in "+this.C()+" ms"),Io(this,2))};
h.wA=function(a){a.params?Ho("Received: action="+a.action+", params="+Zf(a.params)):Ho("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=Vf(a.params.devices);this.g=zi(a,function(a){return new yk(a)});
a=!!fb(this.g,function(a){return"LOUNGE_SCREEN"==a.type});
Qo(this,a);break;case "loungeScreenConnected":Qo(this,!0);break;case "loungeScreenDisconnected":rb(this.g,function(a){return"LOUNGE_SCREEN"==a.type});
Qo(this,!1);break;case "remoteConnected":var b=new yk(Vf(a.params.device));fb(this.g,function(a){return a.Na(b)})||ob(this.g,b);
break;case "remoteDisconnected":b=new yk(Vf(a.params.device));rb(this.g,function(a){return a.Na(b)});
break;case "gracefulDisconnect":break;case "playlistModified":So(this,a);break;case "nowPlaying":Uo(this,a);break;case "onStateChange":To(this,a);break;case "onVolumeChanged":Vo(this,a);break;case "onSubtitlesTrackChanged":Ro(this,a);break;default:Ho("Unrecognized action: "+a.action)}};
h.TD=function(){if(this.A){var a=this.A;this.A=null;this.Ka.videoId!=a&&No(this,"getNowPlaying")}};
Go.prototype.subscribe=Go.prototype.subscribe;Go.prototype.unsubscribeByKey=Go.prototype.yc;Go.prototype.U=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.C())?eo(this.b)&&(0,window.isNaN)(this.o)&&(a=1):a=2);return a};
Go.prototype.getProxyState=Go.prototype.U;Go.prototype.B=function(a){Ho("Disconnecting with "+a);Ko(this);this.R("beforeDisconnect",a);1==a&&Pk();co(this.b,a);this.dispose()};
Go.prototype.disconnect=Go.prototype.B;Go.prototype.P=function(){var a=this.Ka;this.A&&(a=this.Ka.clone(),qo(a,this.A,a.index));return ro(a)};
Go.prototype.getPlayerContextData=Go.prototype.P;Go.prototype.Y=function(a){var b=new lo(a);b.videoId&&b.videoId!=this.Ka.videoId&&(this.A=b.videoId,O(this.D),this.D=Mi(w(this.TD,this),5E3));var c=[];this.Ka.A==b.A&&this.Ka.videoId==b.videoId&&this.Ka.index==b.index||c.push("remoteQueueChange");this.Ka.b==b.b&&this.Ka.volume==b.volume&&this.Ka.muted==b.muted&&po(this.Ka)==po(b)&&Zf(this.Ka.g)==Zf(b.g)||c.push("remotePlayerChange");this.Ka.reset(a);E(c,function(a){this.R(a)},this)};
Go.prototype.setPlayerContextData=Go.prototype.Y;Go.prototype.K=function(){var a=this.b.C.id,b=fb(this.g,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
Go.prototype.getOtherConnectedRemoteId=Go.prototype.K;Go.prototype.C=function(){var a=this.b;return a.g.enabled?a.g.B-D():window.NaN};
Go.prototype.getReconnectTimeout=Go.prototype.C;Go.prototype.Z=function(){if(!(0,window.isNaN)(this.C())){var a=this.b.g;a.enabled&&(a.stop(),a.start(),a.C())}};
Go.prototype.reconnect=Go.prototype.Z;Go.prototype.ba=function(a,b){No(this,a,b);Po(this)};
Go.prototype.sendMessage=Go.prototype.ba;y(Wo,lk);h=Wo.prototype;h.zc=function(a){return this.Rb.$_gs(a)};
h.contains=function(a){return!!this.Rb.$_c(a)};
h.get=function(a){return this.Rb.$_g(a)};
h.start=function(){this.Rb.$_st()};
h.Fj=function(a,b,c){this.Rb.$_a(a,b,c)};
h.remove=function(a,b,c){this.Rb.$_r(a,b,c)};
h.zj=function(a,b,c,d){this.Rb.$_un(a,b,c,d)};
h.O=function(){for(var a=0,b=this.b.length;a<b;++a)this.Rb.$_ubk(this.b[a]);this.b.length=0;this.Rb=null;Wo.L.O.call(this)};
h.PE=function(){this.R("screenChange")};
h.YB=function(){this.R("onlineScreenChange")};
dl.prototype.$_st=dl.prototype.start;dl.prototype.$_gspc=dl.prototype.QE;dl.prototype.$_gsppc=dl.prototype.Cs;dl.prototype.$_c=dl.prototype.contains;dl.prototype.$_g=dl.prototype.get;dl.prototype.$_a=dl.prototype.Fj;dl.prototype.$_un=dl.prototype.zj;dl.prototype.$_r=dl.prototype.remove;dl.prototype.$_gs=dl.prototype.zc;dl.prototype.$_gos=dl.prototype.Bs;dl.prototype.$_s=dl.prototype.subscribe;dl.prototype.$_ubk=dl.prototype.yc;var Xo=null,Yo=null,op=null,cp=[];var Fp=/^https?:\/\/(([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*qa[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(education|-nocookie)?\.com\/|(m\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|(?:|dev-)uytfe\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,px=
/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,Aba=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,Saa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/+embed(\/+|\?|#|$)/,
wx=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-dev\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/(s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
Yp=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Ax=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.youtube-nocookie\.com\/api\/ads\/trueview_redirect|www\.googleadservices\.com\/trueview_inred)/,Xp=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,Pr=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com|xfx7\.com)(:[0-9]+)?([\/\?\#]|$)/,
TH=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
Vaa=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Hp=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|photos\.google\.com|picasaweb\.google\.com|lh2\.google\.com|plus\.google\.com|spaces\.google\.com|books\.googleusercontent\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Ip=["2mdn.net"];var Dw=VH||ux;var aq={},$p=0;var bq=1;cq.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)};
cq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};y(dq,cq);dq.prototype.getId=function(){return this.oa};
dq.prototype.getId=dq.prototype.getId;dq.prototype.toString=function(){return dq.L.toString.call(this)};y(gq,kk);h=gq.prototype;h.ob=function(a,b){for(var c=0;c<a.length;c++)a[c].b=this.Ea;this.b.ob(a,b)};
h.create=function(){this.D||(this.Va(this.b),J(this.b.xa(),this.Ea+"-created"),this.b.addEventListener("crn_"+this.Ea,this.dc,this),this.b.addEventListener("crx_"+this.Ea,this.tc,this),this.D=!0)};
h.destroy=function(){this.loaded&&this.unload();he(this.b.xa(),this.Ea+"-created");this.b.removeEventListener("crn_"+this.Ea,this.dc,this);this.b.removeEventListener("crx_"+this.Ea,this.tc,this);this.D=!1;this.R("destroyed",this.Ea)};
h.load=function(){this.loaded=!0;J(this.b.xa(),this.Ea+"-loaded");this.R("loaded",this.Ea)};
h.unload=function(){this.loaded=!1;he(this.b.xa(),this.Ea+"-loaded");this.R("unloaded",this.Ea)};
h.dc=function(){};
h.tc=function(){};
h.re=function(){};
h.log=function(a){dC(this.b,this.logEvent,a)};
h.Oh=function(){return null};
h.pauseVideo=function(){this.R("command_pause",!1,this.b.playerType)};
h.Td=function(){};
h.tf=function(){return[]};
h.Va=function(){return!1};
h.ym=function(a,b){this.F&&this.F.re&&this.F.re.apply(this.F,arguments)};
h.dj=function(){};y(rq,F);rq.prototype.b=function(a,b){n(b)?Af(a,this.element,b):a.appendChild(this.element)};
rq.prototype.update=function(a){for(var b in a)this.g(b,a[b])};
rq.prototype.g=function(a,b){var c=this.ia["{{"+a+"}}"];c&&tq(this,c[0],c[1],b)};
rq.prototype.O=function(){this.la={};this.ia={};vq(this);rq.L.O.call(this)};y(Q,rq);h=Q.prototype;h.Mb=function(a,b){this.g(b||"content",a)};
h.show=function(){this.A||(xq(this.element,""),this.A=!0)};
h.da=function(){this.A&&(xq(this.element,"none"),this.A=!1)};
h.Xa=function(a){a?this.show():this.da()};
h.N=function(a,b,c){return this.S(this.element,a,b,c)};
h.S=function(a,b,c,d){c=w(c,d||this);d={target:a,type:b,listener:c};this.ba.push(d);a.addEventListener(b,c);return d};
h.qa=function(a){for(var b=0;b<this.ba.length;b++)if(this.ba[b]==a){a=this.ba.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
h.focus=function(){Qf(this.element);this.element.focus()};
h.O=function(){for(;this.ba.length;){var a=this.ba.pop();a.target.removeEventListener(a.type,a.listener)}Q.L.O.call(this)};y(Aq,Q);Aq.prototype.subscribe=function(a,b,c){return this.X.subscribe(a,b,c)};
Aq.prototype.ya=function(a,b,c){return this.X.ya(a,b,c)};
Aq.prototype.yc=function(a){return this.X.yc(a)};
Aq.prototype.R=function(a,b){return this.X.R.apply(this.X,arguments)};y(Bq,Aq);Bq.prototype.create=function(){this.J=!0};
Bq.prototype.destroy=function(){this.J=!1};
Bq.prototype.ii=function(){return!1};y(Cq,Q);var Hq={},dr=/[^\d]+$/,er={cm:1,"in":1,mm:1,pc:1,pt:1},fr={em:1,ex:1};var Vpa=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(qf)return xc("10.0");
var a=window.document.createElement("DIV"),b=Bc?"-webkit":Dq?"-moz":qf?"-ms":Cc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Oe.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Opa)throw Error("Tag name <div> is not allowed for SafeHtml.");b=Te("div",b,void 0);a.innerHTML=Le(b);return""!=Iq(a.firstChild,"transition")});y(ir,F);h=ir.prototype;h.show=function(a){1!=this.b&&2!=this.b&&(3==this.b&&this.Aj(),4==this.b?(this.b=null,this.g.stop()):this.A.A||(jr(this,!0),this.b=1,a?this.g.start(a):this.Aj()))};
h.da=function(){3!=this.b&&(1==this.b||2==this.b?(this.A.da(),this.b=null,this.g.stop()):this.A.A&&(jr(this,!0),this.b=3,this.g.start(this.o)))};
h.Aj=function(){switch(this.b){case 1:this.A.show();this.b=2;this.g.start(10);break;case 2:jr(this,!1);this.b=null;break;case 3:this.A.da();jr(this,!1);this.b=4;this.g.start(0);break;case 4:this.b=null}};
h.stop=function(){for(;null!=this.b&&4!=this.b;)this.g.stop(),this.Aj()};
h.O=function(){this.A.isDisposed()||this.A.element.removeAttribute("aria-hidden");ir.L.O.call(this)};y(kr,Q);y(lr,kr);lr.prototype.Xa=function(a){a?this.B.show():this.B.da()};y(nr,Bq);nr.prototype.create=function(){nr.L.create.call(this);zf(this.element);this.C.b(this.element);var a=this.o.getVideoData().videoId;a&&(a=fI(T(this.o),a,!0),Sj(a,{method:"GET",ab:this.D,context:this,Vw:!0}))};
nr.prototype.D=function(a,b){if(this.J){var c=b.user_info,d=c.channel_banner_url;wx.test(d)||(d="");var e=c.channel_logo_url||c.image_url;wx.test(e)||(e="");this.B.g("background",d?"background-image: url("+d+")":"");this.C.g("image",e);this.C.g("author",c.channel_title||c.username);c=c.subscription_button_html;d=this.C.la["html5-subscribe-button-container"];c?d.innerHTML=Le(c):zf(d)}};
nr.prototype.show=function(){nr.L.show.call(this);this.B.Xa(!0)};
nr.prototype.da=function(){nr.L.da.call(this);this.B.Xa(!1)};y(or,F);or.prototype.S=function(a,b,c,d){c=Li(w(c,d||this.ra));a.addEventListener(b,c);a={target:a,name:b,li:c};this.J.push(a);return a};
or.prototype.qa=function(a){for(var b=0;b<this.J.length;b++)if(this.J[b]==a){this.J.splice(b,1);a.target.removeEventListener(a.name,a.li);break}};
or.prototype.O=function(){qr(this);or.L.O.call(this)};rr.prototype.toString=function(){return this.type+this.id};var G5=16/9,Wpa=4/3,u9=[.25,.5,1,1.25,1.5,2];var tr={Qr:function(a,b){a.splice(0,b)},
nT:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
WO:function(a){a.reverse()}};var yr={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",140:"a",258:"m",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",147:"H",149:"A",261:"M",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",336:"9h",337:"9h",171:"v",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",
280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"("};var Jw={name:"width",video:!0,valid:640,$f:99999},Kw={name:"height",video:!0,valid:360,$f:99999},Lw={name:"framerate",video:!0,valid:30,$f:9999},Nw={name:"bitrate",video:!0,valid:3E5,$f:2E9},Mw={name:"eotf",video:!0,valid:"rec709",$f:"catavision"},Ow={name:"channels",video:!1,valid:2,$f:99},Pw={ai:Jw,Vh:Kw,A:Lw,Gn:Nw,g:Mw,b:Ow};Fr.prototype.g=function(){return this.name};
Fr.prototype.getId=function(){return this.id};
Fr.prototype.b=function(){return this.isDefault};
Fr.prototype.toString=function(){return this.name};
Fr.prototype.getName=Fr.prototype.g;Fr.prototype.getId=Fr.prototype.getId;Fr.prototype.getIsDefault=Fr.prototype.b;var Cu={BI:"auto",xN:"tiny",WK:"light",fN:"small",Fv:"medium",TK:"large",rK:"hd720",nK:"hd1080",oK:"hd1440",pK:"hd2160",qK:"hd2880",wK:"highres",UNKNOWN:"unknown"},Hr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Gr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Jr.prototype.set=function(a,b){this.b[a]!==b&&(this.b[a]=b,this.g="")};
Jr.prototype.get=function(a){Mr(this);return this.b[a]||null};
Jr.prototype.clone=function(){var a=new Jr(this.A);a.C=this.C;a.o=this.o;a.B=this.B;a.b=hc(this.b);a.g=this.g;return a};Tr.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};h=$r.prototype;h.Ee=function(a){return(a=as(this,a))?a.duration:0};
h.al=function(a){return this.Ee(a)};
h.Lf=function(){return this.na.length?this.na[0].b:-1};
h.Jb=function(){return this.na.length?this.na[this.na.length-1].b:-1};
h.Eg=function(){var a=this.na[this.na.length-1];return a?a.endTime:window.NaN};
h.Us=function(){return this.na[0].startTime};
h.kl=function(){return this.na.length};
h.Wj=function(){return 0};
h.Nf=function(a){return(a=bs(this,a))?a.b:-1};
h.ap=function(a){return as(this,a).sourceURL};
h.Fe=function(a){return(a=as(this,a))?a.startTime:0};
h.sf=function(){return 0<this.na.length};ds.prototype.set=function(a,b){this.b.get(a);this.g[a]=b;this.A=""};
ds.prototype.get=function(a){return this.g[a]||this.b.get(a)};var p$=0;h=js.prototype;h.Zl=function(){return!1};
h.Xc=function(){return!!this.b&&!!this.index&&this.index.sf()};
h.Xs=function(){return!1};
h.Ar=function(a){return[a]};
h.nj=function(a){return[a]};ks.prototype.Na=function(a){return!(!a||a.b!=this.b||a.type!=this.type||(this.range&&a.range?a.range.start!=this.range.start||a.range.end!=this.range.end:a.range!=this.range)||a.o!=this.o||a.A!=this.A||a.g!=this.g)};y(vs,js);h=vs.prototype;h.Bf=function(){return!1};
h.Up=function(){return this.g};
h.Xs=function(){return this.B};
h.Xo=function(){if(this.g||this.B)return[];var a=new ks(1,this,this.initRange);return[new rs([a],this.F)]};
h.Vg=function(a,b){if(this.g&&ha(a)&&!(0,window.isFinite)(a)){var c=new ks(3,this,null,-1);return new rs([c],"",!0)}c=this.index.Nf(a);b&&(c=Math.min(this.index.Jb(),c+1));return ws(this,c,!0)};
h.lp=function(a){this.b=new window.Uint8Array(pt(a).buffer)};
h.Zl=function(){return!1};
h.Nh=function(a){return 0==a.g||this.g?!0:this.index.Jb()>a.o&&this.index.Lf()<=a.o+1};
h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=tb(a),0==d.na.length)d.na=a;else{var e=d.na.length?db(d.na).endTime:0,f=a[0].b-d.Jb();1<f&&nb(d.na);for(f=0<f?0:-f+1;f<a.length;f++){var k=a[f];k.startTime=e;k.endTime=k.startTime+k.duration;e+=a[f].duration;d.na.push(a[f])}}cs(this.index,c);this.D=b};
h.Xc=function(){return this.g||this.B?!0:vs.L.Xc.call(this)};As.prototype.update=function(a,b){var c=void 0;this.g&&(c=this.g);var d=new As,e=a.getElementsByTagName("S");if(e.length){var f=+Wr(a,"timescale")||1,k=+Wr(a,"startNumber")||0,m;m=((+e[0].getAttribute("t")||0)-(+Wr(a,"presentationTimeOffset")||0))/f;m=c?c.zd+c.durationSecs:b?m:0;var l;l=Date.parse(Wr(a,"yt:segmentIngestTime"));var p=Date.parse(Wr(a,"yt:mpdResponseTime")),p=D()-p;l=(l+p)/1E3;p=c?k-c.b:1;d.o=0<p?0:-p+1;for(p=0;p<e.length;p++)for(var t=e[p],u=+t.getAttribute("d")/f,x=(t.getAttribute("yt:sid")||
0)/f,B=+t.getAttribute("r")||0,C=0;C<=B;C++)if(c&&k<=c.b)k++;else{var H=new zs(k,m,u,l+x);d.b.push(H);var L;L=t;var R=f,ra=H.zd,sa=L.getAttribute("yt:cuepointTimeOffset"),H=L.getAttribute("yt:cuepointDuration");sa&&H?(ra=+sa/R+ra,R=+H/R,L=L.getAttribute("yt:cuepointContext")||null,L=new ys(ra,R,L)):L=null;L&&d.A.push(L);k++;m+=u;l+=u+x}d.b.length&&(d.g=db(d.b))}this.o=d.o;this.g=d.g||this.g;ub(this.b,d.b);ub(this.A,d.A)};Xs.prototype.skip=function(a){this.b+=a};h=vt.prototype;h.Wj=function(a){return this.b[a]};
h.Fe=function(a){return this.g[a]/this.o};
h.Ee=function(a){a=this.al(a);return 0<=a?a/this.o:-1};
h.al=function(a){return a+1<this.pa||this.A?this.g[a+1]-this.g[a]:-1};
h.Lf=function(){return 0};
h.Jb=function(){return this.pa-1};
h.Eg=function(){return this.A?this.g[this.pa]/this.o:window.NaN};
h.Us=function(){return 0};
h.kl=function(){return this.pa};
h.ap=function(){return""};
h.Nf=function(a){a=Ab(this.g.subarray(0,this.pa),a*this.o);return 0<=a?a:Math.max(0,-a-2)};
h.sf=function(){return 0<=this.Jb()};y(xt,js);h=xt.prototype;h.Xo=function(a){var b=new ks(1,this,this.initRange),c=new ks(2,this,this.indexRange),d=[],e=[b];ns(b,c)?e.push(c):(d.push(new rs([c])),a=0);(0,window.isNaN)(this.g)?a=0:a>this.g&&(a=this.g);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&(a=Vr(b.range.end+1,a-c),e.push(new ks(4,this,a)));d.push(new rs(e));return d};
h.lp=function(a){if(1==a.info.type){if(this.b)return;this.b=new window.Uint8Array(a.b,a.range.start,a.range.length)}else if(2==a.info.type){if(this.B||0<=this.index.Jb())return;if(1==this.info.g){var b=this.index,c=pt(a),d=a.info.range.start;a=0;var e=c.getUint32(0,!1),f=c.getUint8(a+8);a+=12;var k=c.getUint32(a+4,!1);b.o=k;a+=8;0==f?(f=c.getUint32(a,!1),k=c.getUint32(a+4,!1),a+=8):(f=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),k=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.b[0]=
k+(e+d);b.g[0]=f;b.A=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var m=c.getUint32(a,!1),k=c.getUint32(a+4,!1);a+=12;f=b;f.pa++;wt(f);f.b[f.pa]=f.b[f.pa-1]+m;f.g[f.pa]=f.g[f.pa-1]+k}}else this.B=pt(a)}if(2==this.info.g&&this.b&&this.B){a=new window.DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength);b=this.index;k=this.B;c=this.indexRange.end;a=new ct(a);if(440786851==ft(a)&&(et(a),408125543==ft(a))){e=a;f=e.b;d=dt(e,!0);e.b=f;a=gt(a);for(var e=a.A+a.b,l=ft(a);357149030!=l;)et(a),l=ft(a);
a=gt(a);for(var m=1E6,p=1E9,f=0;!(a.b>=a.g.byteLength);)if(l=ft(a),2807729==l)m=it(a);else if(2807730==l)p=it(a);else if(17545==l){var f=a,l=dt(f,!0),t=0;4==l?t=f.g.getFloat32(f.b):8==l&&(t=f.g.getFloat64(f.b));f.b+=l;f=t}else et(a);b.o=p/m;a=new ct(k);if(475249515==ft(a)){a=gt(a);k=!0;for(m=!1;!(a.b>=a.g.byteLength);)if(l=ft(a),187==l){p=gt(a);l=e;if(179!=ft(p))t=null;else if(t=it(p),183!=ft(p))t=null;else{for(var p=gt(p),u=l;!(p.b>=p.g.byteLength);)241==ft(p)?u=it(p)+l:et(p);t=[u,t]}k&&c==t[0]&&
(m=!0);k=!1;m&&(t[0]+=1);p=b;l=t[0];t=t[1];wt(p);p.b[p.pa]=l;p.g[p.pa]=t;p.pa++}else et(a);c=d+e;a=f;wt(b);b.A=!0;b.g[b.pa]=a;b.b[b.pa]=c}}this.B=null}};
h.Ar=function(a){for(var b=this.nj(a.info),c=[],d=a.B,e=0;e<b.length;e++){var f=Vr(b[e].range.start+b[e].A-a.info.range.start+a.range.start,b[e].g);c.push(new ot(b[e],a.b,f,a.A,d));d=!1}return c};
h.nj=function(a){for(var b=0;b<this.index.Jb()&&a.range.start>=this.index.Wj(b+1);)b++;return zt(this,b,a.range.start,a.range.length).b};
h.Nh=function(a){return this.Xc()?!0:(0,window.isNaN)(this.g)?!1:a.range.end+1<this.g};
h.Vg=function(a,b){var c=this.index.Nf(a);b&&(c=Math.min(this.index.Jb(),c+1));return zt(this,c,this.index.Wj(c),0)};
h.Zl=function(){var a;if(a=this.Xc()&&!(0,window.isNaN)(this.g))a=this.index,a=(a.A?a.b[a.pa]:-1)!=this.g;return a};
h.Bf=function(){return!0};
h.Up=function(){return!1};y(Ct,kk);
Ct.prototype.U=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length){this.A=!0;this.o||(this.o=new Cs);Gs(this.o,a,this.P);this.R("refresh");for(a=0;a<b.length;a++){var c=Lt(this,b[a]),d=this.isLive&&1==c.g&&this.ba;if(!this.b[c.id]){var e=It(Xr(b[a],"BaseURL").textContent,c),f=Xr(b[a],"Initialization"),k=Wr(f,"sourceURL"),f=Ur(Wr(f,"range"));d&&(k="",f=void 0);this.b[c.id]=new vs(e,c,k,null===f?void 0:f)}for(var c=this.b[c.id],e=this.o,k=c,
f=bb(k.info.mimeType,";",1)[0],k=e.A[k.info.id]||e.g[f]||e.b||null,e=vb(Xr(b[a],"SegmentList").getElementsByTagName("SegmentURL"),k.o),k=k.b,f=[],m=0;m<e.length;m++)f.push(Nt(e[m],k[m],d));c.update(f,this.isLive,this.H)}Hs(this.o);return!0}this.duration=Yr(Wr(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];d=Lt(this,k);e=Xr(k,"BaseURL");c=It(e.textContent,d);f=Xr(k,"SegmentBase");k=Ur(f.attributes.indexRange.value);f=Ur(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=(0,window.parseInt)(e.getAttribute("yt:contentLength"),10);d=new xt(c,d,f,k,e,window.NaN);if(!d){b=!1;break a}this.b[d.info.id]=d}b=!0}return b};
var Kt={commentary:1,alternate:2,dub:3,main:4};
Ct.prototype.K=function(a){this.G=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.B=1E3*Yr(Wr(a,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.B;this.H=(0,window.parseInt)(Wr(a,"yt:earliestMediaSequence"),10)||0;Bg(a.getElementsByTagName("Period"),this.U,this);this.C=2;this.R("loaded");(0,window.isFinite)(this.B)&&(a=Bt()-this.D,a=Math.max(0,this.B-a),Mi(w(this.J,this),a));return this};
Ct.prototype.M=function(a){this.G=a.status;this.C=3;this.R("loaderror");return Gd(a)};
Ct.prototype.J=function(){if(1!=this.C&&!this.isDisposed()){var a;a:{a=this.b;for(var b in a){var c=a[b].index;if(c&&c.sf()){a=c.Jb()+1;break a}}a=0}a=Qg(this.I,{start_seq:a.toString()});Mt(this,a)}};var zw,YH;var q$=qc,q$=q$.toLowerCase();if(-1!=q$.indexOf("android")){var r$=q$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(r$)zw=Number(r$[1]);else{var s$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},t$=q$.match("("+Yb(s$).join("|")+")");zw=t$?s$[t$[0]]:0}}else zw=void 0;YH=0<=zw;var Q5,Xt=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],Yt=['audio/mp4; codecs="mp4a.40.2"'];var lu={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},mu=sb(lu.widevine,lu.playready);y(ku,F);ku.prototype.B=function(a){this.o=a;iu(this.F)?ou(this):pu(this)};
ku.prototype.D=function(a,b){if(!this.isDisposed()){a.g=b;var c=b.getConfiguration();E([c.audioCapabilities,c.videoCapabilities],function(b){E(b,function(b){a.o[b.contentType]=!0})});
this.o(a)}};
ku.prototype.C=function(){this.isDisposed()||(0<this.g.length?ou(this):this.o(null))};qu.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.b+"_"+this.id+"_"+this.isDefault};ru.prototype.toString=function(){return this.g+": "+tu(this)+" - "+this.D};
ru.prototype.Na=function(a){return a?this.toString()==a.toString():!1};wu.prototype.b=function(){return this.Lb};
wu.prototype.toString=function(){return this.Lb.name};
wu.prototype.getLanguageInfo=wu.prototype.b;xu.prototype.Na=function(a){return this.g==a.g&&this.b==a.b&&this.A==a.A};
var pK=yu("auto","large",!1),Au=yu("auto","auto",!1);yu("small","auto",!1);xu.prototype.isLocked=function(){return this.A&&!!this.g&&this.g==this.b};
xu.prototype.o=function(a){if(!a.video)return!1;a=Hr[a.video.quality];return this.g<=a&&(!this.b||this.b>=a)};var zx={cL:1,dL:2,eL:3};Fu.prototype.getValue=function(){return this.b};
Fu.prototype.clone=function(){return new Fu(this.bc,this.b)};h=Gu.prototype;h.remove=function(){var a=this.b,b=a.length,c=a[0];if(!(0>=b)){if(1==b)nb(a);else{a[0]=a.pop();for(var a=0,b=this.b,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].bc<b[f].bc?k:f;if(b[f].bc>e.bc)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
h.Ha=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
h.La=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].bc);return b};
h.$e=function(a){return Ph(this.b,function(b){return b.getValue()==a})};
h.clone=function(){return new Gu(this)};
h.cb=function(){return this.b.length};
h.isEmpty=function(){return lb(this.b)};
h.clear=function(){nb(this.b)};y(Iu,Gu);y(Ju,kk);Ju.prototype.H=function(a,b){this.g=this.g.onload=null;var c=this.b[a];c.A[b]=!0;Nu(this);var d=c.Ob*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.dl()-1)];this.R("l",c[0],c[1])};
Ju.prototype.O=function(){this.g&&(this.g=this.g.onload=null);Ju.L.O.call(this)};h=Qu.prototype;h.Ta=function(){return this.F};
h.getHeight=function(){return this.D};
h.dl=function(){return this.g};
h.isDefault=function(){return-1!=this.o.indexOf("default")};
h.ak=function(a){return Ve(0==this.B?Math.round(a*this.g/this.I):Math.round(1E3*a/this.B),0,this.dl()-1)};
h.xn=function(){return this.g-1};
h.Wt=function(){return this.g?0:-1};
h.Xt=function(){};y(Ru,Ju);Ru.prototype.A=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.C(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
Ru.prototype.C=function(a,b,c,d){return new Qu(a,b,c,d)};
Ru.prototype.G=function(){};y(Su,Qu);h=Su.prototype;h.dl=function(){return this.b?this.b.kl():-1};
h.ak=function(a){var b=this.rows*this.Ob*this.G,c=-1,d=-1,e=this.b;e&&(c=e.Jb(),d=e.Nf(a));return d>c-b?-1:d};
h.xn=function(){return this.b?this.b.Jb():-1};
h.Wt=function(){return this.b?this.b.Lf():-1};
h.Xt=function(a){this.b=a?a.index:null};y(Tu,Ru);Tu.prototype.A=function(a,b){return Tu.L.A.call(this,"$N|"+a,b)};
Tu.prototype.C=function(a,b,c){return new Su(a,b,c,this.I.isLive)};
Tu.prototype.G=function(a){for(var b=0;b<this.b.length;b++)this.b[b].Xt(a)};var Yu=/^([0-9\.]+)\:([0-9\.]+)$/;var hv={log_event:"events",log_interaction:"interactions"},fv={},gv={},dv=0,ev=q("yt.logging.transport.logsQueue_")||{};ba("yt.logging.transport.logsQueue_",ev,void 0);var ov=0;vv.prototype.toString=function(){return this.topic};var Xpa=q("yt.pubsub2.instance_")||new kg;kg.prototype.subscribe=kg.prototype.subscribe;kg.prototype.unsubscribeByKey=kg.prototype.yc;kg.prototype.publish=kg.prototype.R;kg.prototype.clear=kg.prototype.clear;ba("yt.pubsub2.instance_",Xpa,void 0);var yv=q("yt.pubsub2.subscribedKeys_")||{};ba("yt.pubsub2.subscribedKeys_",yv,void 0);var Av=q("yt.pubsub2.topicToKeys_")||{};ba("yt.pubsub2.topicToKeys_",Av,void 0);var zv=q("yt.pubsub2.isAsync_")||{};ba("yt.pubsub2.isAsync_",zv,void 0);
ba("yt.pubsub2.skipSubKey_",null,void 0);var Ev=D().toString();var $v=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};y(Jv,rv);var wv=new vv("timing-sent",Jv);var Tv={ad_at:"ad_type",cpn:"client_playback_nonce",csn:"client_screen_nonce",yt_lt:"load_type",yt_ad:"is_monetized",yt_ad_pr:"preroll_allowed",yt_red:"is_red_subscriber",yt_vis:"is_visible"},Uv=["is_monetized","preroll_allowed","is_red_subscriber","is_visible"],Yv=w($v.clearResourceTimings||$v.webkitClearResourceTimings||$v.mozClearResourceTimings||$v.msClearResourceTimings||$v.oClearResourceTimings||r,$v),Kv=$v.mark?w($v.mark,$v):r;$v.measure&&w($v.measure,$v);var vx,DH;var u$=qc,v$=u$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!v$||2>v$.length)vx=void 0;else{var w$=u$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);vx=w$&&6==w$.length?Number(w$[5].replace("_",".")):0}(DH=0<=vx)&&0<=qc.search("Safari")&&qc.search("Version");var ew=function(){if(hu)return dw(/Firefox\/([0-9.]+)/);if(qf||gu||Cc)return wc;if(Xl)return dw(/Chrome\/([0-9.]+)/);if(eu&&!(tc()||rc("iPad")||rc("iPod")))return dw(/Version\/([0-9.]+)/);if(VH||ux){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(qc);if(a)return a[1]+"."+a[2]}else if(WH)return(a=dw(/Android\s+([0-9.]+)/))?a:dw(/Version\/([0-9.]+)/);return""}();fw.prototype.start=function(){return 0};
fw.prototype.end=function(){return window.Infinity};
fw.prototype.length=1;h=gw.prototype;h.addEventListener=function(){};
h.removeEventListener=function(){};
h.dispatchEvent=function(){};
h.abort=function(){};
h.remove=function(){};
h.appendBuffer=function(){};hw.prototype.dispose=function(){if(!this.A){if(this.b)try{window.URL.revokeObjectURL(this.o)}catch(a){}this.A=!0}};
hw.prototype.isDisposed=function(){return this.A};
hw.prototype.Na=function(a){return null!=a&&iw(a)==iw(this)};h=jw.prototype;h.append=function(a){this.g.webkitSourceAppend(this.A,a)};
h.abort=function(){this.g.webkitSourceAbort(this.A)};
h.AE=function(){return this.g.webkitSourceState==this.g.SOURCE_CLOSED?new kw:this.g.webkitSourceBuffered(this.A)};
h.CE=function(){return this.o};
h.GE=function(a){this.o=a;this.g.webkitSourceTimestampOffset(this.A,a)};h=lw.prototype;h.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};
h.removeEventListener=function(a,b,c){this.b.removeEventListener(a,b,c)};
h.MG=function(){return this.b.webkitMediaSourceURL};
h.addSourceBuffer=function(a){var b=(this.A++).toString();this.b.webkitSourceAddId(b,a);a=new jw(this.b,b);this.sourceBuffers.push(a);return a};
h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.b.webkitSourceRemoveId(a.A);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
h.DE=function(){switch(this.b.webkitSourceState){case this.b.SOURCE_CLOSED:return"closed";case this.b.SOURCE_OPEN:return"open";case this.b.SOURCE_ENDED:return"ended"}return""};
h.endOfStream=function(a){var b=this.b.EOS_NO_ERROR;"network"==a?b=this.b.EOS_NETWORK_ERR:"decode"==a&&(b=this.b.EOS_DECODE_ERR);this.b.webkitSourceEndOfStream(b)};
h.EE=function(){nb(this.sourceBuffers)};
h.BE=function(){return this.g};
h.FE=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};y(mw,or);mw.prototype.og=function(a){qw(this)?this.A.duration=a:this.o=a};
mw.prototype.H=function(){if(!this.isDisposed()&&qw(this)&&!(0,window.isNaN)(this.o)){this.A.duration=this.o;this.o=window.NaN;try{this.b=this.A.addSourceBuffer(this.F),this.K?this.g=this.A.addSourceBuffer(this.I):this.g=new gw,this.B&&(this.B(this),this.B=null)}catch(a){this.C&&this.C(a)}}};
mw.prototype.G=function(){this.dispose()};var Aw={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};xw.prototype.g=function(){return null};var Tw="9h 9 h 8 ( H *".split(" "),Uw="h98H(*".split(""),Ww="oMavAV".split(""),Yw="moMavAV".split(""),Xw="aoMvAV".split(""),Vw=["f"],Fw={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Gw={"application/x-mpegURL":"maybe"},Ew={"application/x-mpegURL":"maybe"};y(gx,xw);
gx.prototype.g=function(){if(!this.b||this.b.isDisposed()){var a=this.A;dx(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.g.length;d<e;++d){var f=a.g[d];c[f.itag]=f;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+f.itag.toString()+'",URI="'+f.url+'"')}d=0;for(e=a.b.length;d<e;++d){var k=a.b[d],f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.Go+","+f.Go)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}this.b=new hw("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(b.join("\n")))}return this.b};y(jx,xw);jx.prototype.g=function(){return new hw(this.b)};y(ox,kk);ox.B=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;ox.g=1;ox.C=-21;ox.D=18E3;ox.A="ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_overlay_timeout ypc_preview ypc_signin_message ypc_vid".split(" ");ox.o="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
ox.b={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};h=ox.prototype;h.adModule=!1;h.adaptiveFormats="";h.Hj=null;h.allowEmbed=!0;h.backgroundable=!1;h.Zd=!1;h.yf="";h.no=!1;h.hi=!1;h.gi=ox.g;h.Kj=null;h.watchAjaxToken=null;h.author="";h.Ij=0;h.mi=!1;h.Ho=!1;h.ni="";h.oi="";h.clientPlaybackNonce="";h.contentCheckOk=!1;h.qf=0;h.Tk=!1;h.enableCardio=!1;h.enableCardioBeforePlayback=!1;h.Ff=0;h.oe=!1;h.pp=!1;h.Jj=0;h.Gh=0;h.Si=!1;
h.Zc=!1;h.Wl=!1;h.Sp=!1;h.Yl=!1;h.isListed=!1;h.ag=!1;h.sa=!1;h.isLiveDefaultBroadcast=!1;h.isLowLatencyLiveStream=!1;h.isMdxPlayback=!1;h.isPharma=!1;h.Ti=!1;h.Cg=!1;h.Yp=!1;h.bm=!1;h.Qk=3;h.kf=window.NaN;h.liveStartWalltime=0;h.gm=null;h.lengthSeconds=0;h.kn=0;h.paygated=!1;h.profilePicture="";h.racyCheckOk=!1;h.autonavState=1;h.th=Au;h.be=!1;h.startSeconds=0;h.spacecastModule=!1;h.bi=null;h.yh=Au;h.mf=null;h.title="";h.xg="";h.hlsFormats="";h.Lj=null;h.Xm="vvt";h.requiresPurchase=!1;
h.clipStart=0;h.clipEnd=window.Infinity;h.wz=function(a){(this.F=a)&&"fairplay"==this.F.b&&(this.F.fairPlayCert=this.fairPlayCert);Hx(this)};
h.TA=function(a){this.isDisposed()||(this.b=a,G(this,this.b),this.sa?this.b.subscribe("refresh",this.Aq,this):this.b.isLive=!1,Qv("mrc"),Dt(this.b)&&(this.M=!0),Hx(this))};
h.SA=function(a){this.isDisposed()||(this.oe=!1,this.R("dataloaderror",new bw("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
h.Aq=function(){this.b.isLive||this.b.ya("refresh",this.Aq,this);this.Co()};
h.Co=function(){var a;a=this.b;var b=this.Fa;a=a.o?vb(a.o.o,b):a.F.length?vb(a.F,b):[];0<a.length&&(this.R("cuepointupdated",a),this.Fa+=a.length)};
h.od=function(a){return v(this.keywords[a])?this.keywords[a]:null};
h.Hr=function(){var a={format:"RAW",method:"GET",context:this,ab:this.oB,onError:this.Dq,withCredentials:this.Oe};this.Qe&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});Sj(this.hd,a);Qv("vir")};
h.oc=function(a,b){if(30==this.P){var c=this.ib["default.jpg"];return c?c:this.videoId?Qg("//docs.google.com/vt",{id:this.videoId,authuser:this.Eb,authkey:this.ub}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.ib[b])||a.D||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:iI(a,this.videoId,b)};
h.jl=function(){return this.Xd};
h.oB=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.oe=!1;var c=Fj(b);"fail"==c.status?this.R("onStatusFail",c):(Qv("virc"),E(ox.A,function(a){a in this.o&&(c[a]=this.o[a])},this),nx(this,c),Qx(this)?Hx(this):this.R("dataloaderror",new bw("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))}else this.Dq(a)}};
h.Dq=function(a){if(!this.isDisposed()){var b="manifest.net.retryexhausted",c=!0,d={backend:"gvi",rc:a.status};this.yb&&(this.Ub?d.retried="1":(this.Ub=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Pe.start()));this.R("dataloaderror",new bw(b,c,d))}};
h.Bg=function(){return null};
h.vb=function(){return this};
h.ol=function(a){return a.getVideoUrl(this.videoId)};y(cy,kk);h=cy.prototype;h.hasNext=function(a){return this.H||!!a||this.b+1<this.A};
h.vb=function(a,b){var c=void 0!=a?a:this.b,c=this.g&&c in this.g?this.g[this.o[c]]:null,d=null;c&&(b&&(c.autoplay="1"),d=new ox(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.B&&(d.playlistId=this.B.toString()));return d};
h.setShuffle=function(a){this.I=a;a=this.o&&null!=this.o[this.b]?this.o[this.b]:this.b;this.o=[];for(var b=0;b<this.g.length;b++)this.o.push(b);this.b=a;this.G++;if(this.I){a=this.o[this.b];for(b=1;b<this.o.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.o[b];this.o[b]=this.o[c];this.o[c]=d}for(b=0;b<this.o.length;b++)this.o[b]==a&&(this.b=b);this.G++}this.R("shuffle")};
h.oc=function(a,b){b=b||"hqdefault.jpg";var c=this.K[b];if(c||a.D||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.J.length)return iI(a,this.J[0],b)};
h.jl=function(){return null};
h.Pb=function(){return this.b};
h.Bg=function(){return this.B?this.B.toString():null};
h.ol=function(a){return a.getVideoUrl(this.vb().videoId,this.Bg())};
h.O=function(){this.D=null;Ob(this.g);cy.L.O.call(this)};y(ny,Q);h=ny.prototype;h.wi=function(){this.D&&(this.G.stop(),this.qa(this.F),this.F=null,this.D.close(),this.D=null)};
h.uq=function(){this.Xa(AL(this.o))};
h.XB=function(){window.focus();this.wi()};
h.wk=function(){var a=Math.min(Bt()-this.H,1E4),a=Math.min(a/1E4,1);this.I.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.B&&this.B.start()};
h.select=function(a){var b=T(this.o);if(b.experiments.$("autonav_notifications")&&a&&window.Notification&&window.document.hasFocus){var c=window.Notification.permission;dC(this.o,"xwebnotifications",{permission:c});"default"==c?window.Notification.requestPermission():"granted"!=c||window.document.hasFocus()||(c=this.C.vb(),this.wi(),this.D=new window.Notification(P("YTP_PLAYLIST_UP_NEXT"),{body:c.title,icon:c.oc(b)}),this.F=this.S(this.D,"click",this.XB),this.G.start())}py(this);b=this.C.vb().videoId;
L9(this.o.app,b,a?this.C.jc:this.C.za,this.C.Bg(),void 0)};
h.eC=function(a){T(this.o).experiments.$("endscreen_204_logging")&&dC(this.o,"xendscreen",{action:"click",autonav:!0,index:0});!pm(a)&&ky(a)&&(this.select(),om(a))};
h.xq=function(a){om(a);IL(this.o,"autonavcancel");CL(this.o,!0)};
h.IH=function(a){120<km(a).naturalWidth&&J(this.element,"ytp-moving-thumbnail-loaded")};
h.O=function(){py(this);this.wi();ny.L.O.call(this)};y(Ay,Q);h=Ay.prototype;h.mg=function(){var a=this.B.vb().videoId;L9(this.o.app,a,this.B.za,this.B.Bg(),void 0)};
h.aG=function(a){T(this.o).experiments.$("endscreen_204_logging")&&dC(this.o,"xendscreen",{action:"click",autonav:!1,index:this.G});vy(a,this.o,!this.o.Ia()&&this.D)&&this.mg()};
h.cG=function(){this.qa(this.C);this.C=null;Cy(this)};
h.bG=function(a){switch(a.keyCode){case 13:case 32:pm(a)||(this.mg(),om(a))}};
h.dG=function(a){120<km(a).naturalWidth&&(J(this.element,"ytp-videowall-moving-thumbnail-loaded"),this.F.start())};
h.bs=function(){he(this.element,"ytp-videowall-moving-thumbnail-loaded")};y(Dy,Bq);Dy.b=2;h=Dy.prototype;h.create=function(){Dy.L.create.call(this);var a=this.o.getVideoData();a&&(this.C=Gy(a),this.F=a);this.Ie();this.I.S(this.o,"appresize",this.Ie);this.I.S(this.o,"videodatachange",this.$F);this.I.S(this.o,"autonavchange",this.lt);this.I.S(this.o,"autonavcancel",this.Ex)};
h.destroy=function(){qr(this.I);Ob(this.D);this.D=[];this.C=null;Dy.L.destroy.call(this);he(this.element,"ytp-show-tiles");this.M.stop()};
h.ii=function(){return 1!=this.F.autonavState};
h.show=function(){Dy.L.show.call(this);he(this.element,"ytp-show-tiles");T(this.o).isMobile?ce(this.M):this.M.start();(this.K||this.G&&this.G!=this.F.clientPlaybackNonce)&&CL(this.o,!1);var a=Ey(this.o),b=!this.G&&this.ii()&&a;a&&T(this.o).experiments.$("ui_logging")&&this.Y.log({cancelButtonShow:b?"1":"0",state:this.ii()?"enabled":"disabled"});b?2==this.F.autonavState?T(this.o).experiments.$("fast_autonav_in_background")&&3==this.o.Ss()?this.B.select(!0):oy(this.B):3==this.F.autonavState&&qy(this.B):
CL(this.o,!0);Jy(this);T(this.o).experiments.$("endscreen_204_logging")&&this.P&&dC(this.o,"xendscreen",{action:"show",autonav:!0})};
h.da=function(){Dy.L.da.call(this);qy(this.B);Jy(this)};
h.$C=function(a){km(a)==this.element&&this.Ie()};
h.Ie=function(){if(this.C&&this.C.length){var a=T(this.o),b=a.experiments.$("video_wall_moving_thumbnails_first"),c=a.experiments.$("video_wall_moving_thumbnails_hover"),d=a.experiments.$("video_wall_pagination"),e=a.experiments.$("video_wall_redesign");d&&J(this.element,"ytp-endscreen-paginate");var f=Zq(this.element),k=96,m=54,l=f.width/f.height,p=k/m;!wy(a)||this.o.Ia()||e||(k*=.9,m*=.9);var t=a=0;e&&(t=a=Dy.b);var u=Math.max(f.width/k,2),x=Math.max(f.height/m,2),B=this.C.length,C=Math.pow(Dy.b,
2),H=B*C,L=Hy(this,0,x),R=Hy(this,1,x),H=H+(Math.pow(L,2)-C),H=H+(Math.pow(R,2)-C);for(e&&(H-=C);0<H&&(a<u||t<x);){var ra=a/Dy.b,sa=t/Dy.b,Aa=a<=u-Dy.b&&H>=sa*C,cb=t<=x-Dy.b&&H>=ra*C;if((e?(ra+1)/sa*p/l>l/(ra/(sa+1)*p):ra/sa*p>l)&&cb)H-=ra*C,t+=Dy.b;else if(Aa)H-=sa*C,a+=Dy.b;else if(cb)H-=ra*C,t+=Dy.b;else break}p=!1;u=Dy.b+L;H>=3*C&&6>=B*C-H&&(t>=u||a>=u)&&R<=Dy.b&&(p=!0);k*=a;m*=t;l=k/m<l?f.height/m:f.width/k;l=Math.min(l,e?2:1.42);k*=l;m*=l;k*=Ve(f.width/k||1,1,1.21);m*=Ve(f.height/m||1,1,1.21);
k=Math.floor(Math.min(f.width,k));m=Math.floor(Math.min(f.height,m));f=this.U.element;Xq(f,k,m);Gq(f,{marginLeft:k/-2+"px",marginTop:m/-2+"px"});l=this.B;C=this.C[0];l.C=C;my(l,C,T(l.o),"hqdefault.jpg");he(l.element,"ytp-moving-thumbnail-loaded");l.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});1E5<By(l.o.app.ga)&&(C=l.C.jl())&&l.update({moving_thumbnail:C});K(this.element,"ytp-endscreen-takeover",Fy(this));Jy(this);e=e?4:1;l=k+e;k=m+e;
m=0;C=!Fy(this);H=!1;for(u=0;u<a;u++)for(x=0;x<t;x++)if(ra=R>Dy.b&&1<=m&&!H?m+1:m,sa=0,p&&u>=a-Dy.b&&x>=t-Dy.b?sa=1:0==x%Dy.b&&0==u%Dy.b&&(x<L&&u<L?0==x&&0==u&&(sa=L):R>Dy.b&&x>=t-R&&u>=a-R?x==t-R&&u==a-R&&(H=!0,ra=1,sa=R):sa=Dy.b),ra=(ra+this.H)%B,ra=0>ra*B?ra+B:ra,0!=sa){Aa=this.D[m];Aa||(Aa=new Ay(this.o),this.D[m]=Aa,f.appendChild(Aa.element));var cb=Math.floor(k*x/t),re=Math.floor(l*u/a),bk=Math.floor(k*(x+sa)/t)-cb-e,ck=Math.floor(l*(u+sa)/a)-re-e;Mq(Aa.element,re,cb);Xq(Aa.element,ck,bk);Gq(Aa.element,
"transitionDelay",(x+u)/20+"s");K(Aa.element,"videowall-still-mini",1==sa);K(Aa.element,"videowall-still-large",2<sa);sa=Aa;Aa=ra;ra=this.C[ra];cb=C&&(b?0==m:!c);sa.B=ra;sa.G=Aa;Aa=T(sa.o);my(sa,ra,Aa,ee(sa.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");sa.bs();sa.F.stop();sa.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});cb?(J(sa.element,"ytp-videowall-active"),Cy(sa)):Aa.experiments.$("video_wall_moving_thumbnails_hover")&&
!sa.C&&(sa.C=sa.N("mouseover",sa.cG));m++}d&&K(this.element,"ytp-endscreen-paginate",m<B);for(b=this.D.length-1;b>=m;b--)Aa=this.D[b],Bf(Aa.element),Nb(Aa);this.D.length=m}};
Dy.A=1.42;Dy.g=1.21;h=Dy.prototype;h.$F=function(){var a=this.o.getVideoData();this.F!=a&&(this.H=0,this.C=Gy(a),this.F=a,this.Ie())};
h.BA=function(){this.H+=this.D.length;this.Ie()};
h.CA=function(){this.H-=this.D.length;this.Ie()};
h.lt=function(a){1==a?(this.K=!1,this.G=this.F.clientPlaybackNonce,py(this.B),this.A&&this.Ie()):(this.K=!0,this.A&&Fy(this)&&(2==a?oy(this.B):3==a&&qy(this.B)))};
h.Ex=function(a){a?(T(this.o).experiments.$("endscreen_204_logging")&&dC(this.o,"xendscreen",{action:"show",autonav:!1}),this.lt(1)):(this.G=null,this.K=!1);this.Ie()};y(Ly,gq);h=Ly.prototype;h.Va=function(a){return Ny(a)};
h.create=function(){Ly.L.create.call(this);Qy(this);this.b.getVideoData().subscribe("dataupdated",this.nr,this)};
h.destroy=function(){this.b.getVideoData().ya("dataupdated",this.nr,this);jq(this);this.g.J&&this.g.destroy();Ly.L.destroy.call(this)};
h.load=function(){Ly.L.load.call(this);this.g.show();T(this.b).Z&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
h.unload=function(){Ly.L.unload.call(this);this.g.da()};
h.dc=function(a){Ly.L.dc.call(this,a);Py(this)&&(this.g.J||this.g.create(),"load"==a.getId()&&this.load())};
h.tc=function(a){"load"==a.getId()&&this.loaded&&this.unload();Ly.L.tc.call(this,a)};
h.nr=function(){jq(this);Qy(this)};var Fba={rI:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",yI:"ERROR_AUTHENTICATION_EXPIRED",zI:"ERROR_AUTHENTICATION_MALFORMED",AI:"ERROR_AUTHENTICATION_MISSING",GI:"ERROR_BAD_REQUEST",WI:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",dJ:"ERROR_CGI_PARAMS_MALFORMED",eJ:"ERROR_CGI_PARAMS_MISSING",EJ:"YTP_DEVICE_FALLBACK",aK:"YTP_ERROR_LICENSE",fK:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",jK:"YTP_ERROR_FORMAT_UNAVALIABLE",kK:"YTP_ERROR_GEO_FAILURE",yK:"YTP_ERROR_GENERIC_WITHOUT_LINK",AK:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
zK:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",OK:"YTP_ERROR_INVALID_DRM_MESSAGE",VK:"LEARN_MORE",TL:"YTP_ERROR_NOT_SIGNED_IN",AM:"YTP_ERROR_PURCHASE_NOT_FOUND",BM:"YTP_ERROR_PURCHASE_REFUNDED",GM:"YTP_ERROR_RENTAL_EXPIRED",ZI:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",$I:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",bJ:"YTP_ERROR_CAST_TOKEN_FAILED",aJ:"YTP_ERROR_CAST_TOKEN_EXPIRED",cJ:"YTP_ERROR_CAST_TOKEN_MALFORMED",VM:"YTP_ERROR_SERVER_ERROR",mN:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",oN:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",
pN:"YTP_ERROR_STREAMING_NOT_ALLOWED",qN:"YTP_ERROR_STREAMING_UNAVAILABLE",NM:"YTP_ERROR_RETRYABLE_ERROR",CN:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",BN:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",SN:"YTP_ERROR_UNSUPPORTED_DEVICE",TN:"YTP_ERROR_UNUSUAL_ACTIVITY",cO:"YTP_ERROR_VIDEO_FORBIDDEN",dO:"YTP_ERROR_VIDEO_NOT_FOUND"},Sy={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",
305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND",401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",5E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",5102:"ERROR_AUTHENTICATION_EXPIRED",
5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED",5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};var Taa={hI:"adunit",DJ:"detailpage",XJ:"editpage",YJ:"embedded",UK:"leanback",vM:"previewpage",xM:"profilepage",QN:"unplugged"};var Vy=DH&&4>vx?.1:0,Fja=new Uy;Uy.prototype.b=null;Uy.prototype.getCurrentTime=function(){return this.currentTime||0};
Uy.prototype.g=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};Xy.prototype.Ya=function(){return U(this,8)&&!U(this,64)&&!U(this,2)};var Vz=[1,2,3,4,5],Tz={LIFE_CYCLE_CREATED:1,LIFE_CYCLE_READY:2,LIFE_CYCLE_TESTING:4,LIFE_CYCLE_TESTING_STARTING:3,LIFE_CYCLE_LIVE:6,LIFE_CYCLE_LIVE_STARTING:5,LIFE_CYCLE_COMPLETE:8,LIFE_CYCLE_COMPLETE_STARTING:7};y(jz,kk);jz.prototype.o=function(){this.g.isActive()&&ce(this.g)};
jz.prototype.B=function(){var a={headers:{"Content-Type":"application/json"},dd:{alt:"json",key:this.D},postBody:this.F,format:"JSON",timeout:1E4,ab:w(this.H,this),onError:w(this.A,this),wc:w(this.A,this)};this.C&&(a.headers["X-Goog-Visitor-Id"]=this.C);Tj(this.G,a)};
jz.prototype.H=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.R("payload",a),this.b=7500+Math.floor(15E3*Math.random()),this.g.start(this.b)):this.A())};
jz.prototype.A=function(){this.isDisposed()||(this.R("error"),192E4>this.b&&(this.b*=2),this.g.start(this.b))};y(kz,Q);kz.prototype.B=function(a){if(!ky(a)||T(this.o).experiments.$("disable_fresca_video_navigation"))vy(a,this.o,!0);else{var b=a.currentTarget.getAttribute("href");L9(this.o.app,b.substring(b.length-11),void 0,void 0,void 0);om(a)}};y(lz,Q);h=lz.prototype;h.Mz=function(a){if(!ky(a)||T(this.B).experiments.$("disable_fresca_video_navigation"))vy(a,this.B,!0);else{var b=a.currentTarget.getAttribute("href");L9(this.B.app,b.substring(b.length-11),void 0,void 0,void 0);om(a)}};
h.zA=function(){this.C=!0;this.da()};
h.show=function(){var a=!this.A;lz.L.show.call(this);a&&Zz(this.B)};
h.da=function(){var a=this.A;lz.L.da.call(this);a&&Zz(this.B)};
h.O=function(){Ob(this.o);lz.L.O.call(this)};y(qz,Q);qz.prototype.G=function(a){var b;b=this.o;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;K(this.element,"ytp-fresca-inline-countdown",b&&!0);K(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.o.startTime-Math.floor(D()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.F)){this.F=a;vz(this,this.o,!0);return}rz(this.o)||this.g("countdown",wz(this.o.startTime));O(this.D);this.D=Mi(w(this.G,this),1E3)}};
qz.prototype.O=function(){O(this.D);qz.L.O.call(this)};var Fz;
Fz={$u:["tr. CN","sau CN"],Zu:["tr. CN","sau CN"],Kv:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),dw:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),Pn:"th\u00e1ng 1;th\u00e1ng 2;th\u00e1ng 3;th\u00e1ng 4;th\u00e1ng 5;th\u00e1ng 6;th\u00e1ng 7;th\u00e1ng 8;th\u00e1ng 9;th\u00e1ng 10;th\u00e1ng 11;th\u00e1ng 12".split(";"),Vn:"Th\u00e1ng 1;Th\u00e1ng 2;Th\u00e1ng 3;Th\u00e1ng 4;Th\u00e1ng 5;Th\u00e1ng 6;Th\u00e1ng 7;Th\u00e1ng 8;Th\u00e1ng 9;Th\u00e1ng 10;Th\u00e1ng 11;Th\u00e1ng 12".split(";"),Sn:"thg 1;thg 2;thg 3;thg 4;thg 5;thg 6;thg 7;thg 8;thg 9;thg 10;thg 11;thg 12".split(";"),Wn:"Thg 1;Thg 2;Thg 3;Thg 4;Thg 5;Thg 6;Thg 7;Thg 8;Thg 9;Thg 10;Thg 11;Thg 12".split(";"),
fo:"Ch\u1ee7 Nh\u1eadt;Th\u1ee9 Hai;Th\u1ee9 Ba;Th\u1ee9 T\u01b0;Th\u1ee9 N\u0103m;Th\u1ee9 S\u00e1u;Th\u1ee9 B\u1ea3y".split(";"),Yn:"Ch\u1ee7 Nh\u1eadt;Th\u1ee9 Hai;Th\u1ee9 Ba;Th\u1ee9 T\u01b0;Th\u1ee9 N\u0103m;Th\u1ee9 S\u00e1u;Th\u1ee9 B\u1ea3y".split(";"),Tn:"CN;Th 2;Th 3;Th 4;Th 5;Th 6;Th 7".split(";"),Xn:"CN;Th 2;Th 3;Th 4;Th 5;Th 6;Th 7".split(";"),b:"CN T2 T3 T4 T5 T6 T7".split(" "),ew:"CN T2 T3 T4 T5 T6 T7".split(" "),Yv:["Q1","Q2","Q3","Q4"],Rv:["Qu\u00fd 1","Qu\u00fd 2","Qu\u00fd 3",
"Qu\u00fd 4"],Fn:["SA","CH"],fk:["EEEE, 'ng\u00e0y' dd MMMM 'n\u0103m' y","'Ng\u00e0y' dd 'th\u00e1ng' MM 'n\u0103m' y","d MMM, y","dd/MM/y"],bo:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],Vu:["{0} {1}","{0} {1}","{0}, {1}","{0}, {1}"],hk:0,pw:[5,6],ik:6};xz.prototype.Na=function(a){return a.C==this.C&&a.B==this.B&&a.b==this.b&&a.g==this.g&&a.A==this.A&&a.o==this.o};
xz.prototype.clone=function(){return new xz(this.C,this.B,this.b,this.g,this.A,this.o)};
xz.prototype.times=function(a){return new xz(this.C*a,this.B*a,this.b*a,this.g*a,this.A*a,this.o*a)};
h=Az.prototype;h.Oo=Fz.hk;h.Qo=Fz.ik;h.clone=function(){var a=new Az(this.date);a.Oo=this.Oo;a.Qo=this.Qo;return a};
h.getFullYear=function(){return this.date.getFullYear()};
h.getMonth=function(){return this.date.getMonth()};
h.getDate=function(){return this.date.getDate()};
h.getTime=function(){return this.date.getTime()};
h.getDay=function(){return this.date.getDay()};
h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
h.getUTCMonth=function(){return this.date.getUTCMonth()};
h.getUTCDate=function(){return this.date.getUTCDate()};
h.getUTCHours=function(){return this.date.getUTCHours()};
h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
h.Na=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
h.toString=function(){return[this.getFullYear(),Pa(this.getMonth()+1,2),Pa(this.getDate(),2)].join("")+""};
h.valueOf=function(){return this.date.valueOf()};var Lz=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
Iz.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.A-Ez(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));for(var c=[],f=0;f<this.g.length;++f){var k=this.g[f].text;1==this.g[f].type?c.push(Oz(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var Kz=!1;Pz.prototype.isLive=function(){return"LIVE"==this.g};
Pz.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.g};
Pz.prototype.getVideoUrl=function(){return this.C};Sz.prototype.b=function(){return this.o};
Sz.prototype.Na=function(a){return a&&this.broadcastId==a.broadcastId&&this.state==a.state&&this.b()==a.b()&&this.imageUrl==a.imageUrl&&Gb(this.messageText,a.messageText)&&(this.startTime==a.startTime||(0,window.isNaN)(this.startTime)&&(0,window.isNaN)(a.startTime))};y(Wz,gq);h=Wz.prototype;h.Va=function(){return Sx(this.b.getVideoData(),"fresca_module")};
h.create=function(a){Wz.L.create.call(this);var b=T(this.b);Iw()?(this.G=this.A=!1,this.H&&(this.B=new qz(this.b),mr(this.b,this.B.element,4)),this.o=a||null,this.o||(a=this.b.getVideoData(),this.o=new jz(a.videoId,a.visitorData||Ki("VISITOR_DATA",""),b.Ne)),this.o.subscribe("payload",this.vC,this),this.o.subscribe("error",this.Tq,this),this.b.addEventListener("presentingplayerstatechange",this.ht,this)):HK(this.b.app.g,"html5.unsupportedlive","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nolive.1")};
h.destroy=function(){this.b.removeEventListener("presentingplayerstatechange",this.ht,this);Ob(this.o,this.B);this.g=null;Wz.L.destroy.call(this)};
h.ht=function(a){this.g&&(this.G=U(a.state,2),hz(Xz(this.b))&&this.o.o(),$z(this,this.g))};
h.Tq=function(){if(!this.A){var a=this.b.getVideoData();a.hlsvp||a.D?T(this.b).experiments.$("disable_fresca_error_fallback")||(this.A=!0,kq(this)):(bA(this,new Sz(this.b.getVideoData().isLiveDefaultBroadcast)),$z(this,this.g))}};
h.vC=function(a){if(!a||a.error)this.Tq();else{var b=this.g?this.g.broadcastId:"",c=this.b.getVideoData();bA(this,new Sz(c.isLiveDefaultBroadcast,a));this.C=this.C||c.isLiveDefaultBroadcast&&""!=b&&b!=this.g.broadcastId;if(6!=this.g.state||(c.hlsvp||c.D)&&!this.C){if(this.C&&Yz(this,this.g)&&(a=this.g.broadcastId.substring(0,11),a!=c.videoId)){L9(this.b.app,a,null,null,!0);return}$z(this,this.g)}else this.C=!1,this.b.on(c.videoId)}};var dA=qf&&cA();iA.prototype.N=function(a,b,c,d){c=w(c,d||this.g);a=fm(a,b,c);this.b.push(a);return a};
iA.prototype.qa=function(a){gm(a);qb(this.b,a)};y(mA,F);h=mA.prototype;h.start=function(){this.stop();this.A=!1;var a=nA(this),b=oA(this);a&&!b&&this.b.mozRequestAnimationFrame?(this.oa=Qc(this.b,"MozBeforePaint",this.g),this.b.mozRequestAnimationFrame(null),this.A=!0):this.oa=a&&b?a.call(this.b,this.g):this.b.setTimeout(kd(this.g),20)};
h.stop=function(){if(this.isActive()){var a=nA(this),b=oA(this);a&&!b&&this.b.mozRequestAnimationFrame?bd(this.oa):a&&b?b.call(this.b,this.oa):this.b.clearTimeout(this.oa)}this.oa=null};
h.isActive=function(){return null!=this.oa};
h.Bx=function(){this.A&&this.oa&&bd(this.oa);this.oa=null;this.B.call(this.o,D())};
h.O=function(){this.stop();mA.L.O.call(this)};var pA={},qA=null;y(vA,I);h=vA.prototype;h.Ya=function(){return 1==this.b};
h.bj=function(){this.Cc("begin")};
h.hh=function(){this.Cc("end")};
h.gc=function(){this.Cc("finish")};
h.Cc=function(a){this.V(a)};y(wA,vA);h=wA.prototype;h.play=function(a){if(a||0==this.b)this.progress=0,this.g=this.A;else if(this.Ya())return!1;rA(this);this.startTime=a=D();-1==this.b&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.B=this.startTime;this.progress||this.bj();this.Cc("play");-1==this.b&&this.Cc("resume");this.b=1;var b=na(this);b in pA||(pA[b]=this);tA();uA(this,a);return!0};
h.stop=function(a){rA(this);this.b=0;a&&(this.progress=1);xA(this,this.progress);this.Cc("stop");this.hh()};
h.pause=function(){this.Ya()&&(rA(this),this.b=-1,this.Cc("pause"))};
h.O=function(){0==this.b||this.stop(!1);this.Cc("destroy");wA.L.O.call(this)};
h.destroy=function(){this.dispose()};
h.pm=function(){this.Cc("animate")};
h.Cc=function(a){this.V(new yA(a,this))};
y(yA,mc);BA.prototype.g=qe;y(MA,F);h=MA.prototype;h.ob=function(a){this.Qd();var b=this.b;if(1<a.length&&a.length>b.b.length)b.b=b.b.concat(a),b.b.sort(b.g);else for(var c=0;c<a.length;c++){var d=a[c];!b.b.length||0<b.g(d,b.b[b.b.length-1])?b.b.push(d):Hb(b.b,d,b.g)}this.A=window.NaN;this.Qd()};
h.Fh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.g.indexOf(c);0<=d&&this.g.splice(d,1);var e=this.b,d=e.b,c=Ab(d,c,e.g);0<=c&&pb(d,c)}}this.Qd()};
h.tg=function(){this.o=!0;this.Qd()};
h.reset=function(){this.o=this.D=!1;this.B.stop();this.b.b=[];this.g=[];this.Qd();this.C=null};
h.Qd=function(){this.F=!0;if(!this.G){for(var a=3;this.F&&a;){this.F=!1;this.G=!0;if(this.o&&!this.D){this.B.stop();var b=this.H();U(b,32)&&this.J.start();for(var c=U(this.H(),2)?0x8000000000000:1E3*this.M(),d=U(b,2),e=[],f=[],k=0;k<this.g.length;k++){var m=this.g[k];m.active&&(d?0x8000000000000>m.end:!m.contains(c))&&f.push(m)}e=e.concat(OA(this,f));if(d)b=IA(this.b,0x7ffffffffffff),b=b.concat(KA(this.b));else if(this.A<=c&&b.Ya()&&!U(b,16)&&!U(b,32)){b=this.b;d=c;f=[];for(k=JA(b,this.A);k<b.b.length&&
!(m=b.b[k],(m.end<=d||m.contains(d))&&f.push(m),m.start>d);++k);b=f}else b=IA(this.b,c);e=e.concat(NA(this,b));this.A=c;!this.D&&this.C&&(this.C=null);c=e;for(e=0;e<c.length;e++)b=c[e],d=b[1],1==b[0]?(d.A&&eq(d).R("onEnter",d),this.I("crn_"+d.b,d)):(d.A&&eq(d).R("onExit",d),this.I("crx_"+d.b,d))}this.G=!1;a--}this.H().Ya()&&(a=LA(this.b,this.A),null!=a&&0x7ffffffffffff>a&&(a=(a-this.A)/this.K(),this.B.start(a)))}};
h.O=function(){this.C=this.b=this.g=null;MA.L.O.call(this)};var cB={yJ:"current",SL:"new"};nB.prototype.update=function(){var a=this.g.g()||0,b=HB(this.g);if(a!=this.b||rB(this,a,b)){if(a<this.b||a-this.b>b-this.B+this.F||rB(this,a,b))oB(this),this.A=a;this.B=b;this.b=a}};sB.prototype.g=function(){return{ps:this.b.b,el:this.b.ua}};
sB.prototype.send=function(){if(!this.A){var a;a=this.g();a=Qg(this.b.baseYtUrl+"set_awesome",a);this.b.experiments.g&&this.videoData.visitorData&&Lj(a)?Sj(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):Wp(a);this.A=!0}};y(tB,sB);
tB.prototype.g=function(){var a=tB.L.g.call(this);ta(a,this.b.g);ta(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.b.ba,framer:this.b.Me,list:this.videoData.gb||this.videoData.playlistId,w:Ve(this.videoData.Ij/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:pB(this.o),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.wf});this.b.adFormat&&(a.adformat=this.b.adFormat);var b;
(b=(b=this.videoData.referrer)?b.slice(0,128):"")&&(a.referrer=b);if(this.b.experiments.$("legacy_autoplay_flag")?this.b.J:this.videoData.Zc)a.autoplay="1";this.b.Eb&&(a.authuser=this.b.Eb);this.b.pageId&&(a.pageid=this.b.pageId);this.videoData.Cg&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);ta(a,tB.L.g.call(this));ta(a,this.b.g);return a};y(uB,F);var RB={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=uB.prototype;
h.lj=function(a){a=0<=a?a:HB(this.b);var b=this.b.C();if(!(0,window.isNaN)(this.U)&&!(0,window.isNaN)(b.A)){var c=b.A-this.U;0<c&&vB(this,a,"bwm",[c,(b.C-this.aa).toFixed(3)])}this.U=b.A;this.aa=b.C;(0,window.isNaN)(b.b)||vB(this,a,"bwe",[b.b.toFixed(0)]);(0,window.isNaN)(b.g)||(c=b.g,b.o<c&&(c=b.o),this.M!=c&&(vB(this,a,"bh",[c.toFixed(3)]),this.M=c),this.b.b.experiments.A&&3>c&&("PL"==this.g||"B"==this.g)&&this.D.start());this.B&&vB(this,a,"bat",[this.B.level,this.B.charging?"1":"0"]);c=AK(this.b.b);
this.ba!=c&&(vB(this,a,"vis",[c]),this.ba=c);vB(this,a,"cmt",[this.b.g()]);0<b.B&&vB(this,a,"e2el",[b.B,b.F.toFixed(3),b.D.toFixed(3),b.H.toFixed(3),b.G.toFixed(3)]);null!==this.b.videoData.bi&&(this.A.acc=[this.b.videoData.bi.join(":")])};
h.oh=function(a){if(!this.isDisposed()&&!cc(this.A)){a=0<=a?a:HB(this.b);this.D.isActive()||this.lj(a);var b=jI(this.b.b),c=b.droppedVideoFrames,d=c-this.P;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&vB(this,a,"df",[d]);this.P=c;a=wB(this);kc(a,this.b.b.g);a=Qg(this.b.b.Ud,a);for(var e in this.A)a+="&"+e+"="+this.A[e].join(",");Wp(a);this.A={};this.C.start()}};
h.tg=function(){vB(this,HB(this.b),"vps",["N"]);this.b.videoData.Ua&&yB(this,"preload");this.b.videoData.Ti&&yB(this,"reload");this.b.videoData.ag&&yB(this,"monitor");this.b.videoData.sa&&yB(this,"live");this.b.videoData.Ne&&E(this.b.videoData.Ne.split(","),w(function(a){zB(this,"ytrexp",a)},this));
this.K=Ni(w(this.oh,this),1E4);this.C.start()};
h.Rr=function(){this.b.videoData.F&&yB(this,"drm-"+this.b.videoData.F.b)};
h.onError=function(a,b){var c=HB(this.b);xB(this,c,a,b);this.lj(c)};
h.rB=function(){var a=HB(this.b);"PL"==this.g&&(vB(this,a,"vps",[this.g]),this.oh(a))};
h.O=function(){uB.L.O.call(this);Oi(this.K)};BB.prototype.send=function(a){if(!this.P){var b=FB(this),b=Qg(this.ba,b);if(this.D)this.I&&(a={method:"POST",Hb:{atr:this.I}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),Sj(b,a));else{var c=CB(this,a);c?Sj(b,c):Wp(b,a)}this.P=!0}};
BB.prototype.b=function(a){return(1*a.toFixed(3)).toString()};y(GB,F);h=GB.prototype;h.VA=function(a,b){if(!this.isDisposed()){this.D=window.NaN;this.A.update();var c=qB(this.A),d=LB(this,c);b&&(d.B=a);var e=400<this.H;!(1<c.length)&&c[0].isEmpty()||e||(d.g=IB(this,!0,a));d.send();this.H++}};
h.tg=function(){this.g.tg()};
h.onError=function(a,b){this.g.onError(a,b)};
h.pj=function(a){var b=this.b.b,c=this.b.videoData,d={ns:b.ca,el:b.ua,eurl:b.ba,fmt:c.A?zr(c.A):0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.b,noflv:1,st:this.b.g(),video_id:c.videoId,metric:a};if(b.experiments.$("legacy_autoplay_flag")?b.J:c.Zc)d.autoplay="1";"heartbeat"==a&&(d.tpmt=pB(this.A));ta(d,b.g);NB(this,Qg("//www.youtube.com/live_204",d))};
h.O=function(){GB.L.O.call(this);O(this.D);this.D=window.NaN;var a=this.A;Oi(a.C);a.C=window.NaN};h=eC.prototype;h.rj=function(){this.context.o.subscribe("resize",this.ji,this)};
h.fa=function(){return this.aa};
h.rg=function(a,b,c,d,e,f){this.context.b.N(a,"click",qa(this.Xi,b,c,d,e||[],f||0),this);this.context.b.N(a,"touchstart",qa(function(){this.Ym=!1}),this);
this.context.b.N(a,"touchmove",qa(function(){this.Ym=!0}),this)};
h.Xi=function(a,b,c,d,e,f){if(this.Ym)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=kB(a,b,this.context.videoData.videoId))&&hC(this,b,lB(b,a.target),c,d,e,a.gj);return!1};
h.show=function(){this.H=D()};
h.da=function(){};
h.destroy=function(){Bf(this.fa())};
h.ji=function(){};y(iC,Q);h=iC.prototype;h.hs=function(){tz(this.W)&&JL(this.W)&&this.A&&3!=this.H.b&&this.Rh()};
h.QG=function(a){this.B&&Jf(this.B.element,km(a))||(this.C&&this.C.Jk?this.Eq(this.C):(this.Rh(),$i("iv-teaser-clicked",!!this.o),this.W.Mh(!0)))};
h.OG=function(){$i("iv-teaser-mouseover");this.o.stop()};
h.PG=function(){he(this.element,"ytp-cards-auto-open-hover-card")};
h.TC=function(a){this.o||!a||JL(this.W)||this.F&&this.F.isActive()||(this.C=a.Ji,mC(this,a),$i("iv-teaser-shown"))};
h.Eq=function(a){a.gj&&this.W.pauseVideo();sy(a.vr,void 0);ty(a.vr,a.target);$i("iv-hover-card-clicked")};
h.Ey=function(){J(this.element,"ytp-hover-card-active")};
h.Fy=function(){he(this.element,"ytp-hover-card-active")};
h.bu=function(){this.I.stop();this.o&&this.o.isActive()&&this.J.start()};
h.se=function(){this.J.stop();this.o&&!this.o.isActive()&&this.I.start()};
h.PB=function(){this.o&&this.o.stop()};
h.NB=function(){this.Rh()};
h.Rh=function(){!this.o||this.G&&this.G.isActive()||(this.B&&(vq(this.B),this.B=null),this.C=null,this.H.da(),he(this.W.xa(),"ytp-cards-teaser-shown"),he(this.W.xa(),"ytp-cards-button-teaser-merge"),he(this.element,"ytp-cards-combined-teaser"),this.G=new be(function(){for(var a=0;a<this.D.length;a++)this.qa(this.D[a]);this.D=[];this.o&&(this.o.dispose(),this.o=null);lC(this.K,!0)},330,this),this.G.start())};
h.O=function(){var a=this.W.xa();a&&he(a,"ytp-cards-teaser-shown");Ob(this.F,this.G,this.o,this.B,this.C);iC.L.O.call(this)};y(oC,nC);y(pC,nC);y(qC,pC);var rC=!qf;h=tC.prototype;h.RB=function(a,b){var c=(0,window.parseInt)(sC(b.target,"navigationChapterIndex"),10);this.b.g.seekTo(a.chapters[c].time_ms/1E3,!0);var d={};d["link-id"]=c;ZB(this.b.logger,a.Qa,void 0,d,a.b.click,5)};
h.Oq=function(a,b){var c=Sf(b.target,"label");c&&K(c,"iv-card-poll-choice-focused",a)};
h.pC=function(a,b){var c=Tf(b.target,"iv-card-poll");if(c)if(a.A)lf("iv-card-sign-in-button",c).click();else{var d=(0,window.parseInt)(sC(b.target,"pollChoiceIndex"),10);if(null==a.g)a.choices[d].count++,a.g=d;else if(a.g!=d){var e=a.choices[a.g];e.count=Math.max(e.count-1,0);a.choices[d].count++;a.g=d}else e=a.choices[a.g],e.count=Math.max(e.count-1,0),a.g=null;wC(a,c);Tj(this.b.videoData.yf,{dd:{action_poll_vote:1},Hb:{poll_id:a.id,index:d,session_token:a.C}});c={};c["link-id"]=d;ZB(this.b.logger,
a.Qa,void 0,c,a.b.click,5)}};
h.YA=function(a){var b=q("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=qa(b,a.F,a.o));GC(this,a,!0,b)};
h.VC=function(a){var b=q("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=qa(b,a.F,a.o,a.G));GC(this,a,!1,b)};y(IC,nC);y(JC,nC);y(KC,nC);y(MC,pC);y(NC,pC);y(OC,nC);y(PC,nC);y(RC,eC);h=RC.prototype;h.isAvailable=function(){var a;if(a=!!this.A.length)(a=this.W.xa())?(a=Zq(a),a=177<a.width&&177<a.height):a=!1;return a};
h.ww=function(){this.P&&this.kh()};
h.$w=function(){(this.P=this.B)&&this.ti()};
h.kh=function(a,b){this.B||(QC(this,"drawer_peek")&&he(this.o,"ytp-drawer-peek"),this.J.show(),this.G=new be(function(){J(this.context.g.xa(),"ytp-iv-drawer-open")},0,this),this.G.start(),this.B=!0,this.H=D(),bC(this.context.logger,7,void 0,b&&b.Ra?b.Ra.Qa:void 0),E(this.A,function(a){a.Yi||(a.Yi=!0,YB(this.context.logger,a.Ra.Qa,a.Ra.b.Np))},this),DF(this.W),a&&(this.C=new be(function(){var a;
a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(e){}a=null}this.I=a;this.ba.focus()},330,this),this.C.start()))};
h.ti=function(){this.B&&(QC(this,"drawer_peek")?J(this.o,"ytp-drawer-peek"):this.J.da(),he(this.context.g.xa(),"ytp-iv-drawer-open"),this.B=!1,bC(this.context.logger,10),DF(this.W),this.C&&this.C.stop(),this.C=new be(function(){this.I&&(this.I.focus(),this.I=null)},330,this),this.C.start())};
h.aB=function(a){if(ee(this.o,"ytp-drawer-peek")){var b=lf("iv-drawer-close-button",this.o);Jf(b,km(a))||this.kh()}};
h.ji=function(){var a=this.isAvailable();S(this.fa(),a);K(this.context.g.xa(),"ytp-iv-drawer-enabled",a);a&&(this.K||(bC(this.context.logger,11),this.K=!0),E(this.A,function(a){a.cq||(a.cq=!0,cC(this.context.logger,11,a.Ra.Qa))},this));
DF(this.W)};
h.destroy=function(){KL(this.W,!1);this.W.xa().removeChild(this.o);Yi(this.D);gm(this.X);this.G&&this.G.dispose();this.C&&this.C.dispose();RC.L.destroy.call(this)};
var SC={collaborator:oC,donation:qC,episode:PC,navigation:IC,movie:PC,playlist:JC,poll:KC,productListing:MC,simple:pC,tip:NC,video:OC};h=RC.prototype;
h.fG=function(a){this.Bk.start();a.preventDefault();a=a||window.event;var b=0;"MozMousePixelScroll"==a.type?b=0==(a.axis==a.HORIZONTAL_AXIS)?a.detail:0:window.opera?b=a.detail:b=0==a.wheelDelta%120?"WebkitTransform"in window.document.documentElement.style?window.chrome&&0==window.navigator.platform.indexOf("Mac")?a.wheelDeltaY/-30:a.wheelDeltaY/-1.2:a.wheelDelta/-1.6:a.wheelDeltaY/-3;if(a=b)this.Oc.scrollTop+=a};
h.Fm=function(a,b){if(!ee(this.W.xa(),"ytp-cards-teaser-shown")){this.b!=a&&(this.b=a,XC(this));if(br(this.fa())){var c;(c=b)||(2==this.context.g.getPresentingPlayerType()?c=1==((0,window.isNaN)(void 0)?this.context.g.getAdState():void 0):(c=(0,window.isNaN)(void 0)?this.context.g.getPlayerState():void 0,c=1==c||0==c&&0===this.context.g.getCurrentTime()));if(c&&a.Ra.teaserDurationMs){c=null;if("video"==a.Ra.type&&QC(this,"hover_card_for_video_card_teaser")){var d=a.Ra,e=d.url?kB(d.url,a.Ra.id,this.context.videoData.videoId,
this.context.A):null,f=e?lB(e,d.url.target):null;e&&f&&(c={AO:d.id,title:d.title,vr:e,target:"current"==f?"_top":void 0,gj:d.url.gj,imageUrl:d.A,videoDuration:d.videoDuration,Nd:d.Nd,Jk:QC(this,"combined_teaser_link")})}KL(this.W,!0,{teaserText:a.Ra.teaserText,durationMs:b?2E3:a.Ra.teaserDurationMs,Ji:c,Iz:QC(this,"merge_button_with_teaser"),Gw:b&&QC(this,"hover_card_on_button_hover")})}}this.M.isActive()||((!this.B||!this.Bk.isActive()&&this.Ui)&&bD(this,a),this.M.start(910+a.Ra.teaserDurationMs))}};
h.iE=function(){this.b&&this.Fm(this.b,!0)};
h.aE=function(a){this.B||(this.b=a,XC(this),bD(this,a),this.kh(!1,a))};
h.Rw=function(){this.B&&(bC(this.context.logger,4,cD(this).b.close),this.ti())};
h.fx=function(){K(this.o,"iv-drawer-scrolled",0<this.Oc.scrollTop)};
h.Hz=function(){var a=cD(this);cC(this.context.logger,8,a.Qa,a.b.nE)};
h.Gz=function(){var a=this.b;cC(this.context.logger,13,a.Ra.Qa,void 0);var b=QC(this,"hover_card_for_video_card_teaser");"video"==a.Ra.type&&b&&(a=this.b,a.Yi||(a.Yi=!0,YB(this.context.logger,a.Ra.Qa,a.Ra.b.Np)))};
h.Ez=function(){var a=this.b.Ra;ZB(this.context.logger,a.Qa,void 0,void 0,a.b.click,5)};
h.Fz=function(a){var b=cD(this);this.b?a?(a=this.context.logger,cC(a,9,b.Qa,b.b.Mm)):(a=this.context.logger,cC(a,12,b.Qa,b.b.Mm)):(a=this.context.logger,bC(a,12,b.b.Mm));a.W.Dg(4,void 0)};var eD=/#(.)(.)(.)/,dD=/^#(?:[0-9a-f]{3}){1,2}$/i;y(hD,wA);hD.prototype.o=r;hD.prototype.pm=function(){this.o();hD.L.pm.call(this)};
hD.prototype.hh=function(){this.o();hD.L.hh.call(this)};
hD.prototype.bj=function(){this.o();hD.L.bj.call(this)};
y(iD,hD);iD.prototype.o=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};y(jD,eC);jD.prototype.rj=function(){jD.L.rj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&fC(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.da)};y(kD,jD);kD.prototype.G=function(a,b,c,d){this.g.stop();if(!this.A){var e=Zq(a);Wq(a,e.width);Wq(b,e.width);Mq(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.A=!0;S(a,!0);this.B=new be(function(){J(this.fa(),"iv-branding-active")},0,this);
this.B.start()}};
kD.prototype.F=function(a,b){he(this.fa(),"iv-branding-active");this.C=new be(function(){S(a,!1);Wq(b,0)},250);
this.C.start();this.A=!1};
kD.prototype.show=function(){if(!this.isActive){kD.L.show.call(this);if(!this.D){J(this.fa(),"iv-branding");var a=this.annotation.data;this.o=a.image_width;this.b=M("img",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});S(this.b,!1);var b=M("div","branding-img-container",this.b);this.fa().appendChild(b);var c=M("div","iv-branding-context-name");Lf(c,a.channel_name);var d=M("div","iv-branding-context-subscribe");this.annotation.o?sh(d,this.annotation.o):
a.num_subscribers&&Lf(d,a.num_subscribers);b=M("div","iv-branding-context-subscribe-caret");c=M("div","branding-context-container-inner",b,c,d);S(c,!1);d=M("div","branding-context-container-outer",c);Gq(d,"right",this.o+"px");this.fa().appendChild(d);this.rg(this.b,WD(this.annotation),this.annotation.id,this.annotation.Qa);this.g=new be(qa(this.F,c,d),500,this);this.context.b.N(this.fa(),"mouseover",w(this.G,this,c,d,b,a.image_height));this.context.b.N(this.fa(),"mouseout",w(this.g.start,this.g));
this.D=!0}YB(this.context.logger,this.annotation.Qa);S(this.fa(),!0);this.isActive=!0;var a=this.b,e,b=$q(a).width,c=ha(void 0)?void 0:b;e=e||0;Mq(a,c);e=new iD(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,zA);this.context.b.N(e,"begin",qa(S,a,!0));e.play()}};
kD.prototype.da=function(){this.isActive&&(S(this.fa(),!1),this.isActive=!1)};var nD={CLOSE:"close",ZL:"openUrl",gw:"subscribe"},oD={ek:"click",CLOSE:"close",HIDDEN:"hidden",PM:"rollOut",Wv:"rollOver",Zv:"shown"};var yD={rO:"xx",sO:"xy",vO:"yx",wO:"yy"};y(DD,xD);var GD={Eu:"anchored",EM:"rect",WM:"shapeless"};var LD={CLOSED:"closed",hM:"playerControlShow",Wv:"rollOver",Zv:"shown"};var SD={Eu:"anchored",Hu:"branding",gJ:"channel",xJ:"cta",vK:"highlightText",SK:"label",jM:"playlist",tM:"popup",gN:"speech",gw:"subscribe",yN:"title",VIDEO:"video",jO:"vote",lO:"website"},RD={Hu:"branding",XI:"card",UJ:"drawer",uK:"highlight",IMAGE:"image",jL:"marker",yM:"promotion",TEXT:"text",oO:"widget"},TD={eO:"video_relative",iM:"player_relative"};QD.prototype.showLinkIcon=function(){return XD(this,function(a){return null!=a.url&&a.url.showLinkIcon})};y(eE,jD);h=eE.prototype;h.show=function(){this.isActive||(eE.L.show.call(this),this.F||(fE(this),this.F=!0),S(this.fa(),!0),this.annotation&&this.annotation.Qa&&YB(this.context.logger,this.annotation.Qa),he(this.fa(),"iv-promo-inactive"),this.fa().removeAttribute("aria-hidden"),this.isActive=!0,this.b&&(ae(this.b),this.b=null),hE(this),iE(this,this.C))};
h.da=function(){this.isActive&&(J(this.fa(),"iv-promo-inactive"),this.isActive=!1,this.fa().setAttribute("aria-hidden",!0))};
h.Xi=function(a,b,c,d,e,f){return this.o?!1:eE.L.Xi.call(this,a,b,c,d,e,f)};
h.wl=function(a,b){b.stopPropagation();hE(this);iE(this,a);this.hc.focus()};
h.Qx=function(a){this.D=!0;this.wl(500,a)};
h.Px=function(){this.D=!1;gE(this)};
h.gG=function(a){a.stopPropagation();this.da();$B(this.context.logger,this.annotation.Qa)};
h.destroy=function(){this.B.dispose();eE.L.destroy.call(this)};kE.prototype.o=function(a,b,c,d){this.b[a]=b?!c:c;a=Tb(this.b,function(a){return a});
this.g!=a&&(this.g=a,this.A.R(this.B,a,d))};h=mE.prototype;h.da=function(){this.isVisible=!1;this.b&&(nE(this),this.b.da())};
h.show=function(){this.isVisible=!0;this.b&&(this.b.show(),this.A.subscribe("resize",this.tt,this),this.A.subscribe("onVideoAreaChange",this.mr,this))};
h.destroy=function(){if(this.b){nE(this);var a=this.b;lA(a.D);a.km.dispose();a.G.dispose();a.g&&Bf(a.g);a.A&&a.A.fa()&&Bf(a.A.fa())}oE(this)};
h.mr=function(){tF(this.b)};
h.tt=function(){tF(this.b)};pE.prototype.clone=function(){return new pE(this.start,this.end)};y(rE,qE);sE.prototype.kd=null;sE.prototype.Zb=null;sE.prototype.xh=!0;var vE=[2,2,6,6,0];h=sE.prototype;h.clear=function(){this.na.length=0;this.pa.length=0;this.Ac.length=0;delete this.kd;delete this.Zb;delete this.xh;return this};
h.xb=function(a){var b=db(this.na);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.na.push(1),this.pa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Ac.push(c,d)}this.pa[this.pa.length-1]+=b/2;this.Zb=[c,d]};
h.close=function(){var a=db(this.na);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.na.push(4),this.pa.push(1),this.Zb=this.kd);return this};
h.clone=function(){var a=new this.constructor;a.na=this.na.concat();a.pa=this.pa.concat();a.Ac=this.Ac.concat();a.kd=this.kd&&this.kd.concat();a.Zb=this.Zb&&this.Zb.concat();a.xh=this.xh;return a};
h.transform=function(a){if(!this.xh)throw Error("Non-simple path");a.transform(this.Ac,0,this.Ac,0,this.Ac.length/2);this.kd&&a.transform(this.kd,0,this.kd,0,1);this.Zb&&this.kd!=this.Zb&&a.transform(this.Zb,0,this.Zb,0,1);return this};
h.isEmpty=function(){return 0==this.na.length};y(xE,qE);yE.prototype.Ta=function(){return this.A};ca(zE);zE.prototype.b=0;y(AE,I);h=AE.prototype;h.Hy=zE.getInstance();h.getId=function(){return this.oa||(this.oa=":"+(this.Hy.b++).toString(36))};
h.fa=function(){return this.b};
h.qg=function(a){if(this.B&&this.B!=a)throw Error("Method not supported");AE.L.qg.call(this,a)};
h.Hi=function(){this.b=this.G.createElement("DIV")};
h.Gf=function(){this.Wc=!0;BE(this,function(a){!a.Wc&&a.fa()&&a.Gf()})};
h.Sg=function(){BE(this,function(a){a.Wc&&a.Sg()});
this.C&&Gm(this.C);this.Wc=!1};
h.O=function(){this.Wc&&this.Sg();this.C&&(this.C.dispose(),delete this.C);BE(this,function(a){a.dispose()});
this.b&&Bf(this.b);this.B=this.b=this.D=this.I=null;AE.L.O.call(this)};
h.ac=function(){return this.b};
h.removeChild=function(a,b){if(a){var c=v(a)?a:a.getId();a=this.D&&c?fc(this.D,c)||null:null;if(c&&a){ec(this.D,c);qb(this.I,a);b&&(a.Sg(),a.b&&Bf(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.B=null;AE.L.qg.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};y(CE,AE);CE.prototype.A=null;CE.prototype.Mf=function(){return this.Wc?Zq(this.fa()):ha(this.width)&&ha(this.height)?new bf(this.width,this.height):null};
CE.prototype.resume=function(){};y(DE,I);h=DE.prototype;h.ql=null;h.Xg=null;h.fa=function(){return this.Xg};
h.addEventListener=function(a,b,c,d){Qc(this.Xg,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){ad(this.Xg,a,b,c,d)};
h.O=function(){DE.L.O.call(this);var a=this.Xg;if(a)if(Gc(a))a.Pc&&Oc(a.Pc);else if(a=Tc(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)bd(d[e])&&++b}};y(HE,DE);HE.prototype.fill=null;y(IE,DE);y(JE,DE);y(KE,HE);y(LE,IE);LE.prototype.clear=function(){zf(this.fa())};
LE.prototype.setSize=function(a,b){PE(this.fa(),{width:a,height:b})};
y(ME,KE);y(NE,JE);NE.prototype.setPosition=function(a,b){PE(this.fa(),{x:a,y:b})};
NE.prototype.setSize=function(a,b){PE(this.fa(),{width:a,height:b})};var SE;y(OE,CE);var baa=0;h=OE.prototype;h.Hi=function(){var a=FE(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=FE(this,"g");this.F=FE(this,"defs");this.A=new LE(b,this);a.appendChild(this.F);a.appendChild(b);this.b=a;this.o&&(this.fa().setAttribute("preserveAspectRatio","none"),this.K?this.yj():this.fa().setAttribute("viewBox","0 0 "+(this.o?this.o+" "+this.J:"")))};
h.yj=function(){if(this.Wc){var a=this.Mf();if(0==a.width)this.fa().style.visibility="hidden";else{this.fa().style.visibility="";var b=a.width/this.o,a=a.height/this.J;this.A.fa().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
h.setSize=function(a,b){Xq(this.fa(),a,b)};
h.Mf=function(){if(!Dq)return this.Wc?Zq(this.fa()):OE.L.Mf.call(this);var a=this.width,b=this.height,c=v(a)&&-1!=a.indexOf("%"),d=v(b)&&-1!=b.indexOf("%");if(!this.Wc&&(c||d))return null;var e,f;c&&(e=this.fa().parentNode,f=Zq(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.fa().parentNode,f=f||Zq(e),b=(0,window.parseFloat)(b)*f.height/100);return new bf(a,b)};
h.clear=function(){this.A.clear();zf(this.F);this.g={}};
h.Gf=function(){var a=this.Mf();OE.L.Gf.call(this);a||this.V("resize");if(this.K){var a=this.width,b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.H.N(TE(),"tick",this.yj);this.yj()}};
h.Sg=function(){OE.L.Sg.call(this);this.K&&this.H.qa(TE(),"tick",this.yj)};
h.O=function(){delete this.g;delete this.F;delete this.A;this.H.dispose();delete this.H;OE.L.O.call(this)};UE.prototype.fa=function(){return this.B};
UE.prototype.g=function(){};var YE={bevel:1,dropshadow:2};y(eF,UE);
eF.prototype.g=function(a,b){var c=cE(a);if(c){var d=BD(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=bE(a))&&c.b?c.b:null)&&c.length?c[0]:null){var f=jg(AD(b,wD(e,new fg(e.F,e.G,e.B,e.A),b.b))),k=d.clone(),c=new fg(f.x,f.y,1,1),m=Math.max(k.left+k.width,c.left+c.width),l=Math.max(k.top+k.height,c.top+c.height);k.left=Math.min(k.left,c.left);k.top=Math.min(k.top,c.top);k.width=m-k.left;k.height=l-k.top;var c=a.b,k=cF(k,c.effects),m=VE(this,k.width,k.height),l=bF(c,k.width,k.height,this.b),
d=new fg(d.left-k.left,d.top-k.top,d.width,d.height),p=new $e(f.x-k.left,f.y-k.top);this.o=17*vD(b.b,e.g,e.b?e.b:"xy");e=c.b;var f=a.b,t=this.b&&YD(a),u=t?f.o+1:f.o,t=(f=u?new yE(u,t?f.B:f.C):null)?f.Ta()/2:0,u=iaa(d,p),x=this.C(d,e,p,u),B=p.x,p=p.y,C=d.width,H=d.height,L=d.left,d=d.top,R=new sE;tE(R,L+e+t,d+t);"t"==u&&(R.xb(x.start,d+t),R.xb(B,p),R.xb(x.end,d+t));R.xb(L+C-e-t,d+t);uE(R,e,e,-90);"r"==u&&(R.xb(L+C-t,x.start),R.xb(B,p),R.xb(L+C-t,x.end));R.xb(L+C-t,d+H-e-t);uE(R,e,e,0);"b"==u&&(R.xb(x.end,
d+H-t),R.xb(B,p),R.xb(x.start,d+H-t));R.xb(L+e+t,d+H-t);uE(R,e,e,90);"l"==u&&(R.xb(L+t,x.end),R.xb(B,p),R.xb(L+t,x.start));R.xb(L+t,d+e+t);uE(R,e,e,180);R.close();RE(m,R,f,l);if(l=this.fa())J(l,"annotation-shape"),J(l,"annotation-speech-shape"),Mq(l,k.left,k.top),Xq(l,k.width,k.height),dF(m,l,c.effects)}}}};
eF.prototype.C=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=Ve(c-a/2,d+b,d+e-a-b);return new pE(c,c+a)}
return"t"==d||"b"==d?e(this.o,c.x,a.left,a.width):"l"==d||"r"==d?e(this.o,c.y,a.top,a.height):new pE(0,0)};y(fF,UE);fF.prototype.g=function(a,b){var c=cE(a);if(c){var d=BD(c,b);if(!(0>=d.width||0>=d.height)){var c=a.b,e=cF(d,c.effects),f=VE(this,e.width,e.height);$E(f,new fg(0,0,d.width,d.height),c.b,new yE(!c.A&&this.b?1:c.A,c.bgColor),new xE("#000",0));d=this.fa();J(d,"annotation-shape");ar(d,aF(this.b,c.g));Mq(d,e.left,e.top);Xq(d,e.width,e.height)}}};y(gF,UE);
gF.prototype.g=function(a,b){var c=BD(cE(a),b);if(!(0>=c.width||0>=c.height)){var d=hF(c,this.D);d.left+=c.left;d.top+=c.top;var e=a.b,f=cF(d,e.effects),k=VE(this,f.width,f.height),m=new xE("#000",0),l=hF(d,this.o),d=a.A?a.A.b?a.A.b:a.A.videoId?window.location.protocol+"//i1.ytimg.com/vi/"+(0,window.escape)(a.A.videoId)+"/hqdefault.jpg":"":"",l=FE(k,"image",{x:l.left,y:l.top,width:l.width,height:l.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});l.setAttributeNS("http://www.w3.org/1999/xlink","href",
d);var p=new NE(l,k);k.A.fa().appendChild(p.fa());if(d=this.fa()){ar(d,aF(this.b,e.g));if(this.C&&0<e.A){var l=new yE(e.A,e.bgColor),c=new fg(0,0,c.width,c.height),t=l.Ta()/2+1;var t=ZE(c,e.b,t),u=EE(k,"mask");if(u)t=u;else{var u=window.document.createElementNS("http://www.w3.org/2000/svg","mask"),x=window.document.createElementNS("http://www.w3.org/2000/svg","path");x.setAttribute("d",QE(t));x.setAttribute("fill","#FFF");u.appendChild(x);t=GE(k,"mask",u)}p=p.fa();t&&p.setAttribute("mask","url(#"+
t+")");$E(k,c,e.b,l,m)}J(d,"annotation-shape");J(d,"annotation-image-shape");Mq(d,f.left,f.top);Xq(d,f.width,f.height);dF(k,d,e.effects)}}};y(iF,UE);iF.prototype.g=function(a,b){var c=cE(a);if(c){var d=BD(c,b);if(!(0>=d.width||0>=d.height)){var c=a.b,e=cF(d,c.effects),f=VE(this,e.width,e.height),k=new fg(0,0,d.width,d.height),d=bF(c,d.width,d.height,this.b),m=c.b,l=a.b,p=this.b&&YD(a),t=p?l.o+1:l.o;$E(f,k,m,t?new yE(t,p?l.B:l.C):null,d);if(k=this.fa())J(k,"annotation-shape"),J(k,"annotation-popup-shape"),Mq(k,e.left,e.top),Xq(k,e.width,e.height),dF(f,k,c.effects)}}};y(jF,eF);jF.prototype.C=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new pE(c,c+a)}
return"t"==d||"b"==d?e(this.o,c.x,a.left,a.width):"l"==d||"r"==d?e(this.o,c.y,a.top,a.height):new pE(0,0)};h=lF.prototype;h.ut=function(){this.K||(this.o&&S(this.o,!0),this.B&&S(this.B,!0),this.A&&(this.A.b=!0,ar(this.g,uF(this)?1:0),this.A.g(this.b,nF(this))),this.G.isActive()&&this.G.stop(),this.K=!0,this.H=jA(this.D,pF(this.C),function(a){this.km.stop();this.se(a)}))};
h.se=function(){this.K&&(this.M?this.G.start():this.rp(),this.A&&(this.A.b=!1,ar(this.g,uF(this)?1:0),this.A.g(this.b,nF(this))),this.K=!1,this.H&&(this.D.qa(this.H),this.H=null))};
h.rp=function(){this.o&&S(this.o,!1);this.B&&S(this.B,!1)};
h.eG=function(a){this.ba=a;this.km.Of()};
h.Ox=function(){var a=this.ba,b=new $e(a.clientX,a.clientY),c=Qq(this.C.xa()),d=vF(c,this.J),c=(this.B&&br(this.B)||this.o&&br(this.o))&&vF(c,this.M);d&&d.contains(b)||c&&c.contains(b)?this.ut():this.se(a)};
h.show=function(){var a=this.b.b,a=(a&&0==a.g||"title"==this.b.style||"highlightText"==this.b.style?!1:!0)&&!this.A,b=!this.g,c="widget"==this.b.type;if(a){var d=nF(this),e=null;"highlight"==this.b.type||"label"==this.b.style?e=new fF:"popup"==this.b.style?e=new iF:"anchored"==this.b.style?e=new eF:"speech"==this.b.style?e=new jF:"image"==this.b.type&&("video"==this.b.style?e=new gF(Wpa,G5,!0):"channel"==this.b.style&&(e=new gF));e&&(e.g(this.b,d),this.A=e,d=e.fa())&&(S(d,!1),J(d,"annotation-type-"+
this.b.type.toLowerCase()),this.U(d))}if(b){d=["annotation"];"highlightText"!=this.b.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.b.type.toLowerCase());this.g=M("div",d);S(this.g,!1);this.b.C&&(this.F=M("div","inner-text"),"label"==this.b.style&&(J(this.F,"label-text"),this.F.style.backgroundColor=this.b.b.bgColor),Lf(this.F,this.b.C),this.g.appendChild(this.F));Ei(this.g,"annotation_id",this.b.id);this.U(this.g);jaa(this,this.g);if(YD(this.b)&&"image"!=this.b.type&&this.b.showLinkIcon()){if(e=
WD(this.b))d=this.g,e=new N(eB(e)),d.title=e.g+e.A;this.B=M("span","annotation-link-icon");S(this.B,!1);this.g.appendChild(this.B)}kaa(this);YD(this.b)||(this.g.style.cursor="default")}c&&("subscribe"==this.b.style?lf("yt-uix-subscription-button",this.g)||sh(this.g,this.b.o):this.b.o&&sh(this.g,this.b.o));if(a||b){a:{a=this.b.g.b;if(a.length&&(a=ID(a[0]))){a=a.H;break a}a=0}this.g&&(this.g.style.zIndex=a);this.A&&this.A.fa()&&(this.A.fa().style.zIndex=a)}S(this.g,!0);ar(this.g,uF(this)?1:0);tF(this);
this.A&&this.A.fa()&&S(this.A.fa(),!0)};
h.da=function(){this.g&&S(this.g,!1);this.A&&this.A.fa()&&S(this.A.fa(),!1);this.I&&(this.D.qa(this.I),this.I=null)};y(wF,gq);wF.C="AnnotationsModule";var laa={HI:"video-annotations",Tu:"video-custom-annotations",wv:"video-legacy-annotations"};wF.o=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
wF.B=function(a){return"card"==a.type||"drawer"==a.type};
wF.A=function(a){return wF.Va(a)?new wF(a):null};
wF.Va=function(a){var b=T(a);return"leanback"==b.ua?!1:!b.H.isEmpty()||wF.b(b.b)?!0:Sx(a.getVideoData(),"iv3_module")};
wF.g=function(){var a=M("div",["annotation","annotation-type-custom"]);S(a,!1);return a};
wF.b=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
h=wF.prototype;h.Td=function(a,b){if(!wF.b(T(this.b).b))return null;switch(a){case "loadCustomAnnotationsXml":var c=fA(b);c&&AF(this,c);return!0;case "removeCustomAnnotationById":return b&&this.g&&(UC(this.g,b),DF(this.b)),!0}return null};
h.tf=function(){return wF.b(T(this.b).b)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
h.Va=function(){return wF.Va(this.b)};
h.create=function(){wF.L.create.call(this);this.B.S(this.b,"onVideoAreaChange",w(this.R,this,"onVideoAreaChange"));this.B.S(this.b,"onHideControls",w(this.R,this,"onHideControls"));this.B.S(this.b,"onShowControls",w(this.R,this,"onShowControls"));this.B.S(this.b,"resize",w(this.R,this,"resize"));this.B.S(this.b,"presentingplayerstatechange",w(this.R,this,"presentingplayerstatechange"));this.C=new Q(["div",["ytp-player-content","ytp-iv-player-content"]]);mr(this.b,this.C.element,4);this.o=new Q(["div",
["ytp-iv-video-content"]]);this.o.element.appendChild(M("DIV","video-annotations",this.P,this.U));var a=T(this.b),b=this.b.getVideoData();1!=(a.Xd||b.ra)&&null===a.H.get(b.videoId)||this.load()};
h.destroy=function(){qr(this.B);he(this.b.xa(),"ytp-iv-drawer-open");vq(this.C);this.C.dispose();this.o.dispose();wF.L.destroy.call(this)};
h.Xq=function(){if(this.o){var a=oF(pF(this.b),!0);Xq(this.o.element,a.width,a.height);Mq(this.o.element,a.left,a.top)}};
h.nC=function(a){U(a.state,2)&&(IF(this)&&JF(this)&&2!=this.b.getPresentingPlayerType()&&KF(this,!1),LF(this,!1))};
h.load=function(){wF.L.load.call(this);this.I++;var a=this.b.getVideoData(),b=a.videoId,c=w(this.gB,this,b,this.I);lv()&&(c=BF(this,c));c={format:"XML",gc:c,dd:{}};a.isPharma&&(c.dd.pharma="1");c.method="POST";c.withCredentials=!0;var d=T(this.b);"gaming"==d.b&&(c.dd.gaming="1");(b=d.H.remove(b))&&CF(c,b);a.yf&&(b=b&&b.Ye,a.no&&!b||Sj(a.yf,c));mr(this.b,this.o.element,4);this.Xq()};
h.unload=function(){aC(this.G,{"iv-event":1});jq(this);Pb(this.A,function(a){a.destroy()});
Pb(this.J,function(a){a.destroy()});
this.H=null;this.g&&(this.g.destroy(),this.g=null,DF(this.b));this.A={};this.J={};wF.L.unload.call(this);vq(this.o)};
h.gB=function(a,b,c){if(!yF(this,b,a)&&(a=Nj(c)&&c.responseXML?c.responseXML:null)){AF(this,a);J(this.b.xa(),this.Ea+"-loaded");a=[];for(var d in this.A){b=this.A[d].annotation;if(b.g)if(c=b.g,c.b.length)if(c=c.b[0].g||c.b[0].b||c.b[0].A,!c||2>c.length)c=null;else{var e=c.length-1;c=0>=c[0].t&&0>=c[e].t?null:{start:c[0].t,end:c[e].t}}else c=null;else c=null;if(e=c)if(c=1E3*e.start,e=1E3*e.end,0==c&&(c++,e++),!(e<c)){var f={id:d};"marker"==b.type&&(f.style="ytp-chapter-marker",f.tooltip=b.C,f.visible=
!0);b=new dq(c,e,f);a.push(b)}}this.ob(a)}};
h.iD=function(a){this.D&&a==this.b.getVideoData().videoId&&(this.loaded?paa(this):this.load())};
h.dc=function(a){wF.L.dc.call(this,a);a=a.getId();var b=this.A[a];b&&!b.o&&(b=b.annotation,EF(this,a),YB(this.G,b.Qa))};
h.tc=function(a){wF.L.tc.call(this,a);FF(this,a.getId())};
h.qp=function(a){a&&(a.da(),HF(this,"shown",!1,a.annotation.id),this.xi(a.annotation,"hidden"))};
h.Zr=function(a){a&&(a.show(),HF(this,"shown",!0,a.annotation.id),this.xi(a.annotation,"shown"))};
h.eD=function(a,b,c){var d=this.A[a];if(d&&b.value!=c){b.value=c;var e=!1;$D(d.annotation,function(a){e|=a.value});
raa(this,a,b,e)}};
h.cA=function(a){if(a&&a.id){var b=WD(a);if(b){var c=eB(b);if(c){var d=w(this.xi,this,a,"click"),e=this.b.getVideoData();if("new"==lB(c,b.target)||GF(this,b,e.videoId))d(),d=null;ZB(this.G,a.Qa,d)}}}};
h.xi=function(a,b){ZD(a,function(c){if(c.b==b&&"openUrl"==c.type){var d=this.b.getVideoData(),e;if(!(e=!GF(this,c.url,d.videoId))){e=iB(c.url);var f=hB(c.url);if(e){if(d.videoId==e)this.R("command_seek",f||0);else{var k=zF(this).g;L9(k.app,e,void 0,void 0,void 0);f&&ML(zF(this).g)&&zF(this).g.seekTo(f)}e=!0}else e=!1;e=!e}e&&(d=kB(c.url,a.id,d.videoId,T(this.b)))&&(this.pauseVideo(),e=lB(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=Hj(c),f=null,"ei"in e&&(f={ei:e.ei},c=Wg(c,"ei")),sy(c,f),ty(c,
d))}},this)};
h.sB=function(){HF(this,"playerControlShow",!1)};
h.KC=function(){HF(this,"playerControlShow",!0)};
h.VF=function(a){HF(this,"rollOver",!0,a.id)};
h.se=function(a){HF(this,"rollOver",!1,a.id)};
h.DA=function(a){if(a||a.id)this.A[a.id].o=!0,FF(this,a.id),a&&($B(this.G,a.Qa),this.xi(a,"close")),HF(this,"closed",!0,a.id)};
h.O=function(){for(var a=this.M,b=0,c=a.length;b<c;b++)nv(a[b]);this.M.length=0;wF.L.O.call(this)};var oG=/^#(?:[0-9a-f]{3}){1,2}$/i,SG="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),RG=["none","raised","depressed","uniform","dropShadow"],taa=["left","right","center"],RF={windowColor:"#080808",zg:0,textAlign:2,di:7,Wi:50,xj:100,Ba:{background:"#080808",Nc:.75,Ed:0,color:"#fff",fontFamily:4,Hf:0,xe:1,offset:1}};var x$=[{option:"#fff",message:"YTP_COLOR_WHITE"},{option:"#ff0",message:"YTP_COLOR_YELLOW"},{option:"#0f0",message:"YTP_COLOR_GREEN"},{option:"#0ff",message:"YTP_COLOR_CYAN"},{option:"#00f",message:"YTP_COLOR_BLUE"},{option:"#f0f",message:"YTP_COLOR_MAGENTA"},{option:"#f00",message:"YTP_COLOR_RED"},{option:"#080808",message:"YTP_COLOR_BLACK"}],y$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],K6=[{option:"fontFamily",message:"YTP_FONT_FAMILY",
options:[{option:1,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:2,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:3,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:4,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:5,message:"YTP_FONT_FAMILY_CASUAL"},{option:6,message:"YTP_FONT_FAMILY_CURSIVE"},{option:7,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:x$},{option:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{option:-2,text:"50%"},{option:-1,text:"75%"},{option:0,
text:"100%"},{option:1,text:"150%"},{option:2,text:"200%"},{option:3,text:"300%"},{option:4,text:"400%"}]},{option:"background",message:"YTP_BACKGROUND_COLOR",options:x$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:y$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:x$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:y$},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{option:0,message:"YTP_EDGE_STYLE_NONE"},{option:4,message:"YTP_EDGE_STYLE_DROP_SHADOW"},
{option:1,message:"YTP_EDGE_STYLE_RAISED"},{option:2,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:3,message:"YTP_EDGE_STYLE_OUTLINE"}]},{option:"textOpacity",message:"YTP_FONT_OPACITY",options:[{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}]}];y(NF,Q);h=NF.prototype;h.Kb=function(){return this.type};
h.uh=function(a,b,c){var d=this.o.di,e=!1,f=!1;switch(d){case 0:case 1:case 2:e=!0;break;case 6:case 7:case 8:f=!0}K(this.element,"ytp-caption-window-top",e);K(this.element,"ytp-caption-window-bottom",f);f=this.Wo();e=this.Vo();b*=.96;f>b&&(f=b);Gq(this.element,{top:0,left:0,right:"",bottom:"",width:f?f+"px":"96%",height:e?e+"px":"96%",margin:"",transform:""});this.yk(a,c);a={transform:"",top:"",left:""};f||(a.width="");e||(a.height="");c=.96*this.o.Wi+2;switch(d){case 0:case 3:case 6:a.left=c+"%";
break;case 1:case 4:case 7:a.left=c+"%";c=this.D.offsetWidth;f||c?(f=f||c+1,a.width=f+"px",a["margin-left"]=f/-2+"px"):a.transform+=" translateX(-50%)";break;case 2:case 5:case 8:a.right=100-c+"%"}f=.96*this.o.xj+2;switch(d){case 0:case 1:case 2:a.top=f+"%";break;case 3:case 4:case 5:a.top=f+"%";(d=e||this.D.offsetHeight)?(a.height=d+"px",a["margin-top"]=d/-2+"px"):a.transform+=" translateY(-50%)";break;case 6:case 7:case 8:a.bottom=100-f+"%"}Gq(this.element,a)};
h.yk=function(a,b){for(var c=0;c<a.length&&a[c]==this.B[c];c++);if(this.J||this.B.length>c)c=0,QF(this);for(;c<a.length;c++){var d=a[c],e={};ta(e,this.o.Ba);ta(e,d.g);b&&ta(e,b);UF(this,d,e)}};
h.Wo=function(){return 0};
h.Vo=function(){return 0};
h.toString=function(){return NF.L.toString.call(this)};y(XF,F);h=XF.prototype;h.Uo=function(a){var b=this.b.g,c=VF(this.b,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
h.de=function(){return null};
h.seek=function(){};
h.Om=function(){};
h.O=function(){XF.L.O.call(this);this.Om()};y(YF,XF);h=YF.prototype;h.hm=function(a,b){this.isDisposed();var c=this.Wg(a),d=w(function(c){this.A=null;b(c.responseText,a)},this);
this.A&&this.A.abort();this.A=Sj(c,{format:"RAW",ab:d,withCredentials:!0});this.g&&this.g.Bi!=a&&(this.g.Rk=a)};
h.im=function(a,b,c,d){this.o=c;if(this.g=d||null)for(b=0;b<this.g.captionTracks.length;b++)WF(this.b,this.g.captionTracks[b]);a()};
h.Wg=function(a){var b=a.G,c={};if(this.o||a.o)c.fmt=this.o||"srv"+a.o;a.b&&(c.tlang=a.b.languageCode);return Jj(b,c)};
h.de=function(){return this.g?this.g.Bi:null};
h.Uo=function(){return this.g?this.g.Rk:null};
h.O=function(){this.A&&this.A.abort();YF.L.O.call(this)};$F.prototype.contains=function(a){a=Ab(this.na,a);return 0<=a||0>a&&1==(-a-1)%2};
$F.prototype.length=function(){return this.na.length/2};y(aG,F);aG.prototype.O=function(){Oi(this.g);this.g=window.NaN;this.A=!0;this.o&&this.o.abort()};
aG.prototype.resume=function(){this.A=!1;Oi(this.g);this.seek(this.G.getCurrentTime());zaa(this)};
aG.prototype.seek=function(a){this.b=db(this.F.Vg(a).b)};
aG.prototype.H=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.A||null===this.C||this.C(a.responseText,1E3*this.B.b[0].startTime);this.o=this.B=null};y(dG,XF);h=dG.prototype;h.hm=function(a,b){yaa(this.g,function(c,d){b(c,a,d)});
this.g.F=this.A.b[a.g];this.g.resume()};
h.im=function(a){WF(this.b,new ru({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};
h.seek=function(a){this.g.seek(a)};
h.Om=function(){var a=this.g;Oi(a.g);a.g=window.NaN;a.A=!0};
h.Wg=function(){return""};
h.O=function(){this.g.dispose();dG.L.O.call(this)};y(eG,NF);var Ypa={Al:!0};eG.prototype.yk=function(a,b){var c,d=this.C.Lg;eG.L.yk.call(this,a,b);var e,f;for(c=a.length;c<d.length;c++){var k=d[c];f&&k.g==e||(f={},ta(f,this.o.Ba),ta(f,k.g),b&&ta(f,b),ta(f,Ypa));UF(this,k,f,!0);e=k.g}};y(fG,NF);fG.prototype.ca=function(){he(this.element,"ytp-rollup-mode");var a=this.P||this.B,b=this.Y;this.P=null;this.uh(a,b,this.X)};
fG.prototype.Wo=function(){Gq(this.I,PF(this,this.o.Ba));this.D.appendChild(this.I);var a=this.I.offsetWidth;this.D.removeChild(this.I);2<=Math.abs(this.U-a)&&(this.U=a);return this.U};
fG.prototype.Vo=function(){return 1.32*this.C.params.qh*this.H};
fG.prototype.uh=function(a,b,c){this.X=c;this.Y=b;for(var d=0,e=0;d<this.B.length&&e<a.length;d++)this.B[d]==a[e]&&e++;var f=TF(a),k=!1,d=0;if(0<e&&e<a.length){var e=this.B.concat(a.slice(e)),m=TF(e)-f;0<m&&(this.P=a,a=e,d-=m,k=!0)}f<this.C.params.qh&&(k=!0,d+=this.C.params.qh-f);!(0,window.isNaN)(this.M)&&k&&(J(this.element,"ytp-rollup-mode"),this.aa.start());d!=this.M&&(f="",d&&(f="translateY("+Math.ceil(1.32*d*this.H)+"px)"),Gq(this.D,"transform",f),this.M=d);fG.L.uh.call(this,a,b,c)};y(gG,dq);gG.prototype.toString=function(){return gG.L.toString.call(this)};
y(hG,dq);y(jG,XF);jG.prototype.hm=function(a,b){this.isDisposed();var c=this.Wg(a),d=w(function(c){this.g=null;b(c.responseText,a)},this);
this.g&&this.g.abort();this.g=Sj(c,{format:"RAW",ab:d,withCredentials:!0});vaa(this.b,a)};
jG.prototype.im=function(a,b,c){var d=this.A;b={type:"list",tlangs:1,v:this.o,fmts:Number(b||!1),vssids:1};this.Op&&(b.asrs=1);d=Jj(d,b);b=w(function(b){this.g=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.b,k=b.getElementsByTagName("track"),m=k.length,l=0;l<m;l++){var p=k[l].getAttribute("formats"),t=c,u=k[l].getAttribute("lang_code"),x=k[l].getAttribute("lang_translated"),B=k[l].getAttribute("name"),C=k[l].getAttribute("kind"),H=k[l].getAttribute("id"),L="true"==k[l].getAttribute("lang_default"),
R="true"==k[l].getAttribute("cantran"),ra=k[l].getAttribute("vss_id");WF(d,new ru({formats:p,format:t,languageCode:u,languageName:x,name:B,kind:C,id:H,is_servable:!0,is_default:L,is_translateable:R,vss_id:ra}))}b=b.getElementsByTagName("target");d=b.length;for(k=0;k<d;k++)m=b[k].getAttribute("lang_code"),l=b[k].getAttribute("lang_translated"),p=b[k].getAttribute("lang_original"),t=b[k].getAttribute("id"),u="true"==b[k].getAttribute("lang_default"),m={languageCode:m,languageName:l,languageOriginal:p,
id:t,is_default:u},this.C[m.languageCode]=m.languageName,this.B.push(new qu(m))}a()},this);
this.g&&this.g.abort();this.g=Sj(d,{format:"RAW",ab:b,withCredentials:!0})};
jG.prototype.Wg=function(a){var b=this.A,c={v:this.o,type:"track",lang:a.g,name:a.B,kind:a.A,fmt:a.o};a.b&&(c.tlang=a.b.languageCode);return b=Jj(b,c)};
jG.prototype.O=function(){this.g&&this.g.abort();jG.L.O.call(this)};y(mG,kG);y(pG,kG);y(xG,kG);y(BG,kG);var Baa=/NOTE/,Aaa=/(?:\r\n|\r|\n){2,}/,Caa=/\r\n|\r|\n/,yG=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;y(DG,gq);h=DG.prototype;h.create=function(){DG.L.create.call(this);this.o=this.b.getVideoData();CG(this)||this.U.S(this.b,"resize",this.ks);this.U.S(this.b,"onPlaybackAudioChange",this.lA);var a=mq(this,"display-settings")||{};if(a.migrated)LG(this,a);else{gc(a,Zpa)&&(a={});for(var b in a)a[b+"Override"]=!0;LG(this,a,!0)}FG(this)&&this.load()};
h.destroy=function(){qr(this.U);DG.L.destroy.call(this)};
h.load=function(){this.ia="1"==this.o.o.cc_auto_caps||"1"==this.T.M.cc_auto_caps;DG.L.load.call(this);this.Z=!0;if(this.o.sa)this.A=new dG(this.o.b,this.b),this.ca=this.U.S(this.b,"seekto",this.WF);else{var a=this.o.Te||this.T.Za||this.o.od("yt:cc_default_lang")||this.T.ia,a=a&&a.split("_").join("-");this.o.captionTracks.length?this.A=new YF(this.o):this.A=new jG(this.o.ni,this.o.videoId,a,this.o.mi)}HG(this)};
h.unload=function(){this.F&&(KG(this),this.ym("control_subtitles_set_track"));if(CG(this)){var a;a=jf("track",void 0,this.I.o);for(var b=0;b<a.length;b++)Bf(a[b])}else QG(this,!1),GG(this),this.ca&&this.U.qa(this.ca),this.A.dispose(),this.A=null;this.J=this.Y=this.Z=!1;DG.L.unload.call(this)};
h.ir=function(){this.Z=!1;if(CG(this))for(var a=VF(this.A.b,!this.T.experiments.$("block_mobile_asr")),b=0;b<a.length;b++){var c=a[b],d={kind:"subtitles",label:tu(c),srclang:c.g,src:this.A.Wg(c)};c.isDefault&&(d["default"]=1);for(var c=this.W.app.A,d=[M("track",d)],e=0;e<d.length;e++)c.b.appendChild(d[e])}else if(c=this.J||EG(this,!this.Y),a=VF(this.A.b,!0),0<a.length){this.Y=!0;b=this.g&&-1!=a.indexOf(this.g);if(c&&!b)if(c=this.A.Uo(),!c&&this.J&&(c=a[0]),c)this.ea=!0,IG(this,c),b=!0;else if(a=this.A.b.A,
a.length&&(a=a[0].toString(),this.J||this.ia))a=waa(this.A,a),IG(this,a,void 0),b=!0;this.b.va("onCaptionsTrackListChanged");b||JG(this)}else if(this.A.de())JG(this);else if(a=this.b.app.B,b=zL(a,this.Ea))qb(a.b,b),b.destroy()};
h.jr=function(a,b,c){CG(this);if(a&&b==this.g){a=Eaa(a,b,c);this.ea&&(this.ea=!1,this.b.va("onCaptionsTrackListChanged"));c={trackName:b.B,trackKind:b.A};b.b?(c.trackLangCode=b.b.languageCode,c.fromLangCode=b.g):c.trackLangCode=b.g;this.log(c);if(this.g!=this.A.de()){if(this.J&&!XH(this.T)){this.H||(b=iG({di:0,Wi:5,xj:5,qh:2,textAlign:0,ug:0}),this.H=new NF(b));mr(this.b,this.H.element,4);c=P("YTP_CLICK_FOR_SETTINGS").split("$GEAR_ICON");var d=window.document.createElement("span");sh(d,Gh());b=this.H.C.id;
c=[new gG(0,0,0,b,c[0]),new gG(0,0,0,b,d,!0),new gG(0,0,0,b,c[1],!0)];(d=tu(this.g))&&c.unshift(new gG(0,0,0,b,d));b=this.I.Da().width;d=oF(this.I).height;SF(this.H,this.C,this.B,b,d,c);this.ma.we()}(this.T.experiments.$("cc_sticky_behavior")||this.J||XH(this.T))&&nq(this,"module-enabled",!0);OG(this.b)}this.ob(a.g.concat(a.b))}};
h.dc=function(a){this.ba.push(a);this.ga.we()};
h.tc=function(a){qb(this.ba,a);this.ga.we()};
h.JD=function(a){if(this.g)if(a instanceof hG){var b=this.M[a.id];b&&b.C!=a&&(b.dispose(),delete this.M[a.id],b=null);if(!b){var b=this.M,c=a.id;a:switch(a.params.hq?a.params.hq:a.params.pE?2:1<a.Lg.length?1:0){case 1:a=new eG(a);break a;case 2:a=new fG(a);break a;default:a=new NF(a)}b=b[c]=a;K(b.element,"captions-asr","asr"==this.g.A)}}else b=a.o,this.P[b]||(this.P[b]=[]),this.P[b].push(a)};
h.RD=function(){vq(this.H);this.H.dispose();this.H=null};
h.Pm=function(){CG(this);this.ga.stop();dc(this.P);this.ba.sort(fq);E(this.ba,this.JD,this);var a=this.I.Da().width,b=oF(this.I).height;Pb(this.M,function(c,d){!this.P[d]||this.G?(c.dispose(),delete this.M[d]):(c.element.parentNode||mr(this.b,c.element,4),SF(c,this.C,this.B,a,b,this.P[d]))},this)};
var Zpa={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};h=DG.prototype;h.ks=function(){if(!CG(this)){var a=this.I.Da().width,b=oF(this.I).height;Pb(this.M,function(c){SF(c,this.C,this.B,a,b,void 0,!0)},this);
this.G&&SF(this.G,this.C,this.B,a,b,void 0,!0);this.H&&SF(this.H,this.C,this.B,a,b,void 0,!0);this.Pm()}};
h.Td=function(a,b){switch(a){case "fontSize":if((0,window.isNaN)(b))break;var c=Ve(b,-2,4);NG(this,{fontSizeIncrement:c});return c;case "reload":b&&HG(this);break;case "stickyLoading":void 0!=b&&this.T.Ma&&nq(this,"module-enabled",!!b);break;case "track":if(b){if(CG(this))break;if(!ka(b))break;if(cc(b)){PG(this);break}for(var d,e=VF(this.A.b,!0),c=0;c<e.length;c++){var f=e[c];f.g!=b.languageCode||d&&f.C!=b.languageName||(d=b.translationLanguage?vu(f,b.translationLanguage):f)}d&&IG(this,d,!0)}else return this.g&&
this.g!=this.A.de()?uu(this.g):{};return"";case "tracklist":return this.Y?zi(VF(this.A.b,b&&b.includeAsr),function(a){return uu(a)}):[];
case "translationLanguages":return this.Y?this.A.B:[];case "displaySettings":d=MG(this);if((XH(this.T)||this.T.experiments.$("persist_all_displaySettings"))&&b&&ka(b))if(b.reset)LG(this,{},!0);else{f={};for(c in b)switch(c){case "color":case "background":case "windowColor":f[c]=Gaa(b[c],d[c]);break;case "textOpacity":case "backgroundOpacity":case "windowOpacity":f[c]=Haa(b[c],d[c]);break;case "charEdgeStyle":f[c]=Iaa(b[c],d[c]);break;case "fontSizeIncrement":f[c]=Kaa(b[c],d[c]);break;case "fontFamilyOption":f.fontFamily=
Jaa(b[c],d[c])}for(e in f)f[e+"Override"]=!0;NG(this,f,!0);d=MG(this)}d.fontFamilyOption=SG[d.fontFamily];d.charEdgeStyle=RG[d.charEdgeStyle];return d;case "sampleSubtitles":CG(this)||void 0==b||QG(this,!!b);break;case "xmlTrack":b&&this.T.Ma&&(GG(this),CG(this)||(c=b.xml,this.g=new ru({languageName:b.name}),this.jr(c,this.g)))}};
h.tf=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.T.Ma&&a.push("stickyLoading","xmlTrack");return a};
h.Va=function(a){if("lb3"==T(a).b)return!1;a=a.getVideoData();var b;if(b=a.sa)b=a.b,b=!(!b||null==b.b.en);return!!(a.ni||a.captionTracks.length||b)};
h.dj=function(a){a?GG(this):this.loaded&&(this.unload(),this.load())};
h.WF=function(){this.A.seek(this.b.getCurrentTime())};
h.Oh=function(){var a=this.g;return a?{cc:a.D}:null};
h.lA=function(){this.o.captionTracks.length&&(this.loaded?HG(this):FG(this)&&this.load())};UG.prototype.destroy=function(){null!=this.g&&(this.g.canvas.remove?this.g.canvas.remove():this.g.canvas.removeNode(!0),this.g=null)};h=YG.prototype;h.nl=function(){return"attribute vec3 aVertPos;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = vec2((aVertPos.x + 1.0) * 0.5, (1.0 - aVertPos.y) * 0.5);\n  gl_Position = vec4(aVertPos, 1.0);\n}"};
h.bl=function(){return this.b};
h.wd=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
h.vt=function(){};
h.un=function(a){this.F&&(360>=Hr[a]?this.C(!0):this.C(!1))};
h.nd=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,XG(this.B,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.tr=function(){return!0};
h.uf=function(){return{shader:"NoOp"}};
h.Ph=function(){};
h.destroy=function(){this.B&&this.B.destroy()};y(ZG,YG);ZG.prototype.wd=function(a,b,c){ZG.L.wd.call(this,a,b,c);a.uniformMatrix4fv(a.getUniformLocation(b,"mLt"),!1,new window.Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,"mRt"),!1,new window.Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,0,0,0,0,1]));this.o=a.getUniformLocation(b,"mode");a.uniform1i(this.o,this.g)};
ZG.prototype.nd=function(a,b,c){this.A&&(a.uniform1i(this.o,this.g),this.A=!1);ZG.L.nd.call(this,a,b,c)};
ZG.prototype.uf=function(){return{shader:"Anaglyph3D",displayMode:this.g}};
ZG.prototype.Ph=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.g=(0,window.parseInt)(a.displayMode,10),this.A=!0),this.D())};y(aH,YG);
aH.prototype.wd=function(a,b,c){aH.L.wd.call(this,a,b,c);c=new window.Uint8Array(4194304);for(var d=0;4194304>d;d++)c[d]=255*Math.random();d=a.createTexture();a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT);a.texImage2D(a.TEXTURE_2D,0,a.LUMINANCE,2048,2048,
0,a.LUMINANCE,a.UNSIGNED_BYTE,c);a.uniform1i(a.getUniformLocation(b,"uNoiseSplr"),1);a.uniform1f(a.getUniformLocation(b,"amount"),this.G);a.uniform1f(a.getUniformLocation(b,"offset"),this.H);this.A=a.getUniformLocation(b,"seed");(a=this.W.getVideoData())&&a.A&&this.un(a.A.video.quality)};
aH.prototype.nd=function(a,b,c){if(this.I){var d=D();1E3<d-this.o&&(this.o=d,a.uniform1f(this.A,Math.random()))}else a.uniform1f(this.A,Math.random());aH.L.nd.call(this,a,b,c)};
aH.prototype.uf=function(){return{shader:"WhiteNoise"}};y(bH,aH);bH.prototype.wd=function(a,b,c){bH.L.wd.call(this,a,b,c);this.g=a.getUniformLocation(b,"mode");a.uniform1i(this.g,1)};
bH.prototype.nd=function(a,b,c){this.D&&(a.uniform1i(this.g,1),this.D=!1);bH.L.nd.call(this,a,b,c)};
bH.prototype.uf=function(){return{shader:"EdgeEnhance"}};cH.prototype.BYTES_PER_ELEMENT=4;cH.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
cH.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&(cH.BYTES_PER_ELEMENT=4,cH.prototype.BYTES_PER_ELEMENT=cH.prototype.BYTES_PER_ELEMENT,cH.prototype.set=cH.prototype.set,cH.prototype.toString=cH.prototype.toString,ba("Float32Array",cH,void 0));dH.prototype.BYTES_PER_ELEMENT=8;dH.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
dH.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{dH.BYTES_PER_ELEMENT=8}catch(a){}dH.prototype.BYTES_PER_ELEMENT=dH.prototype.BYTES_PER_ELEMENT;dH.prototype.set=dH.prototype.set;dH.prototype.toString=dH.prototype.toString;ba("Float64Array",dH,void 0)};fH.prototype.identity=function(){this.b.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
fH.prototype.get=function(){return this.b};var kH=null,nH=null,jH=null;h=pH.prototype;h.nl=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.bl=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
h.wd=function(a,b){this.Ga=a.getUniformLocation(b,"uVMat");this.ba=a.getUniformLocation(b,"uFOVx");this.Y=a.getUniformLocation(b,"uFOVy");this.aa=a.getUniformLocation(b,"uSplr");a.uniform1i(this.aa,0)};
h.vt=function(){this.D=!0};
h.un=r;
h.nd=function(a,b){var c=this.b,d=this.g;if(this.D){a.g>a.b?(this.b=this.o,this.g=Math.atan(Math.tan(this.o)*a.b/a.g)):(this.g=this.o,this.b=Math.atan(Math.tan(this.o)*a.g/a.b));a.uniform1f(this.ba,this.b);a.uniform1f(this.Y,this.g);this.B=Ve(this.B,-Math.PI/2,Math.PI/2);this.A.identity();var e=this.A,f=this.B,k=Math.sin(f),f=Math.cos(f);e.A.set([1,0,0,0,0,f,k,0,0,-k,f,0,0,0,0,1]);gH(e,e.A);e=this.A;f=this.H;k=Math.sin(f);f=Math.cos(f);e.A.set([f,0,-k,0,0,1,0,0,k,0,f,0,0,0,0,1]);gH(e,e.A);a.uniformMatrix4fv(this.Ga,
!1,this.A.get());this.D=!1}e=D();if(this.Z){this.C[0]=-this.A.get()[8];this.C[1]=-this.A.get()[9];this.C[2]=-this.A.get()[10];var k=this.Z,f=this.C,m=this.F.getCurrentTime(),l=e/1E3,p=this.F.getPlayerState(),t=null,u,x,B;1==p?(u=k.A,B=k.F,x=m):(u=k.D,B=k.C,x=l);var C=0!=k.b.length;if(C){var H=150<=k.b.length;if(k.o!=p||.5<x-B||x<B||H){t=null;if(5<=k.b.length){for(var t=k.b,C=Array(2*t.length),L=H=0,R=0;R<t.length;++R)C[R]=t[R].x-H&255,C[R+t.length]=t[R].y-L&255,H=t[R].x,L=t[R].y;H=Oaa(C);t=k.A;C=
1==k.o?k.g:0;H=lH(H,!0);L="";for(R=H.length-1;0<=R&&"."==H.charAt(R);--R)L+="=";H=H.substring(0,H.length-L.length)+L;t={start:t,duration:C,data:H}}k.b=[];k.g=0;C=!1}}if(1==p||2==p||3==p){if(C)for(u=u+k.g+.2;u<x;){H=(u-B)/(x-B);k.g+=.2;var C=k.B,L=f,R=H,H=new window.Float32Array(3),ra=eH(C),sa=eH(L),Aa=(C[0]*L[0]+C[1]*L[1]+C[2]*L[2])/(ra*sa);if(.999999<Aa)ra=C[0],sa=C[1],C=C[2],H[0]=(L[0]-ra)*R+ra,H[1]=(L[1]-sa)*R+sa,H[2]=(L[2]-C)*R+C;else{var cb,re;-.999999>Aa?(Aa=new window.Float32Array(3),cb=(ra+
sa)/2,C[0]?(cb/=Math.sqrt(C[0]*C[0]+C[1]+C[1]),Aa[0]=-C[1]*cb,Aa[1]=C[0]*cb,Aa[2]=0):(cb/=Math.sqrt(C[2]*C[2]+C[1]+C[1]),Aa[0]=0,Aa[1]=-C[2]*cb,Aa[2]=C[1]*cb),.5>=R?(sa=ra,L=Aa,R*=2):(C=Aa,R=2*R-1),cb=Math.PI/2,re=1):(cb=Math.acos(Aa),re=Math.sqrt(1-Aa*Aa));Aa=Math.sin((1-R)*cb)/re/ra;cb=Math.sin(R*cb)/re/sa;R=(1-R)*ra+R*sa;H[0]=(C[0]*Aa+L[0]*cb)*R;H[1]=(C[1]*Aa+L[1]*cb)*R;H[2]=(C[2]*Aa+L[2]*cb)*R}C=H;k.b.push(oH(C));u+=.2}else k.A=m,k.D=l,k.b.push(oH(f)),k.g=0;k.B=f;k.F=m;k.C=l;k.o=p}k=t;k&&(f=hq(this.F.app))&&
f.A&&(f=f.A.g,m=k.start,l=k.duration,k=k.data,vB(f,HB(f.b),"dir",[m.toFixed(3),l.toFixed(3),k]))}(this.U!=this.b||this.X!=this.g)&&3E4<e-this.P&&c==this.b&&d==this.g&&(this.U=this.b,this.X=this.g,this.P=e,(c=hq(this.F.app))&&c.A&&(c=c.A.g,d=Math.round(360*this.b/Math.PI),e=Math.round(360*this.g/Math.PI),vB(c,HB(c.b),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,XG(this.I,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.tr=function(){return!1};
h.uf=function(){return{shader:"Spherical",yaw:this.H,pitch:this.B,fov:this.o}};
h.Ph=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.H=a.yaw),a.pitch&&(this.B=a.pitch),a.fov&&(this.o=Ve(a.fov,.32,1.05)),this.D=!0,this.M()};
h.destroy=function(){this.I&&this.I.destroy()};y(qH,pH);h=qH.prototype;h.nl=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.bl=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform int mode;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nmat4 mRt = mat4(-.043, .378, -.072, 0.0, -.088, .734, -.113, 0.0, 0.0,   -0.018, 1.226, 0.0, 0.0, 0.0, 0.0, 1.0);mat4 mLt = mat4(.456, -.04, -.015, 0.0, .5, -.038, -.021, 0.0, .176,   -0.016, -.005, 0.0, 0.0, 0.0, 0.0, 1.0);void anaglyph(float x, float y) {  y *= 0.5;  vec4 cLt = texture2D(uSplr, vec2(x, y));  vec4 cRt = texture2D(uSplr, vec2(x, 0.5 + y));  gl_FragColor = mLt * cLt + mRt * cRt;}void main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  if (mode == 1) {    anaglyph(texCrd.x, texCrd.y);  } else {    texCrd.y *= 0.5;    gl_FragColor = texture2D(uSplr, texCrd);  }}"};
h.wd=function(a,b,c){qH.L.wd.call(this,a,b,c);this.K=a.getUniformLocation(b,"mode");a.uniform1i(this.K,this.G)};
h.nd=function(a,b,c,d){this.J&&(a.uniform1i(this.K,this.G),this.J=!1);qH.L.nd.call(this,a,b,c,d)};
h.uf=function(){var a=qH.L.uf.call(this);a.shader="Spherical3D";a.displayMode=this.G;return a};
h.Ph=function(a){void 0!=a.displayMode&&(this.G=(0,window.parseInt)(a.displayMode,10),this.J=!0,this.M());qH.L.Ph.call(this,a)};y(rH,kk);rH.prototype.remove=function(a){var b=this.get(a);delete this.b[a];return b};
rH.prototype.get=function(a){return this.b[a]||null};
rH.prototype.isEmpty=function(){return cc(this.b)};y(zH,I);h=zH.prototype;h.Ro=function(a,b){this.b.paused||this.getCurrentTime()>a||10<b||(this.play(),Mi(w(this.Ro,this,this.getCurrentTime(),b+1),500))};
h.seekTo=function(a){0<this.b.readyState&&(DH&&4>vx&&(a=Math.max(.1,a)),this.b.currentTime=a)};
h.addEventListener=function(a,b,c,d){zH.L.addEventListener.call(this,a,b,c,d);this.A[a]||(b=w(this.HG,this),this.b.addEventListener(a,b),this.A[a]=b)};
h.Fo=function(){this.o&&!this.b.muted&&(this.b.muted=!0)};
h.O=function(){this.B&&this.removeEventListener("volumechange",this.Fo);zH.L.O.call(this)};y(JH,zH);h=JH.prototype;h.fa=function(){return this.b};
h.canPlayType=function(a,b){return this.b.canPlayType(a,b)};
h.getCurrentTime=function(){return this.b.currentTime};
h.load=function(){var a=this.b.playbackRate;this.b.load();this.b.playbackRate=a};
h.pause=function(){this.b.pause()};
h.play=function(){var a=this.b.play();a&&a.then&&a.then(void 0,function(a){1E-4>Math.random()&&Pi(a)})};
h.fb=function(){return this.b.error?this.b.error.code:null};
h.setPosition=function(a){return Mq(this.b,a)};
h.setSize=function(a){return Xq(this.b,a)};
h.setVolume=function(a){this.b.volume=a};
h.HG=function(a){this.V(new Qaa(this,a.type,a))};
h.setAttribute=function(a,b){this.b.setAttribute(a,b)};
h.removeAttribute=function(a){this.b.removeAttribute(a)};
h.getStyle=function(a){return Iq(this.b,a)};
h.O=function(){for(var a in this.A)this.b.removeEventListener(a,this.A[a]);JH.L.O.call(this)};var PH=null;var Uaa={FM:"red",nO:"white",OI:"blue"};SH.prototype.$=function(a){return"true"==this.flags[a]};
SH.prototype.b=function(a){return(0,window.parseFloat)(this.flags[a])};
SH.prototype.o=function(a){return this.flags[a]?this.flags[a].toString():""};var cI={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},dI={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},UH="blogger books docs google-live play picasaweb".split(" ");y(aI,F);var eI={RI:"cbrand",SI:"cbr",TI:"cbrver",KK:"c",NK:"cver",MK:"ctheme",LK:"cplayer",lL:"cmodel",RL:"cnetwork",aM:"cos",bM:"cosver",gM:"cplatform"};h=aI.prototype;h.ua="detailpage";h.jf=!1;h.am=!1;h.$l=!1;h.Be=null;
h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=hI(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:(d=this.aa+"://"+c+"/watch",b.v=a,Dw&&(a=RH())&&(b.ebc=a));return Qg(d,b)};
h.isAd=function(){return"adunit"==this.ua};
h.O=function(){this.Be=null;aI.L.O.call(this)};nI.prototype.J=function(){this.I=!1;if(this.A&&(this.o.videoWidth||this.o.videoHeight)){if(0==this.H){var a=oF(pF(this.W));if(!hg(this.C,a)){this.C=a;var b,c,d,a=pF(this.W).Da();this.b.tr()?("Anaglyph3D"!=this.U?b=!1:(b=VG(pF(this.W)),c=this.W.getVideoData(),b=(0,window.isNaN)(b)||c.od("yt:stretch")||c.od("yt:crop")?!1:.01>Math.abs(b-32/9)||.01>Math.abs(b-8/9)),b?(16*a.height/9>a.width?(b=a.width,c=9*b/16):(c=a.height,b=16*c/9),d=(a.height-c)/2,a=(a.width-b)/2):(b=this.C.width,c=this.C.height,d=this.C.top,
a=this.C.left)):(b=a.width,c=a.height,a=d=0);a=new fg(a|0,d|0,b|0,c|0);this.D.style.left=a.left+"px";this.D.style.top=a.top+"px";this.g.width=a.width;this.g.height=a.height;this.A.g=a.width;this.A.b=a.height;this.A.viewport(0,0,a.width,a.height);this.b.vt()}}this.b.nd(this.A,this.o,this.K,this.X)}this.B&&this.F()};
nI.prototype.ba=function(a){this.G!=a&&this.g&&((this.G=a)?(this.D.appendChild(this.g),this.F(),TG||(this.o.style.display="none")):(Bf(this.g),this.o.style.display=""))};
nI.prototype.F=function(){!this.I&&this.G&&((0,window.requestAnimationFrame)(this.J.bind(this)),this.I=!0)};y(pI,gq);pI.g=function(a){return pI.Va(a)?new pI(a):null};
pI.prototype.Va=function(){return pI.Va(this.b)};
pI.b=function(a){var b=T(a).g.c.toLowerCase(),c=a.getVideoData();a=T(a);if(Laa(c,a))b="Anaglyph3D";else{var d;if(d=a.experiments.F||$G(a))a:{if(c.b&&3!=c.aa)for(var e in c.b.b)if((d=c.b.b[e].info.video)&&2==d.projectionType){d=!0;break a}d=!1}b=d?"Spherical":(a.experiments.$("html5_enable_spherical3d")||$G(a))&&c.b&&Xx(c)?"Spherical3D":a.experiments.$("enable_webgl_noop")&&"web"==b&&lI(a)?"NoOp":(a.experiments.$("enable_white_noise")||a.experiments.$("white_noise_with_interval"))&&"web"==b&&(lI(a)||
mI(a))?"WhiteNoise":a.experiments.$("enable_edge_enhance")&&"web"==b&&lI(a)?"EdgeEnhance":null}return b};
pI.Va=function(a){return null!=pI.b(a)};
h=pI.prototype;h.YF=function(){var a=this.g;a.B||(0,window.requestAnimationFrame)(a.J.bind(a))};
h.gC=function(a){var b=this.g;b.b&&b.b.un(a)};
h.XF=function(a){var b=this.g,c=b.B;b.B=U(a.state,8);b.B&&!c&&b.F()};
h.O=function(){pI.L.O.call(this)};
h.create=function(){var a=pI.b(this.W);this.g=new nI(this.W,a,this.B.element,this);a:{a=this.g;a.b=null;var b=a.ba.bind(a),c=w(a.F,a);switch(a.U){case "Anaglyph3D":a.b=new ZG(a.W,c);break;case "Spherical":a.b=new pH(a.W,c);break;case "WhiteNoise":a.b=new aH(a.W,b);break;case "EdgeEnhance":a.b=new bH(a.W,b);break;case "NoOp":a.b=new YG(a.W,!0,b);break;case "Spherical3D":a.b=new qH(a.W,c)}if(a.b){a.H=Xaa(a);if(0==a.H){a.G&&!TG&&(a.o.style.display="none");a=!0;break a}a.W.app.g.Mj(new bw("html5.missingapi.webgl",
!1));oI(a)}a=!1}if(this.A=a)this.o.S(this.b,"resize",this.YF),this.o.S(this.b,"onPlaybackQualityChange",this.gC),this.o.S(this.b,"presentingplayerstatechange",this.XF);pI.L.create.call(this)};
h.destroy=function(){qr(this.o);oI(this.g);this.A=!1;pI.L.destroy.call(this);this.g=null};y(qI,Aq);qI.prototype.B=function(){this.da();this.R("close-clicked")};
qI.prototype.da=function(){this.o.stop();J(this.element,"ytp-drawer-closed")};
qI.prototype.Mb=function(a){a?(qI.L.Mb.call(this,a),xq(this.element,"block")):xq(this.element,"none")};
qI.prototype.show=function(){this.o.start()};y(rI,kk);rI.prototype.O=function(){rI.L.O.call(this);this.o||Bf(this.B)};
rI.prototype.b=function(a){this.o||(this.g.b(a),this.g.Mb(this.A.element),a.appendChild(this.B))};
rI.prototype.C=function(){this.R("ypcModuleCloseClicked")};
rI.prototype.D=function(){this.R("ypcContentRequest")};y(tI,gq);h=tI.prototype;h.Va=function(){return Sx(this.b.getVideoData(),"ypc_module")};
h.create=function(){tI.L.create.call(this);this.g=new Yaa(this.b.getVideoData());Mi(w(this.ZF,this),0);this.o=new Q(["div",["ytp-player-content","ytp-ypc-player-content"]]);mr(this.b,this.o.element,4)};
h.destroy=function(){tI.L.destroy.call(this);this.g=null;this.o&&(vq(this.o),this.o.dispose(),this.o=null)};
h.ZF=function(){this.D&&!this.loaded&&this.load()};
h.load=function(){tI.L.load.call(this);var a=T(this.b),b=this.b.getVideoData();if(this.g.videoId&&!b.ypcPreview){for(var a={autoplay:"1",oauth_token:b.oauthToken,video_id:this.g.videoId,ypc_origin:b.videoId,ypc_preview:"1"},c=ox.A,d=0;d<c.length;d++){var e=c[d];b.o.hasOwnProperty(e)&&(a[e]=b.o[e])}this.b.Vj(a)}else this.g.videoId&&(this.B=new Q(["div","html5-ypc-overlay",this.g.o]),this.B.b(this.o.element)),this.g.offerId&&aba(this,a,b),!this.g.videoId&&this.A?sI(this.A):b.ypcPreview?(this.b.va("ypcStateChanged",
!0),kq(this)):this.A||kq(this)};
h.unload=function(){jq(this);(0,window.isNaN)(this.C)||O(this.C);Ob(this.B,this.A);this.A=this.B=null;tI.L.unload.call(this);this.b.va("ypcStateChanged",!1)};
h.dc=function(a){tI.L.dc.call(this,a);sI(this.A)};
h.tc=function(a){tI.L.tc.call(this,a);a=this.A;a.o||(xq(a.B,"none"),a.g.Mb(a.A.element))};
h.OA=function(){this.g.b?"embedded"==T(this.b).ua?ty(this.g.b):ry(this.g.b):this.g.offerId&&(this.b.Ia()&&yy(this.b),this.b.va("onYpcContentRequest",this.g.offerId))};
h.KB=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};xI.prototype.forEach=function(a){for(var b=this.g+1;b<this.b.length;b++)a(this.b[b]||0);for(b=0;b<=this.g;b++)a(this.b[b]||0)};
xI.prototype.Ha=function(){var a=[];this.forEach(w(a.push,a));return a};
xI.prototype.clear=function(){for(var a=this.b.length,b=0;b<a;b++)this.b[b]=0;this.g=this.b.length-1};zI.prototype.b=function(a,b){var c=Math.pow(this.B,a);this.g=b*(1-c)+c*this.g;this.o+=a};
zI.prototype.A=function(){return this.g/(1-Math.pow(this.B,this.o))};QI.prototype.start=function(){this.g=!0};
QI.prototype.reset=function(){this.b=this.g=!1};RI.prototype.P=function(a){if(4==a.info.type){var b=a.info.b.Ar(a);a.info.Na(this.g)&&(this.g=db(b).info);E(b,this.P,this)}else 3==a.info.type&&this.b.push(a)};
RI.prototype.M=function(a){a.dispose();this.C-=SI(a)};var rba=0;h=qJ.prototype;h.MD=function(a){this.status=a.status;a.ok?(this.o=a.body.getReader(),this.C?(this.F=a.headers,this.J(),this.D=new window.Uint8Array(rJ(this)),tJ(this)):this.o.cancel("Cancelling")):this.Xj()};
h.yA=function(a){if(this.C)if(D(),a.done)this.o=null,this.Xj();else{a=a.value;this.B+=a.length;var b=a.length>=Math.max(rJ(this)/2,16384),c=a.length+this.b>rJ(this);(b||c)&&0!==this.b&&sJ(this);b?this.A.push(a):(this.D.set(a,this.b),this.b+=a.length);this.C({timeStamp:D(),loaded:this.B});tJ(this)}};
h.Xj=function(){this.C&&(this.G=!0,this.H())};
h.Ge=function(a){return this.F.get(a)};
h.op=function(){return!!this.F};
h.Xk=function(){return this.B};
h.Fg=function(){return+this.Ge("content-length")};
h.np=function(){return 200<=this.status&&300>this.status&&!!this.B};
h.Xp=function(){return!!this.A.length||this.G&&0<this.b};
h.Yr=function(){this.A.length||sJ(this);return this.A.shift()};
h.Ws=function(){this.A.length||sJ(this);return this.A[0]};
h.Vs=function(){this.o&&this.o.cancel("Cancelling");this.H=this.C=null};h=uJ.prototype;h.PF=function(a){if(!this.A){this.status=this.b.status;try{this.g=this.b.response}catch(b){}this.o=!0;this.B(a)}};
h.RF=function(){2==this.b.readyState&&this.C()};
h.QF=function(a){this.A||(this.status=this.b.status,this.D(a))};
h.op=function(){return 2<=this.b.readyState};
h.Ge=function(a){try{return this.b.getResponseHeader(a)}catch(b){return Pi(b),""}};
h.Fg=function(){return+this.Ge("content-length")};
h.Xk=function(){return this.g.byteLength};
h.np=function(){return 200<=this.status&&300>this.status&&!!this.g};
h.Xp=function(){return this.o&&!!this.g};
h.Yr=function(){var a=this.g;this.g=null;return new window.Uint8Array(a)};
h.Ws=function(){return new window.Uint8Array(this.g)};
h.Vs=function(){this.A=!0;this.b.abort()};vJ.o=!1;vJ.g=1E4;vJ.b=2048;vJ.A="X-Bandwidth-Est";h=vJ.prototype;h.fb=function(){return this.F};
h.start=function(a){var b=1==this.state,c=7==this.state;1==this.state||5==this.state||c&&xJ(this);yJ(this,2);this.P=0<=a?a:window.NaN;if(c&&2<=this.D){c=this.info.A;if(!(this.H<=c.A)){c.g++;c.A=p$-1;var d=Lr(c.o),e=new N(d);e.g.match("\\.googlevideo\\.com$")?(Zg(e,"redirector.googlevideo.com"),d=e.toString()):e.g.match("r[1-9].*\\.c\\.youtube\\.com$")?(Zg(e,"www.youtube.com"),d=e.toString()):d=Kp(d);c.b=new Jr(d);c.g&&(d=""+c.g,c.b.set("cmo=pf",d),c.o.set("cmo=pf",d))}this.D=0}else if(c){this.D++;
b=1E4*(.5+Math.random());1==this.D&&(b=2E3);Mi(w(this.sn,this,a),b);return}b?this.sn(a):Mi(w(this.sn,this,a),0)};
h.sn=function(a){if(!this.isDisposed()){this.H=p$++;if(this.g){var b=this.info,c=this.g.g,d=this.g.length;this.G=b.range?new Tr(b.range.start+c,b.range.end):Vr(c,d);this.A=ts(this.info,this.G)}else this.G=this.info.range,this.A=ts(this.info);this.A.set("rn",this.H.toString());this.D&&this.A.set("playerretry",this.D.toString());0<=a&&this.A.set("rbuf",(1E3*a).toFixed().toString());this.info.o&&this.A.set("headm",Math.max(0,this.o.liveChunkReadahead-1).toString());a=gs(this.A);try{var e=w(this.xD,this),
f=w(this.AD,this),k=w(this.zD,this),m=w(this.yD,this);this.b=(this.o.F||this.o.Z&&5>this.P)&&"function"==typeof window.fetch&&window.ReadableByteStream&&zJ(this)?new qJ(a,f,k,e,m):new uJ(a,f,k,e,m)}catch(l){this.F="net.ssl",yJ(this,7)}0<this.o.D&&(this.C=Mi(w(this.yr,this),this.o.D));this.A.get("itag");this.A.get("range");D()}};
h.AD=function(){this.J=0;var a=this.timing;this.A&&Nr(this.A.b);a.g=D();a.C=a.g;a.b=0;a.I=!1;a.G=!1;a.B=0;a.F=JM(a.A);HJ(a);a.J=a.D-a.g};
h.zD=function(a){if(!this.isDisposed()){this.B=this.b.status;DJ(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.g&&4E12>c?c:D();50>c-b.C||GJ(b,c,a);b=this.timing;b.b>b.K&&8192<b.b&&4>this.state?yJ(this,4):BJ(this)&&VI(this)&&yJ(this,Math.max(3,this.state))}};
h.yD=function(){!this.isDisposed()&&!this.M&&this.b.op()&&this.b.Ge("X-Walltime-Ms")&&(this.M=(D()-this.b.Ge("X-Walltime-Ms"))/1E3)};
h.xD=function(){var a=this.b;if(!this.isDisposed()){this.C&&(O(this.C),this.C=window.NaN);this.B=a.status;var b=!1;if(400<=a.status)b=!0,this.F="net.badstatus";else if(a.np()){var c="";CJ(this)&&(c=a.Ws(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=Pr.test(c)?c:""));if(c){var a=this.info.A,d=this.A;d.b===a.b&&(a.b=hs(d,c));yJ(this,5)}else{var c=a.Fg(),a=a.Xk(),d=!!this.G&&this.G.length,e=!0;!c&&d?e=d==a:!d&&c?e=c==a:d&&c&&(e=d==c&&c==a);if(e){DJ(this,!0);e=zJ(this)?this.b.Ge("X-Bandwidth-Est"):
0;c=this.timing;d=D();e=e?(0,window.parseInt)(e,10):0;if(!c.I){c.I=!0;d=d>c.g&&4E12>d?d:D();GJ(c,d,a);var f=(d-c.g)/1E3;(f<=c.A.b.g||!c.A.b.g)&&!c.G&&8192<=c.b&&EJ(c.A,f,a);8192<=c.b&&IM(c.A,a,c.B);HM(c.A,(d-c.g)/1E3,c.b);a=c.A;a.K.b(1,e);a.B=Bt();c.o&&(c.o=!1)}D();yJ(this,6)}else b=!0,this.F="net.closed"}}else b=!0,this.F="net.connect";b&&(xJ(this),yJ(this,7),D())}};
h.yr=function(){this.C=window.NaN;if(!(this.isDisposed()||this.o.Fa&&this.b&&8192<=this.timing.b&&"quic"==this.b.Ge("client-protocol"))){var a=D(),b=!1;if(8192<=this.timing.b){var c=this.timing.D;HJ(this.timing);this.timing.D-c>=.8*this.o.D?(this.J++,b=5<=this.J):this.J=0}else b=this.timing,b=5E3<a-(b.g+1E3*b.F.delay);b?(b=this.timing,a=a>b.g&&4E12>a?a:D(),c=(a-b.g)/1E3,8192<=b.b?(b.B+=(a-b.C)/1E3,IM(b.A,b.H,b.B)):FJ(b.A,c),HM(b.A,c,b.b),AJ(this),this.F="net.timeout",yJ(this,7)):this.C=Mi(w(this.yr,
this),this.o.D)}};
h.isDisposed=function(){return-1==this.state};
h.dispose=function(){ms(this.info.b[0])&&6!=this.state&&(this.info.b[0].b.A=!1);yJ(this,-1);this.K=null;AJ(this);O(this.C);this.C=window.NaN};y(IJ,kk);IJ.F=!1;IJ.b=2/24;IJ.B=1E3;IJ.o=.2;IJ.g=1E4;IJ.D=1800;IJ.C=25;IJ.A="Not enough storage";h=IJ.prototype;h.initialize=function(a,b,c,d){a=a||0;var e=this.D;d=d&&d.id;e.B="i";"auto"!=uI()&&(e.B="s");GI(e,b);hba(e,d);e.I=e.o;iba(e);e.A=e.D;b=OI(e);this.g=new RI(this.o,b.audio);this.A=new RI(this.o,b.video);this.R("videoformatchange",b);this.C=a;c?(this.H=!0,WJ(this)):LJ(this)};
h.resume=function(){this.H&&(this.H=!1)};
h.Cw=function(a){this.g.I=!1;this.A.I=!1;this.g.B=null;this.A.B=null;this.resume();this.b=a;vw(a)&&(a.b.addEventListener("updateend",w(this.Kc,this),!1),a.g.addEventListener("updateend",w(this.Kc,this),!1),a.b.addEventListener("error",w(this.aj,this,!0),!1),a.g.addEventListener("error",w(this.aj,this,!1),!1));KJ(this,"msa");$v.measure&&$v.getEntriesByName("vta").length&&$v.measure("measure_vta_to_msa","vta");this.U&&this.K&&pv();this.Kc();this.ea=Ni(w(this.Kc,this),1E4)};
h.zC=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.b[0].b,c=!this.U&&b.info.video,d=!this.K&&b.info.audio,e=Math.max(0,a.info.b[0].B-this.C);if(5==a.state)c?KJ(this,"vrr"):d&&KJ(this,"arr"),a.start(e);else if(6==a.state||this.o.F&&3<=a.state&&!(5<=a.state))c?(this.U=a.A?gs(a.A):"",qv()):d&&(this.K=a.A?gs(a.A):""),this.B.g&&(b=b.info.video?this.A:this.g,b.H=!1),tba(this,a)?(uba(this,a),this.Kc()):this.xd(!0,"fmt.unparseable",wJ(a));else if(4==a.state)this.Kc(),c&&qv();else if(7==a.state&&
xJ(a)){if(this.xd(!1,a.fb(),wJ(a)),!this.isDisposed()){if(c=b.info.video&&(0<a.D||410==a.B||500==a.B||503==a.B)&&90&&!LI(this.D)){var d=this.D,f=b.info;LI(d);d.U=f;d.K=Bt();d.J=-1;GI(d,d.b)}if((a.o.ea&&!a.info.b[0].b.Xc()?0:7==a.state&&("net.timeout"==a.F||"net.connect"==a.F&&204==a.B))||c){b=b.info.video?this.A:this.g;for(e=0;e<b.o.length&&a!==b.o[e];e++);if(e==b.o.length)a.dispose();else{for(;e<b.o.length;)b.M(b.o.pop());3==a.info.b[0].type?(a.g&&a.g.o?(a=a.g.o,a=new ks(a.type,a.b,a.range,a.o,a.startTime+
a.duration,0,a.A+a.g,0,!1)):(a=a.info.b[0],a=new ks(a.type,a.b,a.range,a.o,a.startTime,0,a.A,0,!1)),b.g=a):b.g=null}this.Kc()}else a.start(e)}}else ms(a.info.b[0])?(b.o=!0,this.Kc()):this.xd(!0,"net.retryexhausted",wJ(a))}};
h.Kc=function(){this.ca=window.NaN;OJ(this);if(this.b&&qw(this.b)&&!tw(this.b))if(this.B.isLive)(0,window.isNaN)(this.G)?(this.G=this.C+3600,this.b.og(this.G)):this.G<=this.C+1800&&(this.G+=1800,this.b.og(this.G));else{var a=Math.max(this.g.A.index.Eg(),this.A.A.index.Eg());(!(0,window.isFinite)(this.G)||this.G!=a)&&0<a&&(this.b.og(a),this.G=a)}if(!this.isDisposed()){a=this.B;if(a.isLive&&Bt()-a.D>=a.B){if(3==this.B.C){this.xd(!0,"manifest.net.retryexhausted",{rc:this.B.G.toString()});return}this.B.J()}this.B.isLive&&
(oJ(this.A)||oJ(this.g))&&(a=aK(this),(0,window.isNaN)(a)||this.seek(a));if("prerender"==window.document.webkitVisibilityState)WJ(this);else{OJ(this);XI(this.A);XI(this.g);this.B.g&&(pJ(this.A),pJ(this.g));this.g.A.A||(!this.H||KM(this.F)?LJ(this):WJ(this));if(this.b&&!PJ(this,this.g,this.b.b)&&!PJ(this,this.A,this.b.g)){(a=$J(this,this.A,this.b.g,null,this.g.D))&&!this.Y&&(this.Y=D(),KJ(this,"vda"),this.ba&&qv());var b=wH(this.b.g.buffered,this.C+IJ.b);(0,window.isNaN)(b)&&!eJ(this.A)&&this.b.b.buffered.length||
(eJ(this.A)&&(b=window.NaN),b=$J(this,this.g,this.b.b,b,null),a|=b,b&&!this.ba&&(this.ba=D(),KJ(this,"ada"),this.Y&&qv()));eJ(this.A)&&eJ(this.g)&&qw(this.b)&&!tw(this.b)&&(b=this.b,qw(b)&&b.A.endOfStream(),GM(this.F));a&&!vw(this.b)&&VJ(this)}cK(this,this.A,II(this.D));cK(this,this.g,JI(this.D));this.A.A.o||this.g.A.o?this.xd(!0,"net.retryexhausted",{metadata:"1",video:this.A.A.o?"1":"0",audio:this.g.A.o?"1":"0"}):(RJ(this,this.A,this.g)&&UJ(this,this.A,this.g),RJ(this,this.g,this.A)&&UJ(this,this.g,
this.A),this.o.Sa&&this.P&&!this.H&&KM(this.F)&&(a=this.P,this.P="",b=Hg(a),Sj(a,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:w(this.xd,this,!1,"pathprobe.net",{shost:b})})),this.B.A&&WJ(this))}}};
h.aj=function(a){a=(a=a?this.g:this.A)&&a.B;this.xd(!0,"fmt.unplayable",a?ps(a):void 0)};
h.seek=function(a){if(!this.isDisposed()&&!this.A.H&&!this.g.H){OJ(this);this.ia=Bt();this.A.A=II(this.D);var b=bK(this,this.A,a,this.b&&this.b.g);this.g.A=JI(this.D);var c=bK(this,this.g,b,this.b&&this.b.b);this.C=Math.max(a,b,c);this.J=!0;VJ(this)}};
h.O=function(){NJ(this);this.g&&(gJ(this.g),gJ(this.A));Oi(this.ea);O(this.M);this.A=this.g=null;IJ.L.O.call(this)};
h.xd=function(a,b,c){this.isDisposed()||(this.R("error",new bw(b,a,c)),a&&(this.b&&qw(this.b)&&(a=this.b,qw(a)&&a.A.endOfStream("network")),this.dispose()))};y(eK,F);h=eK.prototype;h.IG=function(a){this.D.call(this.g,new window.Uint8Array(a.message))};
h.vB=function(){};
h.tq=function(a,b){Pi(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.C.call(this.g,c)};
h.Sq=function(a){this.D.call(this.g,a.message)};
h.Rq=function(a){var b;this.b?(b=this.b.error.code,a=this.b.error.systemCode):(b=a.errorCode&&a.errorCode.code,a=a.systemCode);this.C.call(this.g,";c."+b+";sc."+a)};
h.Qq=function(){this.G.call(this.g)};
h.update=function(a){this.o?this.o.update(a).then(null,Li(w(this.tq,this,"t.u"))):this.b?this.b.update(a):this.B.addKey?this.B.addKey(this.H.A,a,this.F,this.sessionId):this.B.webkitAddKey(this.H.A,a,this.F,this.sessionId)};
h.O=function(){this.B=null;eK.L.O.call(this)};y(fK,F);h=fK.prototype;
h.createSession=function(a){var b=a.b;if(this.b.g){var c=this.D.createSession(),b=c.generateRequest(a.contentType,b),c=new eK(null,null,null,c,null);b.then(null,Li(w(c.tq,c,"t.g")));return c}if(cu(this.b)){c=new window.Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.o.createSession("video/mp4",b,c);return new eK(null,null,null,null,b)}if(du(this.b)){c=
b.subarray(4);c=String.fromCharCode.apply(null,new window.Uint16Array(c.buffer,c.byteOffset,c.byteLength/2)).match(/ek=([0-9a-f]+)/)[1];a="";for(var d=0;d<c.length;d+=2)a+=String.fromCharCode((0,window.parseInt)(c.substr(d,2),16));for(var e=this.b.fairPlayCert,c=new window.Uint8Array(new window.ArrayBuffer(e.length)),d=0;d<e.length;d++)c[d]=e.charCodeAt(d);for(var d=new window.ArrayBuffer(2*a.length),e=new window.Uint16Array(d),f=0;f<a.length;f++)e[f]=a.charCodeAt(f);a=new window.Uint8Array(d);d=
0;f=new window.ArrayBuffer(b.byteLength+4+a.byteLength+4+c.byteLength);e=new window.Uint8Array(f);f=new window.DataView(f);e.set(b);d+=b.byteLength;f.setUint32(d,a.length,!0);d+=4;e.set(a,d);d+=a.length;f.setUint32(d,c.byteLength,!0);e.set(c,d+4);b=this.o.createSession("video/mp4",e);return new eK(null,null,null,null,b)}this.g.generateKeyRequest?this.g.generateKeyRequest(this.b.A,b):this.g.webkitGenerateKeyRequest(this.b.A,b);return this.A=new eK(this.g,this.b,b,null,null)};
h.LG=function(a){var b=iK(this,a);b&&b.Sq(a)};
h.KG=function(a){var b=iK(this,a);b&&b.Rq(a)};
h.JG=function(a){(a=iK(this,a))&&a.Qq()};
h.O=function(){this.g=null;fK.L.O.call(this)};jK.prototype.get=function(a){a=kK(this,a);return-1!=a?this.values[a]:null};
jK.prototype.remove=function(a){a=kK(this,a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
jK.prototype.set=function(a,b){var c=kK(this,a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};y(mK,F);h=mK.prototype;h.Ys=function(a){this.F=a};
h.UF=function(a){if(!this.isDisposed()){this.D||(this.D=!0,this.b.R("newsession",this));if(cu(this.g)){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new window.DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=new window.Uint8Array(mH(a.childNodes[0].data))}if(du(this.g))for(b=lH(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a=new zba(a,++this.G);this.Lr(a)}};
h.SF=function(){this.isDisposed()||this.C||(this.b.R("sessionready"),this.C=!0)};
h.Lr=function(a){a={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,ab:w(this.zB,this,a),onError:w(this.Fq,this,a)};var b=this.B;this.F&&(b=Xg(b,"access_token",this.F));Sj(b,a)};
h.zB=function(a,b){if(!this.isDisposed())if(0!=b.status&&b.response){var c;c=new window.Uint8Array(b.response);var d=String.fromCharCode.apply(String,c.subarray(0,16384)),e=d.indexOf("\r\n"),f=d.indexOf("\r\n\r\n"),k;-1==f?c=null:(k=d.slice(0,e).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/),null==k?c=null:(k=ab(k[1]),d=Is(d.slice(e+2)),c=null==d?null:new yba(k,d,c.subarray(f+4))));c?0!=c.b?nK(this,"drm.auth",!0,"t.f;c."+c.b,Ty(c.b)):(f=(f=c.headers["Authorized-Format-Types"])?f.split(","):null,d=null,(e=
c.headers["Heartbeat-Url"])&&(d=new xba(e,(0,window.parseInt)(c.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(c.headers["Heartbeat-Num-Retries"],10)||4)),(f||d)&&this.b.R("newlicense",f,d),du(this.g)&&(c.message=new window.Uint8Array(mH(String.fromCharCode.apply(null,c.message)))),this.o.update(c.message)):nK(this,"drm.net",!0,"t.p","YTP_ERROR_SERVER_ERROR")}else this.Fq(a,b)};
h.TF=function(a){this.isDisposed()||nK(this,"drm.keyerror",!0,"t.s"+a)};
h.Fq=function(a,b){var c,d=!1;a.b||this.H?(c="drm.net.retryexhausted",d=!0):c=b.status?"drm.net.badstatus":"drm.net.connect";nK(this,c,d,"t.r;c."+b.status);d||this.G!=a.number||(a.b=!0,Mi(w(this.Lr,this,a),5E3))};
h.O=function(){this.b=null;mK.L.O.call(this)};y(qK,kk);h=qK.prototype;h.bB=function(a){a=new oK(new window.Uint8Array(a.initData),a.initDataType);sK(this,a,!0)};
h.SB=function(a){sK(this,new oK(a.initData,a.contentType),!0)};
h.HB=function(){this.isDisposed()||(this.C=!0,this.g.length&&rK(this,this.g[0]))};
h.jA=function(a){if(!this.isDisposed()){Pi(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.R("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
h.UB=function(a,b){a&&kb(a,"HD")&&!zu(this.B)&&!cu(this.b)&&(this.B=Au,this.R("qualitychange"));b&&!this.K&&(this.K=b,this.R("heartbeatparams",b))};
h.VB=function(){this.isDisposed()||(this.g.shift(),this.g.length&&rK(this,this.g[0]))};
h.HC=function(){if(cu(this.b)&&(this.J--,0==this.J)){var a=this.o;a.g.msSetMediaKeys(a.o)}};
h.O=function(){this.b.g&&this.D.setMediaKeys(null);this.D=null;this.g=[];E(this.A.values,function(a){a.dispose()});
wba(this.A);qK.L.O.call(this)};tK.prototype.B=function(){var a=q("yt.abuse.botguardInitialized");return a&&a()?(a=q("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
tK.prototype.C=function(a){return"r3a="+Math.floor(this.b.lengthSeconds%Ya(a.c3a))};
tK.prototype.o=function(a){a=Ya(a.c);var b;b=q("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};BK.prototype.isEmpty=function(){return this.endTime==this.startTime};y(EK,kk);EK.b=1;EK.g=10;EK.A=5;EK.o=5;h=EK.prototype;h.O=function(){O(this.U);Oi(this.wa);O(this.Ca);GK(this);YK(this);FK(this);aL(this);Ob(this.Z,this.b);this.K=null;this.ra=!1};
h.vh=function(a,b){this.ba.length=0;this.aa.reset();this.P.reset();this.J=this.ea=window.NaN;this.Y=null;this.ub=!1;this.g&&GH(this.g);dL(this);GK(this);YK(this);FK(this);this.Ja.clear();Nb(this.b);if(2==this.G||TH.test(this.T.G))a.Yp=!0;this.T.jf&&(a.autonavState=this.b.autonavState);this.b=a;this.b.subscribe("dataupdated",this.lD,this);this.b.subscribe("dataloaded",this.Eo,this);this.b.subscribe("dataloaderror",this.Mj,this);this.b.subscribe("onStatusFail",this.kD,this);if(a.Ff&&a.Ff>a.startSeconds){var c=
a.Ff;this.K&&(this.C.Fh(this.K),this.K=null);this.K=new dq(1E3*c,0x7ffffffffffff);eq(this.K).subscribe("onEnter",this.pg,this);this.C.ob([this.K])}GK(this);this.b.mf||(c=new Eba(this.b,this.T,b,w(this.Hh,this),w(this.getCurrentTime,this),w(this.yx,this),w(this.Fa.Da,this.Fa),w(this.ln,this),w(this.Jx,this)),this.A=new GB(c));this.ra=!1;rL(this,"newdata");KK(this,new Xy)};
h.getVideoData=function(){return this.b};
h.Eo=function(){if(Rx(this.b))Rx(this.b),this.aa.b=!0,4!=this.G&&(this.ba=tb(this.b.G)),Kx(this.b,this.T),Dx(this.b)&&(this.b.sa&&(this.M=new bba),this.b.g.b&&nL(this),mL(this,"i")),rL(this,"dataloaded"),this.P.g&&PK(this);else{var a=this.b;if(a.sa&&a.adaptiveFormats&&!a.Mc&&(Tx(a)||this.T.experiments.$("html5_manifestless_always"))){if(a=this.b,!Ex(a)){a.Mc=!0;var b=Gt(Fx(a,a.adaptiveFormats),a.Hj,a.lengthSeconds,!0);Gx(b)?b.dispose():(a.U=!1,a.b=b,a.b.subscribe("cuepointsadded",a.Co,a),G(a,a.b),
Dt(a.b)&&(a.M=!0));Hx(a)}}else if(this.b.U){a=this.b;b=this.T.experiments;a.oe=!0;a.U=!1;Pr.test(a.D)||Pi(Error("DASH MPD Origin invalid: "+a.D),"WARNING");var c=a.D,d=b.b("html5_dash_mpd_version");d&&(c=Qg(c,{mpd_version:d}));!a.isLowLatencyLiveStream&&b.$("html5_live_disable_dg_pacing")&&(c=Qg(c,{pacing:0}));Mt(new Ct(c,b),c).then(a.TA,a.SA,a);Qv("mrs")}else if(this.b.M)this.A&&(a=this.A.g,yB(a,"protected"),a.b.videoData.F?a.Rr():a.b.videoData.subscribe("dataloaded",a.Rr,a)),a=this.b,b=this.T.F,
c=this.T.experiments,Dt(a.b),b=new ku(Rw(b,a.b),c),G(a,b),a.M=!1,a.oe=!0,b.B(w(a.wz,a));else if(!this.b.oe){a:switch(b=this.T,a=this.b,c=this.Fa.Da(),d=AK(this.T),a.P){case 38:b=a.videoId.indexOf(":");b=Qg("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",{aid:a.videoId.slice(b+1),sig:a.vu});break a;case 30:c="//docs.google.com/";b.baseYtUrl!=aI.prototype.baseYtUrl&&(c=b.baseYtUrl);b=Qg(c+"get_video_info",{docid:a.videoId,authuser:a.Eb,authkey:a.ub,eurl:b.ba});break a;case 33:b=
Qg("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});break a;default:var e={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,eurl:b.ba,ps:b.b,el:b.ua,hl:b.ia,list:a.playlistId,agcid:a.lk,aqi:a.Jg,sts:16944,lact:AB()};b.forcedExperiments&&(e.forced_experiments=b.forcedExperiments);a.I?e.vvt=a.I:a.oauthToken&&(e.access_token=a.oauthToken);b.adFormat&&(e.adformat=b.adFormat);b.Za&&(e.cc_lang_pref=b.Za);b.ea&&2!=b.ea&&(e.cc_load_policy=b.ea);b.mute&&(e.mute=b.mute);a.ra&&2!=b.Xd&&
(e.iv_load_policy=a.ra);a.ia&&(e.itct=a.ia);a.Zc&&(e.autoplay="1");a.Si&&(e.autonav="1");a.Yl&&(e.noiba="1");a.isMdxPlayback&&(e.mdx="1");a.ga&&(e.ytrcc=a.ga);a.bm&&(e.utpsa="1");a.isFling&&(e.is_fling="1");a.vnd&&(e.vnd=a.vnd);a.Ca&&(e.force_ad_param_ad_type="video_ad",e.force_ad_param_url=a.Ca,e.force_ad_param_break_type="1",e.force_ad_param_offset_value=0);c.width&&(e.width=c.width);c.height&&(e.height=c.height);a.Cg&&(e.splay="1");a.ypcPreview&&(e.ypc_preview="1");b.ga&&(e.content_v=b.ga);a.ag&&
(e.livemonitor=1);b.Eb&&(e.authuser=b.Eb);b.pageId&&(e.pageid=b.pageId);b.X&&(e.ei=b.X);b.Ub&&(e.ssl_stream="1");b.C&&(e.iframe="1");a.Kj&&(e.tst=a.Kj);a.contentCheckOk&&(e.cco="1");a.racyCheckOk&&(e.rco="1");b.Ma&&a.liveStartWalltime&&(e.live_start_walltime=a.liveStartWalltime);b.Ma&&a.gm&&(e.live_manifest_duration=a.gm);b.Ma&&a.Ib&&(e.cyc=a.Ib);0!=d&&(e.vis=d);b.enableSafetyMode&&(e.enable_safety_mode="1");ta(e,b.g);b=Qg(b.baseYtUrl+"get_video_info",e)}c=XH(this.T);this.T.experiments.$("html5_retry_get_video_info")&&
(c=!this.T.isAd());a=this.b;d=this.T.experiments.g;e=!this.T.experiments.$("disable_gvi_cors");a.isDisposed()||(a.hd=b,a.yb=!!c||!1,a.Qe=!!d,a.Oe=!!e,a.oe=!0,a.Hr())}}};
h.pg=function(a){this.pauseVideo();a=0==a?new Xy:new Xy(14);KK(this,a)};
h.logEvent=function(a,b){if(this.A){var c=this.A,d={};d.rt=HB(c.b).toFixed(3);ta(d,JB(c.b));var e=c.b.b,f=c.b.videoData,k={ns:e.ca,html5:"1",el:e.ua,ps:e.b,fexp:e.experiments.experimentIds.join(",")||void 0,feature:f.Za||e.Yd||void 0,ctrl:f.Z||void 0,ytr:f.ca||void 0,list:f.playlistId,d:e.qb,f:e.Pa};if(e.experiments.$("legacy_autoplay_flag")?e.J:f.Zc)k.autoplay="1";f.subscribed&&(k.subscribed=f.subscribed);ta(d,k);delete d.fexp;ta(d,a);d=Jj(c.b.b.baseYtUrl+"player_204",d);NB(c,d,b)}};
h.qj=function(a){this.ba=this.ba.filter(function(b){return a!=b});
this.P.g&&PK(this)};
h.getPlayerState=function(){return this.o};
h.ln=function(){var a=this.getVideoData(),b=a.C;if(!b)return a.ba;var c=fb(this.b.g?this.b.g.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.ba};
h.uB=function(a){if(this.F){var b=this.F;if(cu(b.b)){for(var c=new window.Uint8Array(0),d=new window.DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var f=d.getUint32(e);if(1>f)break;var k=d.getUint32(e+4);if(1836019574==k)e+=8;else{if(1886614376==k){var k=a.subarray(e,e+f),m=new window.Uint8Array(c.length+k.length);m.set(c);m.set(k,c.length);c=m}e+=f}}a=c;0!=a.length&&sK(b,new oK(a),!1)}}};
h.DB=function(a){XK(this,a.reason,a.video.info,a.audio.info);var b=Mx(this.b);b&&b.G(a.video);this.M&&(this.M.g=a.audio.index)};
h.CB=function(a){WK(this,a.reason,a.audio.info)};
h.Mj=function(a){if("html5.invalidstate"==a.errorCode&&this.g){var b=this.g.fb();a.details.merr=b?b.toString():"0"}Cx(this.b)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)U(this.o,4)&&!this.T.experiments.$("disable_deferred_handle_expired_signatures")?(this.qb=!0,YK(this)):eL(this);else if(oL(a)&&this.b.g.g)a=this.b,a.g=a.g.g,iL(this),hL(this);else if(a.b)b=this.B?this.B.D.b:null,b=oL(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,
HK(this,a.errorCode,b,cw(a));else if(this.A)this.A.onError(a.errorCode,cw(a))};
h.pauseVideo=function(a){U(this.o,64)&&!a&&(U(this.o,8)?KK(this,fz(this.o)):KK(this,ez(this.o,8)));this.g&&(U(this.o,128)||(a?KK(this,dz(this.o,256)):KK(this,fz(this.o))),this.g.pause())};
h.seekTo=function(a,b,c){if(!this.g||!this.P.b||!this.g.b.src&&this.T.experiments.$("new_ended_replay"))this.b.startSeconds=a||0;else{a=Ve(a||0,Nx(this.b),pL(this,!1));var d=this.b.sa&&!U(this.o,4)&&fL(this,a);VK(this,d);this.J=this.b.startSeconds=a;zK(this.za,a);b?this.Gs():(U(this.o,32)||(KK(this,dz(this.o,32)),U(this.o,8)&&this.pauseVideo(!0),this.R("beginseeking",this)),c&&(this.Z||(this.Z=new be(this.Gs,c,this)),this.Z.start()),tL(this,!0));this.K&&a>this.b.Ff&&(this.C.Fh(this.K),this.K=null);
a<pL(this,!1)&&KK(this,ez(this.o,2));this.R("seekto",this,a)}};
h.Gs=function(){if(!(0,window.isNaN)(this.J)&&this.g){var a=this.Hh();!this.b.sa&&this.J>=Math.floor(a)?(this.J=a,this.R("endseeking",this),this.pauseVideo(!0),this.pg()):(this.B&&this.B.seek(this.J),(!this.b.sa||1<=this.g.b.readyState)&&this.g.seekTo(this.J))}this.Z&&(this.Z.dispose(),this.Z=null);U(this.o,32)&&(KK(this,dz(ez(this.o,32),16)),this.R("endseeking",this))};
h.getCurrentTime=function(){if(!(0,window.isNaN)(this.J))return this.J;var a=0;this.g&&1<=this.g.b.readyState?a=this.g.getCurrentTime():this.b&&(a=this.T.experiments.$("new_ended_replay")?this.b.startSeconds||0:this.b.Ij||this.b.startSeconds||0);this.T.experiments.$("new_ended_replay")&&(a=Ve(a,Nx(this.b),pL(this,!1)));return a};
h.Hh=function(){return this.b.lengthSeconds?this.b.lengthSeconds:pL(this,!1)?pL(this,!1):0};
h.yx=function(){var a=new Dba;if(this.ga&&this.B){var b=this.ga;a.A=b.D;a.C=b.F;a.b=By(b);b=this.B;b.b&&!rw(b.b)&&(a.g=yH(b.b.g.buffered,b.C),a.o=yH(b.b.b.buffered,b.C));a.b=DI(b.I);By(b.F);BI(b.F);AI(b.F)}else this.g&&(a.g=$y(this.g));this.M&&cba(this.M,a);return a};
h.lD=function(){if(this.F){var a=this.F,b=this.b.oauthToken;a.H=b;a.R("oauthtoken",b)}$K(this);rL(this)};
h.kD=function(a){HK(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
h.fF=function(a){var b=a.target.b.src;if(this.g&&this.g.b.src&&this.g.b.src==b){var c=!1;switch(a.type){case "error":if(this.T.Ue&&2==this.g.fb()){(0,window.setTimeout)(w(function(){this.g&&(this.b.ig&&this.g.load(),hL(this))},this),500);
if(this.A)this.A.onError("progressive.net");return}break;case "durationchange":var d=this.g.b.duration;(!this.I||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.b.lengthSeconds!=d&&(this.b.lengthSeconds=d,rL(this));break;case "ratechange":this.B&&(this.B.I.A=Math.max(1,this.g.b.playbackRate));this.C.tg();break;case "loadedmetadata":this.b.startSeconds&&(0<(this.g.b.seekable||tH()).length?this.T.experiments.$("new_ended_replay")?this.seekTo(this.b.startSeconds,!0):this.g.b.currentTime=this.b.startSeconds:
(this.ea=this.b.startSeconds,this.pauseVideo(!0)));case "loadstart":Oi(this.wa);this.Fk()||(this.wa=Ni(w(this.Fk,this),100));break;case "progress":Jba(this);case "suspend":tL(this);this.R("onLoadProgress",this,Iba(this));U(this.o,8)&&(this.Ib?c=!0:this.Ub&&((0,window.isNaN)(this.$a)||this.$a+1<this.g.getCurrentTime())&&(c=!0,this.$a=this.g.getCurrentTime()));break;case "seeked":uL(this);break;case "seeking":this.B&&this.B.seek(this.g.getCurrentTime());zK(this.za,this.g.getCurrentTime());break;case "playing":this.D.g("plev");
this.ib&&(this.ib=!1,fL(this)||this.seekTo(window.Infinity,!0));O(this.Ca);this.Ca=window.NaN;break;case "timeupdate":this.ub=!0;this.Fk();uL(this);tL(this);if(!this.g||this.g.b.src!=b)return;this.R("onVideoProgress",this,this.g.getCurrentTime());this.M&&this.H&&dba(this.M,this.g.getCurrentTime());break;case "waiting":if(0<(this.g.b.played||tH()).length&&0==FH(this.g).length&&0<this.g.getCurrentTime()&&5>this.g.getCurrentTime()&&this.B)return}this.g&&this.g.b.src==b&&(this.R("videoelementevent",a),
a=bz(this.o,a,this.za,this.jc),KK(this,a),c&&this.g.play())}};
h.$z=function(a){a="available"==a.b.availability;a!=this.Za&&(this.Za=a,this.R("airplayavailabilitychange"))};
h.aA=function(){var a=!!this.g.b.webkitCurrentPlaybackTargetIsWireless;a!=this.Ua&&(function(){this.T.$l=a}.apply(this),this.Ua=a)&&(Kx(this.b,this.T),mL(this,"m"));
this.R("airplayactivechange")};
h.Fk=function(){var a=this.g;a&&this.ub&&!this.b.be&&!Rv("vfp",this.D.b)&&2<=a.b.readyState&&!a.b.ended&&0<xH(FH(a))&&this.D.g("vfp");if((a=this.g)&&!this.b.be&&0<a.b.duration&&(!Rv("pbp",this.D.b)&&a.b.paused&&2<=a.b.readyState&&0<xH(FH(a))&&this.D.g("pbp"),0<a.getCurrentTime())){Oi(this.wa);O(this.U);this.U=window.NaN;this.b.be=!0;sL(this);if(this.A){a=this.A;if(!a.o){var b=KB(a,"playback");a.G=[10+a.b.videoData.Jj,10,10,40+a.b.videoData.kn-a.b.videoData.Jj,40];var c=a.A;Oi(c.C);c.C=window.NaN;
c.C=Ni(w(c.update,c),100);c.B=HB(c.g);c.o=mB(c.g);b.g=IB(a,!0);b.Ca=!0;b.send();a.b.videoData.Y&&(b=a.b.b,c=a.b.videoData,b=Qg(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Y,oid:c.Ke,ptchn:c.Yd,pltype:c.Le,content_v:b.ga}),NB(a,b));a.b.videoData.enableCardio&&(a.pj("playback"),a.B||TB(a));a.b.videoData.qf||PB(a);a.o=!0;a=a.A;a.b=a.g.g();a.B=HB(a.g);a.b-a.A>a.F&&(a.A=a.b)}Mi(w(this.Cm,this),4500)}this.R("playbackstarted");lv()&&
pv();return!0}return!1};
h.UA=function(){this.Pa&&(this.ca.qa(this.Pa),delete this.Pa,EH(this.g))};
h.Wx=function(){if(this.g){var a=this.getCurrentTime();if(U(this.o,8)&&cz(this.za,a,Bt(),$y(this.g))){var b=this.Hh();!this.b.sa&&b&&1>Math.abs(b-a)?this.pg():KK(this,dz(this.o,1))}else U(this.o,4)&&hz(this.o)&&5<$y(this.g)&&KK(this,ez(this.o,1));tL(this)}};
h.SD=function(){var a;if(a=U(this.o,1)&&this.B){a=this.B;var b=this.getCurrentTime();if(!a.b||rw(a.b))a=!1;else{var c=vH(a.b.g.buffered,b),d=vH(a.b.b.buffered,b);a=-1==c&&a.A.g.startTime>b||-1==d&&a.g.g.startTime>b}}a&&(this.A&&zB(this.A.g,"reseek","1",void 0),this.T.experiments.$("html5_reseek_on_infinite_buffer")&&this.seekTo(this.getCurrentTime(),!0))};
h.Jx=function(){this.b.sa||this.R("connectionissue")};
h.WD=function(){this.g.seekTo(this.g.getCurrentTime()+.1)};
h.TB=function(a){var b={};ta(b,this.T.g);b.cpn=this.b.clientPlaybackNonce;this.b.I&&(b.vvt=this.b.I);this.T.Eb&&(b.authuser=this.T.Eb);this.T.pageId&&(b.pageid=this.T.pageId);kc(a.A,b);lK(a,a.B)};
h.xB=function(a,b,c,d){d=n(d)?d:"YTP_ERROR_LICENSE";c=c.substr(0,256);if(b)HK(this,a,d,c);else if(this.A)this.A.onError(a,c)};
h.yB=function(){mL(this,"r");rL(this)};
h.eF=function(a){this.R("heartbeatparams",a)};
h.Gq=function(){if(!this.b.be&&this.g){0<this.g.b.readyState&&5<=$y(this.g)&&(KK(this,dz(this.o,1)),this.R("playbackstalledatstart"));if(this.A)this.A.onError("qoe.start15s");this.R("loadsofttimeout")}};
h.Cm=function(){if(!this.ra){var a=new tK(this.b),b;"c1a"in a.A?(b=q("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)Mi(w(this.Cm,this),4500);else{var c;if(a.b&&a.b.ea){b=[a.b.ea];for(c in a.g)if(a.A[c]&&a.g[c]){var d=a.g[c](a.A);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.A&&(a=this.A,a.I||(b=KB(a,"atr"),b.I=c,b.send(),a.I=!0),this.ra=!0)}}};
h.dF=function(){return this.g?this.g.b.playbackRate:1};var z$={"api.invalidparam":2,auth:150,"drm.auth":150,heartbeat:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"html5.unsupportedlive":5,"drm.unavailable":5};y(wL,F);h=wL.prototype;h.jF=function(){return Yb(this.A)};
h.kF=function(){return Yb(this.o)};
h.fa=function(){return this.b};
h.addEventListener=function(a,b){if(v(b)){var c=b,d=function(){q(c).apply(window,arguments)};
b=this.C[c]=d}this.app.ba.subscribe(a,b);this.app.T.experiments.$("publish_internal_events_externally")&&this.app.J.subscribe(a,b)};
h.jx=function(a,b){var c=v(b)?a+b:a+na(b);if(!this.B[c]){var d;v(b)?d=function(){q(b).apply(window,arguments)}:d=b;
var e=w(function(a){d({target:this.g,data:a})},this);
this.B[c]=e;this.app.ba.subscribe(a,e);this.app.T.experiments.$("publish_internal_events_externally")&&this.app.J.subscribe(a,e)}};
h.removeEventListener=function(a,b){if(v(b)){var c=this.C[b];ec(this.C,b);b=c}lg(this.app.ba,a,b);this.app.T.experiments.$("publish_internal_events_externally")&&lg(this.app.J,a,b)};
h.kx=function(a,b){var c=v(b)?a+b:a+na(b),d=this.B[c];d&&(lg(this.app.ba,a,d),this.app.T.experiments.$("publish_internal_events_externally")&&lg(this.app.J,a,d),ec(this.B,c))};
h.getPlayerState=function(){return A9(this.app)};
h.seekTo=function(a,b){I9(this.app,!0,this.playerType);Y9(this.app,a,b,void 0,this.playerType)};
h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
h.Ih=function(){return x9(this.app,this.playerType)};
h.Db=function(){return this.app.U.volume};
h.setVolume=function(a){a=Ve(Math.floor(a),0,100);T9(this.app,{volume:a,muted:this.Jc()})};
h.Jc=function(){return this.app.U.muted};
h.mute=function(){T9(this.app,{muted:!0,volume:this.Db()})};
h.unMute=function(){T9(this.app,{muted:!1,volume:Math.max(5,this.Db())})};
h.ed=function(){I9(this.app,!0,this.playerType);X9(this.app,this.playerType)};
h.pauseVideo=function(){var a=this.app,b=this.playerType;if(NL(a.Oa)){var c=a.Z.play_pause?a.ra:null;c?c.re("control_pause"):a.pauseVideo(b)}};
h.Uj=function(){var a=this.app;a.T.K&&(a.b.Ia()&&yy(a.b),a.b.R("pageTransition"));W9(a)};
h.gF=function(){};
h.lF=function(){return this.app.P};
h.Kh=function(a){t9(this.app,a)};
h.Nj=function(){return this.app.T.Y?u9:[1]};
h.Pj=function(){var a=hq(this.app,this.playerType);return a&&(a=a.getVideoData().A)?a.video.quality:"unknown"};
h.Tj=function(a){var b=this.app,c=hq(b,this.playerType);c&&!b.T.isMobile&&(a=yu(a,a,!0),mL(c,"p",a))};
h.Is=function(){var a=hq(this.app,this.playerType);return a?(a=zi(kL(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
h.oF=function(){return this.nn()};
h.pF=function(){return 1};
h.nn=function(){return p9(this.app)};
h.qF=function(){return 0};
h.setSize=function(){this.app.D.Je()};
h.Ms=function(a){M9(this.app,a?2:1)};
h.Ns=function(a){M9(this.app,a)};
h.wF=function(a){var b=this.app;b.T.am=a;b.b.R("minimized")};
h.Qj=function(a){var b=this.app.B;b.isAvailable(a)&&(a=zL(b,a))&&!a.loaded&&a.load()};
h.Ps=function(a){var b=this.app.B;b.isAvailable(a)&&(a=zL(b,a))&&a.loaded&&a.unload()};
h.on=function(a,b,c){a=F9(this.app,vI(a,b,c),this.playerType);I9(this.app,a,this.playerType)};
h.mn=function(a,b,c){var d=this.playerType;J9(this.app,new ox(vI(a,b,c)),d)};
h.tF=function(a,b,c){a=wI(a,b,c);b=F9(this.app,a,this.playerType);I9(this.app,b,this.playerType);b=this.app;(a=(new N(a.mediaContentUrl)).b)&&bI(b.T,a)};
h.iF=function(a,b,c){a=wI(a,b,c);b=this.playerType;J9(this.app,new ox(a),b);b=this.app;(a=(new N(a.mediaContentUrl)).b)&&bI(b.T,a)};
h.getVideoUrl=function(){var a=this.app.T;if(a.D)return"";var b=S4(this.app),c=void 0;b.sa||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.Ce()||void 0,c)};
h.Oj=function(){return z9(this.app)};
h.Js=function(){var a=this.app,b=S4(a),c=a.D.Da(),a="https://"+hI(a.T)+"/embed/"+b.videoId;b.playlistId&&(a=Qg(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+Ha(a)+'" frameborder="0" allowfullscreen></iframe>'};
h.Hs=function(a,b,c){return R9(this.app,a,b,c)};
h.Ls=function(a){a:{for(var b=this.app,c=b.g.C.b.b||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.g.C.Fh(e);iq(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
h.Ks=function(a,b,c,d){var e=this.app;e.Y=!1;K9(e,a,b,c,d);I9(this.app,!0,this.playerType)};
h.hF=function(a,b,c,d){var e=this.app;e.Y=!0;K9(e,a,b,c,d)};
h.Rj=function(){N9(this.app);I9(this.app,!0,this.playerType)};
h.Sj=function(){O9(this.app);I9(this.app,!0,this.playerType)};
h.pn=function(a){P9(this.app,a);I9(this.app,!0,this.playerType)};
h.setShuffle=function(a){var b=this.app.o;b&&b.setShuffle(a)};
h.vF=function(a){var b=this.app.o;b&&(b.H=a)};
h.Ic=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.A;c++){var d=a.vb(c);d&&b.push(d.videoId)}return b};
h.mF=function(){var a=this.app.o;return a?a.Pb():-1};
h.Ce=function(){var a=this.app.o;return a&&a.B?a.B.toString():null};
h.De=function(a,b,c){return $9(this.app,a,b,c)};
h.zb=function(a,b,c){return $9(this.app,a,b,c)};
h.Jh=function(a){return a$(this.app,a)};
h.getVideoData=function(){var a={},b=hq(this.app,this.playerType);b&&(b=b.getVideoData(),a.video_id=b.videoId,a.author=b.author,a.title=b.title);(b=this.Ce())&&(a.list=b);return a};
h.Os=function(){j9(this.app,!0)};
h.rF=function(){j9(this.app,!1)};
h.getAdState=function(){return this.app.getAdState()};
h.sF=function(a){if(a!=this.app.X.args.video_id)return!1;a=(a=hq(this.app,1))?a.getPlayerState():null;return!(!a||!U(a,128)||5!=z$[a.b.errorCode])};
h.nF=function(){var a=this.app.X.clone(),b=a.args,c=S4(this.app),d=hc(c.o);!c.sa&&0<c.startSeconds&&(d.start=c.startSeconds);ta(b,d);return a};
h.xF=function(a,b){var c=this.app;c.T.o&&(c.F||(c.F=new y5(c),m9(c,c.F)),z5(c.F,a,b),6!=c.K&&(c.F.Va(c.Oa)?(1!=c.K&&3!=c.K||!b||o9(c,c.G),a.length&&1!=c.K&&n9(c)):o9(c,c.F)))};
h.destroy=function(){this.app.dispose()};
h.uF=function(){var a=hq(this.app);a&&!U(a.getPlayerState(),128)&&(a.R("internalAbandon"),GK(a),FK(a))};
h.O=function(){if(this.b){for(var a in this.A)this.b[a]=null;for(a in this.o)this.b[a]=null;this.b=null}this.C=this.B=null;wL.L.O.call(this)};y(xL,wL);h=xL.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Hs=function(a,b,c,d,e){return R9(this.app,a,b,c,d,e)};
h.yF=function(a,b,c){sH(this.app.T.H,a,{Ye:b,vg:c})};
h.zF=function(a){var b=this.playerType;J9(this.app,new ox(a),b)};
h.getPlayerState=function(a){return A9(this.app,a)};
h.Vj=function(a){F9(this.app,a,this.playerType)};
h.Ts=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.H&&b.H.getVideoData().videoId==a.videoId||(a=new ox(a),G9(b,a))};
h.ed=function(){X9(this.app,this.playerType)};
h.seekTo=function(a,b){Y9(this.app,a,b,void 0,this.playerType)};
h.Ks=function(a,b,c,d){var e=this.app;e.Y=!1;K9(e,a,b,c,d)};
h.Rj=function(a){N9(this.app,a)};
h.Sj=function(a){O9(this.app,a)};
h.pn=function(a){P9(this.app,a)};
h.fd=function(a,b,c){var d=this.app,e=this.playerType;Y9(d,d.getCurrentTime()+a,b,c,e)};
h.NF=function(a){if(a){var b=this.Ce();if(!b||b==a.list){var c=a.video;(b=this.app.o)?this.app.Oa.Ia()&&((c=c[b.Pb()])&&c.encrypted_id!=b.vb().videoId||(a.index=b.Pb())):d9(this.app,{list:a.list,index:a.index,playlist_length:c.length});hy(this.app.o,a)}}else a=this.app,e9(a),a.b.va("onPlaylistUpdate")};
h.MF=function(){MH()};
h.OF=function(a){var b=hq(this.app,this.playerType||1);b&&(b=b.getVideoData(),tx(b,a),b.R("dataupdated"))};
h.EF=function(){var a=this.app.getVideoData();return a.o.storyboard_spec||a.o.live_storyboard_spec};
h.CF=function(){var a=this.app.T;return{Sb:a.Sb,Ma:a.Ma}};
h.getVideoData=function(){var a=xL.L.getVideoData.call(this),b=hq(this.app,this.playerType);b&&(b=b.getVideoData(),a.backgroundable=b.backgroundable,a.cpn=b.clientPlaybackNonce,a.isLive=b.sa,a.itct=b.ia);return a};
h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):xL.L.getCurrentTime.call(this)};
h.Ih=function(a){return a?x9(this.app,a):xL.L.Ih.call(this)};
h.rf=function(){var a=this.app.getVideoData(),b=hq(this.app),c=ML(this.app.Oa),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.Ih(),k=hq(this.app,void 0);if(k)var m=HH(k.g),k=(0,window.isNaN)(m)?k.getCurrentTime():m;else k=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,loaded:k,seekableEnd:pL(b,!0),seekableStart:Nx(b.b)}};
h.nn=function(a){return p9(this.app,a)};
h.canPlayType=function(a){return this.app.canPlayType(a)};
h.HF=function(a,b){w9(this.app,a,this.playerType,b)};
h.BF=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.b&&b.sa){var c=b.b.b[b.A.id];c&&c.index?(b=c.index.Nf(a),c=c.index.Fe(b),a={sequence:b,elapsed:Math.floor(1E3*(a-c))}):a=null}else a=null;return a};
h.Dg=function(a){var b=this.app,c=hq(b,this.playerType);c&&b.T.wa.contains(a.toString())&&c.A&&(b=KB(c.A,"engage"),b.A=a,b.send(void 0))};
h.Mh=function(a,b){var c=zL(this.app.B,"iv-module");c&&IF(c)&&KF(c,a,b)};
h.FF=function(a,b){var c=this.app;c.ea&&(c=c.ea,c.P&&J6(c.P,a,b))};
h.Lh=function(){return v9(this.app,this.playerType)};
h.qn=function(a){var b=this.app,c=this.playerType,d=b.Z.set_audio_track?b.ra:null;if(d)d.re("control_set_audio_track",a);else{if(c=b=hq(b,c))if(c=!b.isDisposed()&&!U(b.o,128)&&b.b.g.b)c=b.B,c.isDisposed()?a=!0:(d=c.D,a=a.id,d.B="m",d.o=d.C.b[a],d.I=JI(d),c.R("audioformatchange",new FI(d.I,d.A,d.B)),c.b&&!c.b.b.remove?a=!1:(cK(c,c.g,JI(c.D)),iJ(c.A),iJ(c.g),VJ(c),a=!0)),c=!a;c&&(iL(b),hL(b))}};
h.Qs=function(){var a=hq(this.app,this.playerType);return a.b.g?a.b.g.audioTracks:[]};
h.DF=function(){var a=hq(this.app,this.playerType);return a&&a.getVideoData().A?Du(xK(a.ia,a.b)):"unknown"};
h.JF=function(a,b){Z9(this.app,a,b)};
h.AF=function(){var a=zL(this.app.B,"fresca");a&&a.o.o()};
h.LF=function(){var a=this.app.ea;a.ga=!1;a.wg()};
h.GF=function(){var a=this.app.ea;a.ga=!0;a.wg()};
h.Ss=function(){return AK(this.app.T)};
h.KF=function(){return!0};
h.Rs=function(a){return oF(this.app.D,a)};
h.IF=function(a){this.app.T.enableSafetyMode=a};
h.cE=function(a){Th();V9(this.app,a?2:0)};
h.to=function(){var a=hq(this.app),b=a.T.experiments.$("disable_html5_stopvideo_cancel_requests");a.pauseVideo(b);a.B&&(a.B.H=!0,b||MJ(a.B));if(a=zL(this.app.B,"endscreen"))a=Iy(a)?!!a.g.B.B:!1,a&&CL(this.app.Oa,!0)};
h.Uj=function(){var a=this.app.T;!a.experiments.$("disable_new_pause_state3")&&wy(a)&&"blazer"!=a.b?this.to():xL.L.Uj.call(this)};
h.ep=function(){return qL(hq(this.app,this.playerType),!0)};
h.Qm=function(a){var b=zL(this.app.B,"captions");NG(b,a,!0)};
h.ll=function(){var a=zL(this.app.B,"captions");return a?MG(a):null};
h.zr=function(){var a=zL(this.app.B,"captions");LG(a,{},!0)};y(yL,xL);h=yL.prototype;h.on=function(a,b,c){this.Vj(vI(a,b,c))};
h.xa=function(){return pF(this).element};
h.Ic=function(){return this.app.o};
h.getVideoData=function(a){return(a=hq(this.app,a||this.playerType))&&a.getVideoData()};
h.Ia=function(){return this.app.T.jf};
h.addEventListener=function(a,b,c){this.app.J.subscribe(a,b,c)};
h.removeEventListener=function(a,b,c){lg(this.app.J,a,b,c)};
h.R=function(a,b){T(this).experiments.$("publish_internal_events_externally")||!T(this).Ma||"videodatachange"!=a&&"audiotrackchanged"!=a&&"resize"!=a&&"cardstatechange"!=a||this.app.ba.R.apply(this.app.ba,arguments);this.app.J.R.apply(this.app.J,arguments)};
h.va=function(a,b){T(this).experiments.$("publish_internal_events_externally")||this.app.ba.R.apply(this.app.ba,arguments);this.app.J.R.apply(this.app.J,arguments)};
h.Tj=function(a){w9(this.app,a,this.playerType)};
h.Oj=function(a){return z9(this.app,a)};
h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2==e;d&&f&&(f=!1,e=1);d=this.getVideoData(e);var k;a||d.sa||(k=Math.floor(this.getCurrentTime(e)));return this.app.T.getVideoUrl(d.videoId,f?void 0:this.Ce()||void 0,k,b,c)};
h.Mh=function(a,b){var c=zL(this.app.B,"iv-module");c&&KF(c,a,b)};
h.Dg=function(a,b){var c=this.app,d=hq(c,this.playerType);d&&c.T.wa.contains(a.toString())&&d.A&&(c=KB(d.A,"engage"),c.A=a,c.send(b))};
h.ob=function(a,b){Q9(this.app,a,b||this.playerType)};
h.qj=function(a){var b=hq(this.app,this.playerType);b&&b.qj(a)};
h.zb=function(a,b,c){return $9(this.app,a,b,c,!0)};
h.Jh=function(a){return a$(this.app,a,!0)};
h.De=function(a,b,c){return $9(this.app,a,b,c,!0)};
h.Kh=function(a,b){t9(this.app,a,b)};
h.setVolume=function(a){a=Ve(a,0,100);T9(this.app,{volume:a,muted:this.Jc()},!0)};
h.mute=function(){T9(this.app,{muted:!0,volume:this.Db()},!0)};
h.unMute=function(){T9(this.app,{muted:!1,volume:Math.max(5,this.Db())},!0)};y(PL,gq);h=PL.prototype;h.Va=function(){return QL(this.b)};
h.create=function(){PL.L.create.call(this);var a=new dq(1E3,0x7ffffffffffff,{priority:0});this.ob([a]);this.b.addEventListener("heartbeatparams",this.jt,this);this.b.addEventListener("presentingplayerstatechange",this.kt,this)};
h.destroy=function(){VL(this);PL.L.destroy.call(this);this.b.removeEventListener("heartbeatparams",this.jt,this);this.b.removeEventListener("presentingplayerstatechange",this.kt,this)};
h.dc=function(){this.C=!0;SL(this,2E3)};
h.jt=function(a){this.A=a;SL(this,2E3)};
h.kt=function(a){U(a.state,2)||U(a.state,64)?VL(this):(U(a.state,1)||U(a.state,8))&&SL(this,2E3)};
h.YD=function(){var a,b,c=T(this.b),d=this.b.getVideoData();b=c.baseYtUrl;U(Xz(this.b),4)?this.g=window.NaN:RL(this)||d.sa?(!Lx(d)||d.sa?(a="GET",c=c.g,b=Qg(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.I,access_token:d.oauthToken})):(a="GET",b=Qg(this.A.url,{request_id:Iv()}),d.I&&(b=Qg(b,{vvt:d.I})),d.oauthToken&&(b=Qg(b,{access_token:d.oauthToken}))),b=Qg(b,{cpn:d.clientPlaybackNonce}),Sj(b,{format:"RAW",method:a,timeout:3E4,ab:w(this.yz,
this),onError:w(this.xz,this),wc:w(this.zz,this),withCredentials:!0})):VL(this)};
h.yz=function(a){if(this.g){a=a.responseText;var b;b=(b=UL(a))?"ok"==b.status?b.stop_heartbeat?2:0:"stop"==b.status?1:"live_stream_offline"==b.status?0:-1:(b=a.match(A$))?"0"==b[1]?0:1:-1;if(-1==b)TL(this,"decode");else if(2!=b||RL(this))if(this.B=0,this.g=window.NaN,1==b){this.o=!1;b="YTP_ERROR_LICENSE";var c=UL(a);c?a=c.reason||P(b):((a=a.match(A$))&&(a=(0,window.parseInt)(a[1],10))&&(b=Ty(a)),a=P(b));HK(this.b.app.g,"heartbeat",a,void 0)}else this.o=!0,SL(this);else VL(this),this.o=!0}};
h.xz=function(a){TL(this,"net-"+a.status)};
h.zz=function(){TL(this,"timeout")};
var A$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;y(XL,F);XL.prototype.O=function(){this.b=null;XL.L.O.call(this)};YL.prototype.Na=function(a){return null!=a&&a.hostname===this.hostname&&a.status===this.status&&a.contentProfileToken===this.contentProfileToken&&a.deviceId===this.deviceId&&a.active===this.active&&a.g==this.g&&a.b===this.b};y(dM,F);dM.prototype.O=function(){this.stop();dM.L.O.call(this)};
dM.prototype.stop=function(){null!==this.g&&(O(this.g),this.g=null);null!==this.b&&(this.b.cancel(),this.b=null)};y(eM,F);eM.prototype.O=function(){this.b&&(O(this.b),this.b=0);eM.L.O.call(this)};
eM.prototype.o=function(a,b,c){for(;;){if(D()>=a){c(Error("tryLock expired"));return}xj(this.A,this.oa,.5);if(!yj(this.g))break}xj(this.g,this.oa,.5);if(yj(this.A)==this.oa)b(this.oa);else{var d=this;this.b=Mi(function(){d.b=0;yj(d.g)==d.oa?b(d.oa):d.o(a,b,c)},50)}};
y(fM,F);fM.prototype.O=function(){this.b.dispose();fM.L.O.call(this)};
fM.prototype.id=function(){return this.oa};y(lM,F);h=lM.prototype;h.O=function(){lM.L.O.call(this);this.o&&(Oi(this.o),this.o=0);this.A&&(this.A.dispose(),this.A=null);this.g&&(this.g.dispose(),this.g=null);gm(this.B)};
h.eq=function(a){this.isDisposed()||Yba(this.A,a).then(function(){this.isDisposed()||this.g||($ba(this),this.g=new dM(Xb(this.b.b),w(this.rC,this)))},function(){this.g&&(this.g.dispose(),this.g=null)},this)};
h.rC=function(a,b){a.contentProfileToken=b.contentProfileToken;null!==b.deviceId&&(a.deviceId=b.deviceId);a.status=b.status;1===a.status?a.b=b.timestamp:a.active=!1;a.g=b.b;if(null===iM(this.b)){var c=Xb(this.b.b);Lb(c);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(1===f.status){f.active=!0;break}}}kM(this)};
h.reset=function(){this.b=new gM;Bj("yt-accelerator-discover")};
h.ay=function(a){"yt-accelerator-discover"===a.event.key&&(this.b=hM())};y(mM,F);ca(mM);mM.prototype.init=function(a){this.b||(this.b=new lM(a.addresses||[],!!a.probe,a.xsrfToken||"",a.applianceQueryParams||""),this.g=new XL(this.b))};
mM.prototype.O=function(){this.g&&(this.g.dispose(),this.g=null);this.b&&(this.b.dispose(),this.b=null);mM.L.O.call(this);delete mM.Rb};y(qM,gq);h=qM.prototype;h.Va=function(){return!!this.b.getVideoData().spacecastModule};
h.create=function(){qM.L.create.call(this);if(this.b.getVideoData().$a){var a={addresses:this.b.getVideoData().$a,probe:!0};window.environment&&window.environment.xsrf_token&&(a.xsrfToken=window.environment.xsrf_token);mM.getInstance().init(a)}var b;a:{a=(a=yj("yt-accelerator-discover"))&&a.addrmap||{};for(b in a){var c=a[b];if(c.active&&(c=c.last_probe_tstamp,!(c&&12E5<Date.now()-c))){b="//"+b;break a}}b=null}this.g=b;this.A=(b=yj("yt-accelerator-discover"))&&b.qparamsmap||{};this.load()};
h.destroy=function(){qM.L.destroy.call(this);this.g=null;this.A={}};
h.load=function(){qM.L.load.call(this);if(this.g){var a=this.b.getVideoData().videoId,b=D();Nba(this.g,a,w(this.Cy,this,a,b),this.A)}else kq(this)};
h.Td=function(a){switch(a){case "getVideo":a=this.b.getVideoData();var b=!!(a&&Ox(a)&&a.A&&a.A.video.isAccelerated);return{docid:a.videoId,isAccelerated:b}}};
h.Cy=function(a,b,c){if(this.g){b=D()-b;var d=!1,e=this.b.getVideoData(),f="unknown",k=nM(c),m=!0;e.bi=Yb(k);if(c){c.status&&(f=c.status);"ux"in c&&(m=!!c.ux);if(k=oM(this.g,c,e.adaptiveFormats,m,this.A))e.spacecastAdaptiveFormats=k;if(c=oM(this.g,c,e.xg,m,this.A))e.spacecastFormatMap=c;if(k||c)Kx(e,T(this.b)),e.K||Lba(this.b),d=Du(e.th),this.b.Tj(d),d=!0}(c=2==this.b.getPresentingPlayerType())&&!d?wd(function(){var a=this.b.app;a.G&&a.G.D&&(a=a.G,a.B&&(a=a.o?a.o.o:a.A.g.b,null!=a&&a.Yj()))},this):
kq(this);
$i("yt-spacecast-cache-watch-video-cached",a,d);a={a:"spacecast",module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,cpn:e.clientPlaybackNonce,fmts:e.bi.join(","),isAd:c?1:0};kc(a,this.A);Wp("/gen_204?"+Og(a),void 0)}};y(sM,gq);h=sM.prototype;h.Va=function(){return tM(this.b)};
h.create=function(){sM.L.create.call(this);this.load()};
h.load=function(){sM.L.load.call(this);this.b.addEventListener("resize",this.tn,this);var a=uM(T(this.b).b)?function(){}:w(this.ox,this);
hca(this,a)};
h.unload=function(){vM(this,null);this.b.removeEventListener("resize",this.tn,this);this.o&&(this.o.abort(),this.o=null);sM.L.unload.call(this)};
h.Td=function(a,b){if(!uM(T(this.b).b))return null;switch(a){case "loadCustomEndscreenJson":var c=new rM(b);vM(this,c);return!0;case "unloadCustomEndscreenJson":return vM(this,null),!0}return null};
h.ox=function(){var a=this.b.getVideoData().videoId;this.o&&this.o.abort();a={gc:w(this.cB,this,a),dd:{v:a}};"embedded"==T(this.b).ua&&(a.dd.ptype="embedded");var b=this.b.getVideoData().o.iv_endscreen_url;b&&(this.o=Sj(b,a))};
h.cB=function(a,b){var c=this.o=null;if(200==b.status){var d=b.responseText;")]}"==d.substring(0,3)&&(d=d.substring(3),c=new rM(JSON.parse(d)))}vM(this,c)};
for(var B$=[346,426,470,506,570,640,853,1280,1920],C$=[],D$=0;D$<B$.length;D$++)C$.push("ytp-ce-size-"+B$[D$]);var $pa=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];h=sM.prototype;
h.tn=function(){if(this.A&&this.A.elements){var a=this.b.Rs(),b=a.width,c=a.height,d=b/c,e;e=null;for(var f=-1,k=0;k<B$.length;k++){var m=Math.abs(b-B$[k]);if(-1==f||e>=m)f=k,e=m}e=C$[f];for(f=0;f<this.A.elements.length;++f){var m=this.A.elements[f].id,k=this.g[m],l=this.C[m],p=l.width*d/l.aspectRatio,m=Math.round(p*c),t=a.left+Math.round(l.left*b),u=a.top+Math.round(l.top*c);Xq(k.element,Math.round(l.width*b),m);Mq(k.element,t,u);ie(k.element,$pa);J(k.element,[["ytp-ce-top-left-quad","ytp-ce-top-right-quad"],
["ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"]][Math.round(l.top+p/2)][Math.round(l.left+l.width/2)]);ie(k.element,C$);J(k.element,e);(k=jf("div","ytp-ce-expanding-overlay-body",k.element)[0])&&Gq(k,"height",m+"px")}}};
h.dc=function(a){sM.L.dc.call(this,a);if("ytp-ce-in-endscreen"==a.getId())zM(this,this.A.impressionUrls),this.G=!1,this.A.skip&&1==this.b.getPlayerState()&&(this.b.seekTo(window.Infinity),this.G=!0);else if(!this.G){a=a.getId().substring(15);var b=this.g[a],c=this.C[a];J(b.element,"ytp-ce-element-show");b.element.removeAttribute("aria-hidden");zM(this,c.impressionUrls);T(this.b).Ma&&this.b.va("endscreenelementshown",a)}};
h.tc=function(a){if("ytp-ce-in-endscreen"!=a.getId()&&!this.G){var b=a.getId().substring(15),c=this.g[b];he(c.element,"ytp-ce-element-show");c.element.setAttribute("aria-hidden",!0);sM.L.tc.call(this,a);T(this.b).Ma&&this.b.va("endscreenelementhidden",b)}};
h.Kw=function(a){a=["div",["ytp-ce-element","ytp-ce-video"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",xM(wM(this,a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.b,tabindex:"-1"},["div",["ytp-ce-video-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-video-duration",a.videoDuration]]];return new Q(a)};
h.Jw=function(a){a=["div",["ytp-ce-element","ytp-ce-playlist"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",xM(wM(this,a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.b,tabindex:"-1"},["div",["ytp-ce-playlist-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-playlist-count",["div","ytp-ce-playlist-icon"],["div","ytp-ce-playlist-count-text",a.playlistLength]]]];return new Q(a)};
h.Iw=function(a){var b=["div",["ytp-ce-element","ytp-ce-channel",a.G?"ytp-ce-channel-this":"ytp-ce-channel-that"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",["div","ytp-ce-expanding-overlay-body-padding",["a",["ytp-ce-channel-title","ytp-ce-link"],a.title,{href:a.b,target:"_blank",tabindex:"-1"}],a.o?["div",
"ytp-ce-channel-subscribe"]:"",a.metadata?["div",["ytp-ce-channel-metadata","yt-ui-ellipsis","yt-ui-ellipsis-3"],a.metadata]:""]]]],["div","ytp-ce-expanding-image",xM(wM(this,a))]],b=new Q(b),c=jf("div","ytp-ce-channel-subscribe",b.element)[0];a.o&&sh(c,a.o);return b};
h.Lw=function(a){a=["div",["ytp-ce-element","ytp-ce-website"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",["div","ytp-ce-expanding-overlay-body-padding",["div","ytp-ce-website-title",a.title],["div","ytp-ce-website-metadata",a.metadata],["a",["ytp-ce-website-goto","ytp-ce-link"],a.callToAction,{href:a.b,
target:"_blank",tabindex:"-1"}]]]]],["div","ytp-ce-expanding-image",xM(wM(this,a))],["div","ytp-ce-expanding-icon",xM(a.F)]];return new Q(a)};
h.Cq=function(a,b){if(a.b&&(!b||!b.keyCode||13==b.keyCode)){for(var c=b.target;c&&!ee(c,"ytp-ce-element");){ee(c,"subscribe-label")&&zM(this,a.clickUrls);if(ee(c,"ytp-ce-channel-subscribe"))return;c=If(c)}b.preventDefault();b.stopPropagation();b.ctrlKey||b.metaKey||"new"==a.H?(zM(this,a.clickUrls),this.b.pauseVideo(),this.Zs(a.b,a.B,"_blank")):(c=w(this.Zs,this,a.b,a.B,"_top"),zM(this,a.clickUrls,c))}};
h.$s=function(a){zM(this,a.D);yM(this,a.id,!0)};
h.gt=function(a){yM(this,a.id,!1)};
h.Zs=function(a,b,c){sy(a,b);ty(a,c)};y(AM,gq);h=AM.prototype;h.Va=function(){return Sx(this.b.getVideoData(),"ypc_clickwrap_module")};
h.create=function(){AM.L.create.call(this);this.load()};
h.load=function(){AM.L.load.call(this);this.g=new Q(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",P("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.b.getVideoData().o.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],P("YTP_YPC_START_RENTAL_BUTTON")]]);mr(this.b,this.g.element,4);G(this,this.g);this.A=this.g.la["ytp-ypc-clickwrap-confirm"];this.g.S(this.A,"click",this.LA,this)};
h.unload=function(){AM.L.unload.call(this);vq(this.g);this.g.dispose();this.g=null};
h.LA=function(){kq(this);this.destroy()};BM.prototype.b=function(a,b){CM(this,"index");this.o.push({index:this.G++,weight:a,value:b});this.g+=a;for(CM(this,"index");this.g>this.D;){var c=this.g-this.D,d=this.o[0];d.weight<=c?(this.g-=d.weight,this.o.shift()):(this.g-=c,d.weight-=c)}};
BM.prototype.A=function(){return this.C?(DM(this,this.B-this.C)+DM(this,this.B)+DM(this,this.B+this.C))/3:DM(this,this.B)};EM.prototype.b=function(a,b){this.g.push(b);this.g.length>this.o&&this.g.shift()};
EM.prototype.A=function(){return Ze.apply(null,this.g)};y(LM,F);LM.prototype.Ww=function(a){if(this.g){var b;var c=na(a);b=this.C[c];if(!b)if(this.g){if(b=a(this.g)){a=this.C[c]=b;for(var d in this.D)a.subscribe(d,this.D[d]);G(this,b)}}else b=null;b&&b.Va(this.g)&&!kb(this.b,b)&&(b.create(),this.b.push(b),kb(this.B,b.Ea)&&(b.F=this.F,b.dj(!!b.F)))}};
LM.prototype.G=function(a,b){E(this.b,function(c){c.R(a,b)})};
LM.prototype.isAvailable=function(a){a=zL(this,a);return!(!a||!a.aa)};QM.prototype.fb=function(){return this.g};
QM.prototype.Kb=function(){return this.B};
QM.prototype.toString=function(){return"AdError "+this.fb()+": "+this.b+(null!=this.o?" Caused by: "+this.o:"")};y(RM,mc);RM.prototype.getError=function(){return this.A};var $0="adMetadata click companionBackfill complete durationChange firstquartile impression loaded log midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked volumeChange vpaidEvent youTubeChannelMetadata".split(" "),E$="abandon acceptinvitation acceptinvitationlinear click close collapse companionClick complete creativeview engagedview exitfullscreen expand externalActivityEvent firstquartile fullscreen instreamAdComplete measurable_impression midpoint mute MUTE_AD pause progress replay resume rewind show_ad skipshown skip start stop thirdquartile unmute userClose video_card_endcap_action video_card_endcap_collapse video_card_endcap_dismiss video_card_endcap_impression videoShareClicked videoShareShown viewable_impression why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),
aqa="acceptinvitation click close collapse creativeview expand progress".split(" "),F$=["viewable_impression","measurable_impression","externalActivityEvent"],G$={measurable_impression:"measurable_impression",viewable_impression:"viewable_impression",fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};y(SM,mc);SM.prototype.Wa=function(){return this.A};
var uia={QH:"adCanPlay",rJ:"contentPauseRequested",sJ:"contentResumeRequested",ek:"click",bO:"videoClicked",In:"engagedview",dK:"expandedChanged",iN:"start",Zh:"impression",Nn:"measurable_impression",eo:"viewable_impression",Ln:"fully_viewable_audible_half_duration_impression",eK:"externalActivityEvent",PAUSED:"pause",MM:"resume",Kn:"firstquartile",On:"midpoint",ao:"thirdquartile",Hn:"complete",WJ:"durationChange",DI:"autoClose",VN:"userClose",WN:"userRecall",uM:"prefetched",LOADED:"loaded",qI:"allAdsCompleted",
Un:"skip",aw:"skipshown",XK:"linearChanged",dN:"skippableStateChanged",RH:"adMetadata",PH:"adBreakReady",fL:"log",VOLUME_CHANGED:"volumeChange",iO:"mute",hJ:"companionBackfill",uO:"youTubeVideoMetadata",tO:"youTubeChannelMetadata",UN:"urlNavigationRequested",IN:"trackingUrlPinged",YN:"video_card_endcap_action",ZN:"video_card_endcap_collapse",$N:"video_card_endcap_dismiss",aO:"video_card_endcap_impression",qO:"why_this_ad_url",pO:"why_this_ad_got_it",QL:"MUTE_AD",kJ:"companionInitialized",jJ:"companionImpression",
iJ:"companionClick"};var pN={rv:5E3,tv:15E3,Sv:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com www.google.com/pagead/sul www.youtube.com/pagead/sul".split(" "),Tv:/\bocr\b/,Lk:0,Od:{},Or:function(a,b){a&&(pN.Wp(a)?pN.Pr(a,b):pN.Kr(a,b))},
Wp:function(a){return z(A(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new N(a)).F().match(pN.Tv)?!0:null!=fb(pN.Sv,function(b){return null!=a.match(b)})},
Pr:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?pN.Tp(function(b){pN.Ir(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):pN.Ir(c)}},
Ir:function(a){var b=M("iframe",{src:a,style:"display:none"});a=ff(b).body;var c,d=$d(function(){bd(c);Bf(b)},pN.tv);
c=$c(b,["load","error"],function(){$d(function(){ae(d);Bf(b)},pN.rv)});
a.appendChild(b)},
Tp:function(a,b){var c=pN.Od.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete pN.Od[c];d||(d=!0,null!=pN.Od.imageLoadingEnabled||(pN.Od.imageLoadingEnabled=b),a(b))};
b?b(c):pN.Cz(c)}},
Cz:function(a){var b=new window.Image,c,d=""+pN.Lk++;pN.Od[d]=b;b.onload=function(){(0,window.clearTimeout)(c);a(!0,d)};
c=(0,window.setTimeout)(function(){a(!1,d)},300);
b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
ZD:function(a){if(a){var b=window.document.createElement("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+pN.Lk++;pN.Od[c]=b;b.onload=b.onerror=function(){delete pN.Od[c]};
window.document.body.appendChild(b)}},
Jr:function(a){if(a){var b=new window.Image,c=""+pN.Lk++;pN.Od[c]=b;b.onload=b.onerror=function(){delete pN.Od[c]};
b.src=a}},
Kr:function(a,b){a&&(b?pN.Tp(function(b){b?pN.Jr(a):pN.ZD(a)}):pN.Jr(a))},
IO:function(a){null!=a&&E(a,function(a){pN.Or(a)})}};XM.prototype.b=function(){return this.G};
var W=new XM;var NV=["ADSENSE","ADSENSE/ADX"],vfa=["DART","DART_DFA","DART_DFP"],Gfa=["FREEWHEEL","YT:FREEWHEEL"],hV=["SHOPPING","YT:SHOPPING"],oV=["GDFP"],ufa=["VIRAL","ADSENSE-VIRAL"],rU={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},u_={uL:"video/mp4",wL:"video/mpeg",iL:"application/x-mpegURL",WL:"video/ogg",tN:"video/3gpp",kO:"video/webm",tL:"audio/mpeg",
vL:"audio/mp4"};YM.prototype.getId=function(){return this.oa};ZM.prototype.getId=function(){return this.oa};var bN=null;var kea=["*.googlesyndication.com","gcdn.2mdn.net"],uca=["*.youtu.be","*.youtube.com"],xca="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),wca=["c.googlesyndication.com"],
bqa=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];rN.prototype.fb=function(){return this.errorCode};
var Pha=new rN("Unable to request ads from server. Cause: {0}.",1005),cqa=new rN("Unable to request ads from server due to network error.",1012),FW=new rN("Cannot parse the {0} value for the adslist response: {1}.",900),g_=new rN("Invalid usage of the API. Cause: {0}",900),n_=new rN("Unable to display one or more required companions.",602),dqa=new rN("There was a problem requesting ads from the server.",1005),Fha=new rN("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",
1013),EY=new rN("The provided ad type: {0} is not supported.",1005),lS=new rN("The provided {0} information: {1} is invalid.",1101),eqa=new rN("The provided skip offset was invalid.",1105),fqa=new rN("The extension contained is neither skippable nor nonskippable.",1105),gY=new rN("The response does not contain any valid ads.",1009),gqa=new rN("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),Yfa=new rN("The ad playlist response was malformed or empty.",
1010),GW=new rN("The ad response was not understood and cannot be parsed.",1010),Iha=new rN("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),Kia=new rN("The ad response contains unexpected element. Cause {0}.",1010),vZ=new rN("No assets were found in the VAST ad response.",200),bfa=new rN("Duplicate node in <{0}>: {1}",101),hY=new rN("The VAST response document is empty.",1009),sia=new rN("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
403),nZ=new rN("Ad request reached a timeout.",301),iY=new rN("VAST response was malformed and could not be parsed.",100),H$=new rN("VAST media file loading reached a timeout of {0} seconds.",402),gZ=new rN("Ad request could not be completed due to a network error.",301),hqa=new rN("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),Cha=new rN("The maximum number of VAST wrappers ({0}) has been reached.",302),iqa=new rN("VAST media file duration differs from the VAST response duration by {0} seconds.",
202),m0=new rN("Video player received an ad with unexpected or incompatible linearity",201),afa=new rN("Unknown node in <{0}>: {1}",101),Iga=new rN("Invalid VAST resource type: {0}",101),Zga=new rN("Invalid VAST version",102),Dha=new rN("No additional VAST wrappers allowed.",300),fZ=new rN("No Ads VAST response after one or more Wrappers",303),r0=new rN("There was an error playing the video ad.",400),Vga=new rN("VMAP unsupported node in <{0}>: {1}",1010),L_=new rN("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",
901);var GS="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var DN={},GN="",pR=/OS (\S+) like/,JN=/Android ([\d\.]+)/;MN.prototype.reset=function(){this.b=0;this.g=null};NN.prototype.reset=function(){this.g=this.b=null};var $S=new PN;PN.prototype.clear=function(){this.b=ON();this.C=this.F=this.g=null;this.B=ON();this.o=null;this.P=this.H=this.I="";this.D=this.M=this.A=null;this.U=!1};ca(RN);RN.prototype.b=function(a,b,c){if(this.g||c){b=b||{};b.lid=a;b.sdkv=QN($S);a=gN(cN());z(A(a))||(b.e=a);b=Aca(this,b);var d=new N("http://pagead2.googlesyndication.com/pagead/gen_204");Pb(b,function(a,b){hh(d,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},this);
a=SN();Yg(d,a.o);nN(d.toString())}};h=TN.prototype;h.Aw=!1;h.mo=!1;h.po=!0;h.Af=null;h.bitrate=-1;h.Rf=null;h.ax=!1;h.$g=null;h.surveyCreativeData=null;h.wE=!0;h.Tm=!1;h.xE=!1;h.Um=!1;h.Vm=!1;h.ls=!1;h.ms=!0;h.yE=!0;h.vk=!1;h.bx=!1;h.IE=0;h.showContentThumbnail=!0;h.Sm=!1;h.gg=null;h.ne=15E3;h.qo=!0;h.sr=0;h.xm=-1;window.console&&"function"===typeof window.console.log&&w(window.console.log,window.console);var aO=null;XN.prototype.getValue=function(){return this.b};
XN.prototype.g=function(){return String(this.b)};
y(YN,XN);YN.prototype.g=function(){return this.b?"1":"0"};
y(ZN,XN);ZN.prototype.g=function(){return this.b?Math.round(this.b.top)+"."+Math.round(this.b.left)+"."+(Math.round(this.b.top)+Math.round(this.b.height))+"."+(Math.round(this.b.left)+Math.round(this.b.width)):""};
WN.prototype.setItem=function(a){this.b[a.B]=a};
WN.prototype.getItem=function(a){return fc(this.b,a,null)};fO.prototype.remove=function(a){ec(this.b,a)};
fO.prototype.set=function(a,b){this.b[a]=b};
fO.prototype.get=function(a){return fc(this.b,a,null)};new Yd(200);var I$={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},DQ={Zn:"start",Kn:"firstquartile",On:"midpoint",ao:"thirdquartile",Hn:"complete",Gv:"metric",PAUSE:"pause",Vv:"resume",Un:"skip",eo:"viewable_impression",Jv:"mute",kw:"unmute",jk:"fullscreen",bv:"exitfullscreen",Ln:"fully_viewable_audible_half_duration_impression",Nn:"measurable_impression",wu:"abandon",In:"engagedview",Zh:"impression",Su:"creativeview",LOADED:"loaded"},Oda="start firstquartile midpoint thirdquartile resume loaded".split(" "),
uda=["abandon"],EQ={UNKNOWN:-1,Zn:0,Kn:1,On:2,ao:3,Hn:4,Gv:5,PAUSE:6,Vv:7,Un:8,eo:9,Jv:10,kw:11,jk:12,bv:13,Ln:14,Nn:15,wu:16,In:17,Zh:18,Su:19,LOADED:20},FP={fO:1,xI:2,vI:4,jk:8,FI:16,EI:32,wI:64,vJ:128,eM:256};var Fca=/https?:\/\/[^\/]+/;wO.prototype.b=function(a,b,c,d,e){try{var f=e||this.B,k=new pO;rO(k,1,"context",a);b instanceof xO||(b=yO(b));rO(k,2,"msg",b.message.substring(0,512));b.fileName&&rO(k,3,"file",b.fileName);0<b.lineNumber&&rO(k,4,"line",b.lineNumber.toString());b={};if(d)try{d(b)}catch(t){}d=[b];k.b.push(5);k.g[5]=d;var m=mO();m.b&&rO(k,6,"top",m.b.url||"");var l=m.g.url||"",p=jO(l),m=[{url:l}];512<l.length&&m.push({url:l.substr(0,512),urlt:1});m.push({url:p,urlt:1});k.b.push(7);k.g[7]=m;vO(this.A,f,k,c)}catch(t){try{vO(this.A,
f,{context:"ecmserr",rctx:a,msg:CO(t),url:l},c)}catch(u){}}return this.g};var GO=window.document,X=window;var AO;AO=new wO(new function(){this.g="http:"===X.location.protocol?"http:":"https:";this.A="pagead2.googlesyndication.com";this.o="/pagead/gen_204?id=";this.b=.01},"jserror",!0);
var ZQ=AO.b;var J$=!1,K$="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(J$=!0,a.description)){K$=IO(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){J$=!0;K$="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(a=window.navigator.mimeTypes["application/x-shockwave-flash"],J$=!!a&&a.enabledPlugin)){K$=IO(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");J$=
!0;K$=IO(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");J$=!0;K$="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),J$=!0,K$=IO(b.GetVariable("$version"))}catch(c){}})();
var uT=J$,VO=K$;var SO={},TO=null;SO.le=0;SO.nt=2;SO.Fr=3;var NP=0,Oca=(new Date).getTime(),LO=-1,NO=!1,OO=-1,PO=-1;SO.Po=5;SO.me=1;SO.om=4;if(GO&&GO.URL){var kO=GO.URL,jqa=!(kO&&0<Hca().length);AO.g=jqa};YO.prototype.getStatus=function(){return this.b};
y(aP,YO);var eP={ON:-1,LOADING:0,kv:1,Ou:2,vv:3,VISIBLE:4},Yca={LOADING:0,kv:1,Ou:2,AN:3,VL:4,LN:5,MN:6,KN:7,YL:8,zN:9},hP={};h=bP.prototype;h.Qp=function(a,b){if(!this.b)return!1;this.b.style.position="absolute";this.setPosition(b);var c=!0;try{a.appendChild(this.b)}catch(d){c=!1}return c};
h.Pp=function(a,b){if(!this.b||!a.parentNode)return!1;this.b.style.position="fixed";this.setPosition(b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.b,a.nextSibling)}catch(d){c=!1}return c};
h.setPosition=function(a){this.b&&!af(a,Nq(this.b))&&Mq(this.b,a)};
h.remove=function(){if(this.b)try{Bf(this.b)}catch(a){}this.b=null};
h.by=function(a){this.A=a?3:4};
ba("gteh",DO("osd_or_lidar::gteh_ex",function(a,b){var c=hP[a];ia(c)&&c(b)}),void 0);
var cda={vv:0,VISIBLE:1},kqa=new $e(-99999,0);kP.prototype.U=function(){var a=mP(this);if(null===a)oP(this);else if(null===this.o)this.o=a,oP(this);else{var b=a-this.o;this.o=a;0==(4<=b?1:0)?(oP(this),lP(this,0)):(this.g.setPosition(kqa),this.D=X.setTimeout(EO("osd_or_lidar::sfm_cpto",w(this.P,this)),125))}};
kP.prototype.P=function(){var a=mP(this),b=a-this.o;this.o=a;a=4<=b?1:0;oP(this);lP(this,0==a?1:0)};
y(qP,YO);qP.prototype.H=function(){var a=eda(this);this.C!=a&&(this.C=a,this.F(a))};ca(KO);var uP=new eg(0,0,0,0);h=vP.prototype;h.ze=function(a,b,c,d,e,f,k){k=this.bp(c,k||{});var m=this.g,l=null;if(ha(b))var p=this.Og(b);else l=b,p=this.Og(a,l);m.b=p;f&&(m.C=Math.max(m.C,m.b));f=FO(GO);this.Ga=0==f?-1:1==f?0:1;f=zP(m.b);ha(b)||(this.Ad=l.right-l.left,this.Mc=l.bottom-l.top);this.Rm(f,k,m.A,e,d,l);m.A=d?-1:f;this.Sa=c;-1!=f&&(0>m.F&&(m.F=c),m.H=c);-1==this.Oe&&this.ke()&&(this.Oe=c);-2==this.ub&&(this.ub=a!=uP&&0!=this.Cd&&this.Mc&&this.Ad?this.Og(a,new eg(0,this.Ad,this.Mc,0)):-1);this.Yd(this)};
h.bp=function(a){a=a-this.Sa||1;return 1E4<a?1:a};
h.Og=function(a,b){if(!ha(a)&&n(b)){var c;c=null===a||null===b?uP.clone():new eg(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left));return 0>=this.Cd||0>=c.Ta()||0>=c.getHeight()?0:(c.bottom-c.top)*(c.right-c.left)/this.Cd}return ha(a)?a:0};
h.rk=function(a,b){var c=this.g;-1!=a&&(c.D[a]+=b)};
h.qk=function(a,b){var c=this.g;-1!=a&&(c.g[a]+=b,c.g[a]>c.B[a]&&(c.B[a]=c.g[a]))};
h.pk=function(a){-1!=a&&(this.g.g[a]=0)};
h.Rm=function(a,b,c,d,e,f){var k=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?k:c;-1!=c&&this.rk(c,b);d=this.g;f=f||null;var k=this.Cd,m=-1!=c&&2>=c;f?(m&&-1!=d.o&&(d.G[d.o]+=b),f=100*k/((f.bottom-f.top)*(f.right-f.left)),d.o=20<=f?0:10<=f?1:5<=f?2:2.5<=f?3:4):d.o=-1;for(;0<=c&&4>=c;c++)this.qk(c,b);for(c=0;4>=c;++c)(c<a||e||-1==a)&&this.pk(c)};
h.Xl=function(){return!1};
h.ke=function(){return!1};y(IP,vP);h=IP.prototype;
h.ze=function(a,b,c,d,e,f,k){k=k||this.Za(this)||{};this.J=k.duration||this.J;this.qb=k.isVpaid||this.qb;this.ca=f;this.aa=k.volume;JP(this.aa)||(this.Pe++,JP(this.H)&&(this.aa=this.H));IP.L.ze.call(this,a,b,c,d,e,f,k);-1==this.Ja&&this.jc&&(this.Ja=this.Pa);(a=this.ke())&&GP(this.D,1);JP(this.H)&&GP(this.D,2);this.ea&&GP(this.D,4);this.B&&GP(this.D,8);-1!=this.Ga&&(GP(this.D,16),1==this.Ga&&GP(this.D,32));this.ea&&a&&GP(this.D,64);this.ca&&GP(this.D,128);this.ca&&0<this.g.b&&GP(this.D,256)};
h.bp=function(a,b){var c=n(b.currentTime)?b.currentTime:this.ka,d=KP(this,a),e=c-this.ka,f=b.isYouTube,k=n(b.isPlaying)?b.isPlaying:!0;2!=this.Ca?(0<=e?(this.wa+=d,this.Z+=Math.max(d-e,0),this.Y=Math.min(e,this.wa)):(this.Ib+=Math.abs(e),this.Y=0),0!=e&&(this.wa=0),-1==this.ia&&0<e&&(this.ia=0<=PO?MO()-PO:-1)):(k||this.K||(this.Z+=d),-1==this.ia&&k&&(this.ia=0<=PO?MO()-PO:-1));this.ka=c;if(f){if(1==this.Ca)return this.Y;if(2==this.Ca)return k?d:0}return KP(this,a)};
h.Og=function(a,b){return this.Xd?0:this.B?1:IP.L.Og.call(this,a,b)};
h.rk=function(a,b){IP.L.rk.call(this,a,b);this.Bb[a]+=this.Y;if(2>=a){var c=this.G;c.C+=b;this.ba+=this.Y}};
h.qk=function(a,b){IP.L.qk.call(this,a,b);this.ga[a]+=this.Y;this.ga[a]>this.yb[a]&&(this.yb[a]=this.ga[a])};
h.pk=function(a){IP.L.pk.call(this,a);this.ga[a]=0};
h.Rm=function(a,b,c,d,e,f){if(!this.K){IP.L.Rm.call(this,a,b,c,d,e,f);a=-1==c||-1==a?-1:Math.max(c,a);this.Pa+=b;this.Ve&&(this.ib+=b,this.za+=b);this.Ve=this.B;e=d&&-1!=c&&2>=c?a:c;this.ea=(c=JP(this.aa)&&.1<=this.aa)&&JP(this.H)&&.1<=this.H;d=this.G;a=-1!=e&&2>=e;if(this.ea){d.F+=b;for(d.A+=b;0<=e&&4>=e;e++)d.o[e]+=b;a?d.B+=b:d.b+=b;d.b>d.G&&(d.G=d.b)}else d.D=!1;if(a||!c)d.b=0;b=this.aa;this.H=n(b)?Number(b)?EP(b,3):0:b}};
h.Xl=function(){return!0};
h.ke=function(){var a=this.g;return 2E3<=Math.max(a.g[2],a.B[2])};var QP=null,SP=null,TP=null,VP=null,kQ=null,PP=!1,lQ=[],mQ=[],hQ=!1,iQ=null,dQ=0,cQ=!1,eQ=!1,xda=!1,wda=!1,fQ=!1,gQ=!1,aQ=xN()||yN(),zda=0;y(nQ,Cca);nQ.prototype.reset=function(){this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.o=this.A=0};
nQ.prototype.update=function(a,b){n(b)||(b=a.length);for(var c=b-this.g,d=this.B,e=this.A,f=0;f<b;){if(0==e)for(;f<=c;)oQ(this,a,f),f+=this.g;if(v(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.g){oQ(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.g){oQ(this,d);e=0;break}}this.A=e;this.o+=b};var GQ={v:"v",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",ps:"ps",pt:"pt",vht:"vht",mut:"mut",a:"a",ns:"ns",ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",uac:"uac",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",px:"px",fm:"sfm",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",mmct:"mmct",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",dtos:"dtos",vmdtos:"vmdtos",dtoss:"dtoss",dom:"dom",fmf:"fmf",ven:"ven",
veh:"veh",vds:"vds",is:"is",ic:"ic",c:"c",mc:"mc",lte:"lte",tth:"tth"},Yda={c:rQ("c"),at:"at",atos:vQ("atos",[0,2,4]),ta:sQ(),a:"a",dur:"dur",p:"p",tos:uQ(),j:"dom",mtos:vQ("mtos",[0,2,4]),gmm:"gmm",ss:rQ("ss"),vsv:jd("w1"),t:"t"},aea={vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",vmdtos:"vmdtos",tcm:"tcm",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",bt:"bt",pst:"pst",nmt:"nmt",mmct:"mmct",c:rQ("c"),at:"at",atos:vQ("atos",[0,2,4]),avt:vQ("atos",[2]),dav:"dav",ta:sQ(),a:"a",dur:"dur",p:"p",tos:uQ(),j:"dom",
mtos:vQ("mtos",[0,2,4]),gmm:"gmm",ss:rQ("ss"),vsv:jd("w1"),t:"t"},Zda={a:"a",tos:uQ(),at:"at",c:rQ("c"),mtos:vQ("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:jd("ias_w1"),dom:"dom",gmm:"gmm",t:"t"},$da={tos:uQ(),at:"at",c:rQ("c"),mtos:vQ("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:jd("dv_w1"),gmm:"gmm",dom:"dom",t:"t"};var xQ=null,zQ="",yQ=!1;h=wQ.prototype;h.cp=function(){};
h.kp=r;h.xr=r;h.Bo=r;h.ko=r;h.zl=function(a){if(a){if(!a.Ud){var b=OP(a,"start"),b=FQ(b,GQ),c=xQ||X,d=[];d.push("v=442v");d.push("r=fp");d.push("efm="+(this.g?1:0));d.push("esfm="+(this.A?1:0));d.push(b);d.push(Hda(c));uO(X,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf&"+d.join("&")).substring(0,2E3),void 0);a.Ud=!0}a.Aa=!0;this.Dm(a)}};
h.wy=function(a){a.Me++;LP(a,0);.1<=a.H&&(a.G.D=!0);return OP(a,"start")};
h.jy=function(a){LP(a,1);ZP([a],!MP());return OP(a,"firstquartile")};
h.qy=function(a){LP(a,2);a.jc=!0;ZP([a],!MP());return OP(a,"midpoint")};
h.yy=function(a){LP(a,3);ZP([a],!MP());return OP(a,"thirdquartile")};
h.fy=function(a){LP(a,4);ZP([a],!MP());var b=OP(a,"complete");a.B=!1;BQ(a.C);return b};
h.ty=function(a){return AQ(a,"pause")};
h.ey=function(a){return AQ(a,"abandon")};
h.uy=function(a){var b=MP();a.K&&!b&&(a.G.g=MO());ZP([a],!b);a.K=!1;return OP(a,"resume")};
h.Ay=function(a){var b=OP(a,"viewable_impression");a.Ue=!0;return b};
h.vy=function(a){var b=!MP();ZP([a],b);b=OP(a,"skip");a.B=!1;BQ(a.C);return b};
h.ry=function(a){ZP([a],!MP());return OP(a,"mute")};
h.zy=function(a){ZP([a],!MP());return OP(a,"unmute")};
h.ky=function(a){a.B=!0;ZP([a],!MP());return OP(a,"fullscreen")};
h.iy=function(a){a.B=!1;ZP([a],!MP());return OP(a,"exitfullscreen")};
h.ly=function(a){return OP(a,"fully_viewable_audible_half_duration_impression")};
h.oy=function(a){return OP(a,"measurable_impression")};
h.hy=function(a){return OP(a,"engagedview")};
h.my=function(a){return OP(a,"impression")};
h.gy=function(a){return OP(a,"creativeview")};
h.yl=function(a){a.ke()&&!a.hd&&this.xr(a);this.Bo(a)};
h.Dm=r;var JQ=(new Date).getTime(),LQ=!1,MQ=!1,NQ=!1,Rda=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return KQ(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return KQ(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return KQ(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return KQ(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return KQ(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return MQ},
function(){return NQ},
function(){return KQ(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{(0,window.DummyFunction1)()}catch(b){a=!0}return a},
function(){var a=!1;try{(0,window.DummyFunction2)()}catch(b){a=!0}return a},
function(){var a=(new window.AudioContext).createBufferSource();a.detune.value=100;return 100==a.detune.value},
function(){return KQ(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||IQ(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return IQ(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return KQ(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return IQ(a.CSS.supports)},
function(){return IQ(window.Intl.Collator)},
function(a){return IQ(a.document.createElement("dialog").show)},
function(){return KQ(8)},
function(a){return IQ(a.document.createElement("div").animate([{transform:"scale(1)",gx:"ease-in"},{transform:"scale(1.3)",gx:"ease-in"}],{duration:1300,GO:1}).reverse)},
function(a){return IQ(a.document.createElement("div").animate)},
function(a){return IQ(a.document.documentElement.webkitRequestFullScreen)},
function(a){return IQ(a.navigator.getBattery)},
function(a){return IQ(a.navigator.permissions.query)},
function(){return IQ((new window.AudioContext).createBuffer)},
function(){return KQ(9)},
function(){return IQ(window.webkitRequestAnimationFrame)},
function(a){return IQ(a.BroadcastChannel.call)},
function(a){return IQ(a.FontFace)},
function(a){return IQ(a.Gamepad)},
function(){return KQ(10)},
function(a){return IQ(a.MutationEvent)},
function(a){return IQ(a.MutationObserver)},
function(a){return IQ(a.crypto.getRandomValues)},
function(a){return IQ(a.document.body.createShadowRoot)},
function(a){return IQ(a.document.body.webkitCreateShadowRoot)},
function(a){return IQ(a.fetch)},
function(){return KQ(11)},
function(a){return IQ(a.navigator.serviceWorker.register)},
function(a){return IQ(a.navigator.webkitGetGamepads)},
function(a){return IQ(a.speechSynthesis.speak)},
function(a){return IQ(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return KQ(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return KQ(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof window.InstallTrigger},
function(){return"object"==typeof(new window.Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return KQ(14)},
function(a){return"undefined"==typeof a.navigator.MO},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new window.Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],Sda=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],Tda=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];y(OQ,wQ);ca(OQ);h=OQ.prototype;h.cp=function(a,b){KO.getInstance();var c;b.opt_adElement?c=Lda(this,a,b.opt_adElement):(c=Wda(this,a,b.opt_sdkID||""))||(c=Bda(a)||void 0);c&&c.Za==r&&(c.Za=w(this.ko,this));return c};
h.ko=function(a){KO.getInstance();a.b=0;a.Fa=0;var b;if("as"==a.I){var c="getVideoMetadata"+a.lg;if(ia(a.element[c]))try{b=a.element[c]()}catch(e){a.b|=4}else a.b|=2}else if("h"==a.I)if(c=q("ima.common.getVideoMetadata"),ia(c))try{b=c(a.C)}catch(e){a.b|=4}else a.b|=2;else a.b|=1;a.b||(n(b)?null===b?a.b|=16:cc(b)?a.b|=32:null!=b.errorCode&&(a.Fa=b.errorCode,a.b|=64):a.b|=8);null!=b||(b={});c=b;a.ma=0;for(var d in I$)null==c[d]&&(a.ma|=I$[d]);null!=c.currentTime||a.Ke++;HQ(c,"currentTime");HQ(c,"duration");
return b};
h.xr=function(a){QQ(a,"viewable_impression")&&(a.hd=!0)};
h.Bo=function(a){var b=a.G.o[0];(15E3<=b||a.jc&&(-1!=a.J?b>=a.J/2:-1!=a.Ja&&b>=a.Ja))&&!a.Wd&&QQ(a,"fully_viewable_audible_half_duration_impression")&&(a.Wd=!0)};
h.kp=function(a){KO.getInstance();a.Te||a.Aa||!QQ(a,"measurable_impression")||(a.Te=!0)};
h.yl=function(a){KO.getInstance();OQ.L.yl.call(this,a)};
h.Dm=function(){KO.getInstance()};
ba("Goog_AdSense_Lidar_sendVastEvent",DO("lidar::handlevastevent_ex",TQ,void 0,function(){return{v:"442","if":KO.getInstance().g?"1":"0",nas:String(lQ.length)}}),void 0);
ba("Goog_AdSense_Lidar_getInitSignals",BO("lidar::getinitsignals_ex",SQ,void 0,void 0),void 0);ba("Goog_AdSense_Lidar_getUrlSignalsArray",DO("lidar::geturlsignalsarray_ex",function(){return qQ()}),void 0);
ba("Goog_AdSense_Lidar_getUrlSignalsList",DO("lidar::geturlsignalslist_ex",function(){return Zf(qQ())}),void 0);y(UQ,I);var VQ=null;UQ.prototype.destroy=function(){this.D.qa(this.b,"activityMonitor",this.G);this.o=null;this.A=!1;this.g.clear()};
UQ.prototype.O=function(){this.destroy();UQ.L.O.call(this)};
UQ.prototype.init=function(a){if(!this.A){if(this.b=a||null)this.D.N(this.b,"activityMonitor",this.G),bR(this);if(W.B&&!(aa.ima&&aa.ima.video&&aa.ima.video.client&&aa.ima.video.client.tagged)){ba("ima.video.client.sdkTag",!0,void 0);var b=aa.document;a=b.createElement("script");var c=b.location.protocol;"http:"!=c&&"https:"!=c&&(c="");a.src=c+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";b=b.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.A=!0}};
UQ.prototype.G=function(a){var b=a.Md,c=b.queryId,d={};d.eventId=b.eventId;switch(a.Gc){case "getPageSignals":bR(this);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);d.viewabilityData=$Q(this,e,c,a,f);this.b.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,c=null,$b(b,"isFullscreen")&&(c=b.isFullscreen),$b(b,"loggingId")&&(b=b.loggingId,d.loggingId=b,
RN.getInstance().b(43,{step:"beforeLookup",logid:b,time:D()},!0)),d.engagementString=dea(this,a,c),this.b.send("activityMonitor","engagement",d)}};
ba("ima.common.getVideoMetadata",function(a){var b=WQ();a=b.g.get(a,b.B);return ia(a)?a():{}},void 0);
ba("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=WQ().b;d?d.send("activityMonitor","viewableImpression",c):WQ().V(new SM("viewable_impression",null,c))},void 0);
ba("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=WQ().b,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
ba("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=WQ().b;d?d.send("activityMonitor","measurableImpression",c):WQ().V(new SM("measurable_impression",null,c))},void 0);
ba("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=WQ().b)?a.send("activityMonitor","externalActivityEvent",d):WQ().V(new SM("externalActivityEvent",null,d))},void 0);
ba("ima.common.updateEngagementDetectionValue",function(a){if(W.B){var b=WQ().b;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);y(dR,I);h=dR.prototype;h.ZC=function(a){this.G=!0;this.g=a.touches.length;this.A&&(window.clearTimeout(this.A),this.A=0,this.J=!0);(this.F=hR(this,a.touches)||1!=a.touches.length)?this.M=this.K=window.Infinity:(this.K=a.touches[0].clientX,this.M=a.touches[0].clientY);jea(this,a.touches)};
h.YC=function(a){this.g=a.touches.length;if(!CN()||!FN(pR,8)||Math.pow(a.changedTouches[0].clientX-this.K,2)+Math.pow(a.changedTouches[0].clientY-this.M,2)>Math.pow(5,2))this.C=!0};
h.XC=function(a){this.I?this.Sk():(!this.G||1!=this.g||this.C||this.J||this.F||!hR(this,a.changedTouches)||(this.A=window.setTimeout(w(this.Sk,this),300)),this.g=a.touches.length,0==this.g&&(this.C=this.G=!1,this.o=[]),this.J=!1)};
h.tp=function(){this.Sk()};
h.Sk=function(){this.A=0;this.V(new mc("click"))};
h.O=function(){gR(this);this.B.dispose();this.B=null;dR.L.O.call(this)};y(lR,I);var Mea={NI:"beginFullscreen",ek:"click",ZJ:"end",$J:"endFullscreen",ERROR:"error",LOADED:"loaded",kL:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",cN:"skip",aw:"skipShown",XM:"shareClicked",Zn:"start",wN:"timeUpdate",YI:"cardsStateChange",uN:"timedMetadata",hO:"volumeChange"};h=lR.prototype;h.zp=function(){return!1};
h.Ya=function(){return!0};
h.Em=r;h.Dp=r;h.Fl=r;h.Jf=function(){return null};
h.Ep=r;h.Bp=r;y(mR,lR);h=mR.prototype;h.Er=function(a,b,c,d){if(d&&(d=fb(a,function(a){return null!==iR(a.g)}),null!==d))return d;
a=ge(a,function(a){var b=a.b;z(A(a.g))||"progressive"!=a.o&&"application/x-mpegurl"!=A(b).toLowerCase()?a=!1:(b=A(b).toLowerCase(),a=z(b)||kI&&FN(JN,2.3)&&-1!=b.indexOf("application/ogg")?!1:kI&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||CN()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!z(this.b.canPlayType(b)));return a},this);
return cR(a,b,c)};
h.ml=function(){return ge(Xb(u_),function(a){return!z(this.b.canPlayType(a))},this)};
h.Im=function(a){this.U=0<a.b?a.b:15E3};
h.load=function(a){oR(this);this.b.src=a;this.b.load()};
h.getVideoUrl=function(){return this.b.src};
h.setVolume=function(a){this.b.volume=a};
h.Ld=function(){return this.b.volume};
h.play=function(){this.K=!1;$d(this.b.play,0,this.b);this.G||(this.G=$d(this.Pw,this.U,this))};
h.pause=function(){this.K=!0;this.b.pause()};
h.Vf=function(){return this.b.paused?CN()||Xl?this.b.currentTime<this.b.duration:!0:!1};
h.Uf=function(){return this.b.muted};
h.Gl=function(){BN()&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};
h.je=function(){return YQ(this.b)};
h.Qg=function(a){var b;a:{for(b=this.P.Ha();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
h.Wf=function(a){this.b.currentTime=a};
h.getCurrentTime=function(){return this.b.currentTime};
h.Ap=function(){return rR(this)};
h.rd=function(){return(0,window.isNaN)(this.b.duration)?-1:this.b.duration};
h.gf=function(){return this.b.ended};
h.sd=function(){return new bf(this.b.offsetWidth,this.b.offsetHeight)};
h.Cp=function(){return this.b.seeking};
h.O=function(){this.Xf();this.b=null;mR.L.O.call(this)};
h.getError=function(){return this.b.error};
h.Qi=function(){this.Xf();this.g=new ym(this);this.g.N(this.b,GS,this.dC);this.g.N(this.b,"canplay",this.rA);this.g.N(this.b,"ended",this.Yy);this.g.N(this.b,"webkitbeginfullscreen",this.Hl);this.g.N(this.b,"webkitendfullscreen",this.Gp);this.g.N(this.b,"pause",this.$y);this.g.N(this.b,"playing",this.oC);this.g.N(this.b,"timeupdate",this.az);this.g.N(this.b,"volumechange",this.bz);this.g.N(this.b,"error",this.Fp);this.g.N(this.b,WH||CN()&&(!CN()||!FN(pR,8))?"loadeddata":"canplay",this.BB);this.C=
new dR;this.g.N(this.C,"click",this.Xy);eR(this.C,this.b);this.D=new Yd(1E3);this.g.N(this.D,"tick",this.Zy);this.D.start()};
h.Xf=function(){null!=this.C&&(gR(this.C),this.C=null);null!=this.D&&this.D.dispose();null!=this.g&&(this.g.dispose(),this.g=null);oR(this)};
h.dC=function(a){this.V(a.type)};
h.rA=function(){var a;if(a=eu)a=qc,a=!(a&&(Na(a,"SMART-TV")||Na(a,"SmartTV")));a&&!this.M&&(this.Wf(.001),this.M=!0)};
h.BB=function(){this.I||(this.I=!0,this.V("loaded"))};
h.oC=function(){this.V("play");CN()||WH||qR(this)};
h.az=function(){if(!this.o&&(CN()||WH)){if(0>=this.getCurrentTime())return;if(WH&&this.gf()&&1==this.rd()){this.Fp();return}qR(this)}if(CN()||HN()){if(1.5<this.getCurrentTime()-this.A){this.F=!0;this.Wf(this.A);return}this.F=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}var a=this.P;a.b[a.g]=this.b.currentTime;a.g=(a.g+1)%a.A;this.V("timeUpdate")};
h.bz=function(){this.V("volumeChange")};
h.$y=function(){var a;this.o&&CN()&&!this.K&&2>rR(this)-this.b.currentTime?(this.B=new Yd(250),this.g.N(this.B,"tick",this.nA),this.B.start(),a=!0):a=!1;a||this.V("pause")};
h.Yy=function(){var a=eN(cN(),136961002),b=!0;if(CN()||HN()||a&&kI)b=this.A>=this.b.duration-1.5;!this.F&&b&&this.V("end")};
h.Hl=function(){this.V("beginFullscreen")};
h.Gp=function(){this.V("endFullscreen")};
h.Fp=function(){nR(this);this.V("error")};
h.Xy=function(){this.V("click")};
h.Zy=function(){var a=this.sd(),b=this.je();if(a.width!=this.J.width||a.height!=this.J.height)!this.H&&b?this.Hl():this.H&&!b&&this.Gp(),this.J=a,this.H=b};
h.Pw=function(){if(!this.o){try{RN.getInstance().b(16)}catch(a){}oR(this);this.V("mediaLoadTimeout")}};
h.nA=function(){if(this.gf()||!this.Vf())Nb(this.B);else{var a=this.b.duration-this.b.currentTime,b=rR(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Nb(this.B),this.play())}};y(tR,I);sR.prototype.start=function(a){return this.b[a].startTime};
sR.prototype.end=function(a){return this.b[a].endTime};
h=tR.prototype;h.readyState=0;h.currentTime=0;h.duration=window.NaN;h.Yf=!0;h.Lp=!1;h.autoplay=!1;h.controls=!1;h.volume=1;h.muted=!1;h.src="";h.fz=1;h.playbackRate=0;h.Rd=null;h.Vi=0;h.FD=4;h.Mg=null;h.uj=null;
h.play=function(){this.Lp&&(this.currentTime=0,this.V("timeupdate"));this.Yf&&(this.Yf=!1,this.V("play"),this.readyState=this.FD,2>=this.readyState?this.V("waiting"):this.V("playing"));if(null===this.Rd||this.Rd.isDisposed())this.Rd=new Yd(10),this.Rd.N("tick",w(this.gs,this));this.Vi=D();this.Rd.start();this.autoplay=!1};
h.pause=function(){this.autoplay=!1;this.Yf||(this.Rd.stop(),this.Yf=!0,this.V("timeupdate"),this.V("pause"))};
h.load=function(){this.readyState=0;this.Yf=!0;this.V("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.g;a.b.push(new oea(this.duration));a.length=a.b.length;this.V("loadedmetadata");0<this.currentTime&&this.V("timeupdate");this.V("loadeddata");this.V("canplay");this.V("canplaythrough");this.V("progress");this.playbackRate=this.fz};
h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.V("seeking");this.currentTime=c;this.V("seeked");this.gs();break;case "duration":this.duration=Number(b);this.V("durationchange");break;case "volume":this.volume=Number(b),this.V("volumechange")}};
h.gs=function(){var a=D()-this.Vi,b=this.currentTime+a/1E3;this.Vi+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.V("timeupdate");this.currentTime==this.duration&&(this.Lp=this.Yf=!0,this.Rd.stop(),this.V("ended"))};
h.O=function(){this.Rd&&this.Rd.dispose();this.b.dispose()};
h.mD=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.uj&&(this.uj.innerText=b);c&&this.Mg&&(this.Mg.style.backgroundColor=c)};qf&&xc(8);var yR={},WR={},XR={},zR={};uR.prototype.Fd=null;uR.prototype.Wb=function(){return this.content};
uR.prototype.toString=function(){return this.content};
y(vR,uR);y(wR,uR);var pea={};y(CR,uR);CR.prototype.md=yR;y(ER,uR);ER.prototype.md={};ER.prototype.Fd=1;y(FR,uR);FR.prototype.md=WR;FR.prototype.Fd=1;y(GR,uR);GR.prototype.md=XR;GR.prototype.Fd=1;y(HR,uR);HR.prototype.md={};HR.prototype.Fd=1;y(IR,wR);IR.prototype.md={};IR.prototype.Fd=1;y(JR,vR);JR.prototype.md=zR;var DR=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var e=new b(String(a));void 0!==d&&(e.Fd=d);return e}}(CR);
KR(ER);KR(FR);KR(GR);var yea=KR(HR);KR(IR);var LR={},MR={},kS=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var e=String(a);if(!e)return"";e=new b(e);void 0!==d&&(e.Fd=d);return e}}(CR),UR=/['()]/g,cS={},zea={"\x00":"&#0;",
"\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},Aea={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11",
"\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87",
"\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},sea=/[\x00\x22\x27\x3c\x3e]/g,uea=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,tea=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,ZR=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,
wea=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,xea=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,PR=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,QR=/</g;NR("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Y(a.eg)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Y(a.eg)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
Y(dS(a.jd))+">"+Y(a.jd)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Y(dS(a.Bd))+">"+Y(a.Bd)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
NR("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Y(a.JO)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.LO)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttributionBadge yt-badge yt-badge-ad"></div><div class="videoAdUiAttribution"'+
Y(dS(a.jd))+">"+Y(a.jd)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Y(dS(a.Bd))+">"+Y(a.Bd)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
NR("b","",function(a){a=a||{};return"B\u1ea1n c\u00f3 th\u1ec3 b\u1ecf qua qu\u1ea3ng c\u00e1o n\u00e0y trong "+Y(a.Ag)});
NR("b","redesign2014q4",function(a){a=a||{};return"B\u1ea1n c\u00f3 th\u1ec3 b\u1ecf qua video trong "+Y(a.Ag)});y(mS,F);mS.prototype.initialize=function(){zN()&&this.g.load()};
mS.prototype.O=function(){Bf(this.b);mS.L.O.call(this)};
mS.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};
mS.prototype.da=function(){var a=this.b;null!=a&&(a.style.display="none")};y(pS,lR);var lqa=["video/mp4","video/webm"],mqa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},oS=[],nS=!1;h=pS.prototype;h.Er=function(a,b,c){var d=fb(a,function(a){return null!==iR(a.g)});
if(null!==d)return d;a=ge(a,function(a){a=A(a.b);return this.g?this.b.canPlayType(a):kb(lqa,a)},this);
lb(c)||(d=cR(a,b,c));return null!=d?d:cR(a,b,[])};
h.Im=function(a){this.A=a};
h.load=function(a,b){null!==a&&(this.U=a,this.g?qS(this,a,b):(this.I=a,this.X=b))};
h.getVideoUrl=function(){return this.U};
h.setVolume=function(a){this.aa?this.V("volumeChange"):this.g?(a=Ve(100*a,0,100),this.b.setVolume(a),this.D=-1,this.V("volumeChange")):this.D=a};
h.Ld=function(){return this.g?this.b.getVolume()/100:this.D};
h.play=function(){if(!z(A(this.U))){if(!this.o){sS(this);var a=15E3;null!=this.A&&0<this.A.b&&(a=this.A.b);this.ka=$d(this.fC,a,this)}this.g?(this.ba=!1,!this.o&&this.A&&this.A.g?this.b.loadVideoByPlayerVars(this.ea):this.b.playVideo()):this.ba=!0}};
h.pause=function(){this.g&&this.o&&this.b.pauseVideo()};
h.Vf=function(){return this.g?2==this.b.getPlayerState(this.B):!1};
h.Uf=function(){return this.g?this.b.isMuted():0==this.Ld()};
h.Gl=function(){};
h.je=function(){var a=W.g?W.o:window.document.getElementById(this.K);return a?YQ(a):!1};
h.Qg=function(a){return this.g?this.b.getCurrentTime(this.B)>=a:!1};
h.Wf=function(a){this.g?this.b.seekTo(a,!1):this.H=a};
h.getCurrentTime=function(a){return this.g?this.b.getCurrentTime(a||this.B):-1};
h.Ap=function(){return this.g&&this.o?this.b.getVideoLoadedFraction(this.B)*this.b.getDuration(this.B):0};
h.rd=function(){return this.g&&this.o?this.b.getDuration(this.B):-1};
h.getError=function(){return null};
h.ml=function(){return Xb(u_)};
h.gf=function(){return this.g?0==this.b.getPlayerState(this.B):!1};
h.sd=function(){var a=W.g?W.o:window.document.getElementById(this.K);return a?new bf(a.offsetWidth,a.offsetHeight):new bf(0,0)};
h.Cp=function(){return!1};
h.zp=function(){return 1==this.ia};
h.Ya=function(){return this.g?1==this.b.getPlayerState(this.B):!1};
h.ez=function(){var a=this.sd(),b=this.je();if(a.width!=this.ca.width||a.height!=this.ca.height)!this.Z&&b?this.V("beginFullscreen"):this.Z&&!b&&this.V("endFullscreen"),this.ca=a,this.Z=b};
h.Qi=function(){this.Y=w(this.Lq,this);this.J=w(this.Il,this);this.ga=w(this.Mq,this);this.ra=w(this.JC,this);this.aa&&(this.b.addEventListener("onAdStateChange",this.J),this.b.addEventListener("onReady",this.Y),this.b.addEventListener("onStateChange",this.J),this.b.addEventListener("onVolumeChange",this.ga),this.b.addEventListener("onSharePanelOpened",this.ra));this.P=new Yd(1E3);this.M.N(this.P,"tick",this.ez);this.P.start()};
h.Xf=function(){this.aa&&(this.b.removeEventListener("onAdStateChange",this.J),this.b.removeEventListener("onReady",this.Y),this.b.removeEventListener("onStateChange",this.J),this.b.removeEventListener("onVolumeChange",this.ga),this.b.removeEventListener("onSharePanelOpened",this.ra));null!=this.P&&this.P.dispose()};
h.Xw=function(){var a=this.K,b={playerVars:hc(mqa),events:{cardstatechange:w(this.dz,this),onError:w(this.lC,this),onReady:w(this.Lq,this),onAdStateChange:w(this.Il,this),onStateChange:w(this.Il,this),onVolumeChange:w(this.Mq,this)}},c=q("YT");this.b=null!=c&&null!=c.Player?new c.Player(a,b):null};
h.lC=function(){this.V("error")};
h.Lq=function(){this.g=!0;this.G&&this.Fl(this.G.videoId,this.G.Ye,this.G.vg);-1!=this.D&&(this.setVolume(this.D),this.D=-1);null!=this.I&&(qS(this,this.I,this.X),this.X=this.I=null);-1!=this.H&&(this.Wf(this.H),this.H=-1);this.ba&&this.play()};
h.dz=function(a){this.ia=a.data;this.V("cardsStateChange")};
h.Il=function(a){switch(a.data){case 0:this.o?this.V("end"):this.V("error");break;case 1:this.o||(sS(this),this.o=!0,this.F=0,this.V("start"));this.V("play");rS(this);this.C=new Yd(100);this.M.N(this.C,"tick",this.zq);this.C.start();break;case 2:this.V("pause"),rS(this)}};
h.Mq=function(){this.V("volumeChange")};
h.JC=function(){this.V("shareClicked")};
h.zq=function(){if(VH||HN()){if(1.5<this.getCurrentTime()-this.F){this.g&&this.b.seekTo(this.F,!0);return}this.getCurrentTime()>this.F&&(this.F=this.getCurrentTime())}this.V("timeUpdate")};
h.fC=function(){this.V("mediaLoadTimeout")};
h.Fl=function(a,b,c){if(b||c)this.g?this.b.addInfoCardXml(a,b,c):this.G={videoId:a,Ye:b,vg:c}};
h.Jf=function(){if(!this.g)return null;var a=this.b.getVideoData();return a?a.cpn:null};
h.Em=function(a){this.g&&iR(this.getVideoUrl())&&this.b.sendVideoStatsEngageEvent(a)};
h.Dp=function(a){this.g&&this.b.setCardsVisible(a)};
h.Ep=function(){this.g&&this.b.showControls()};
h.Bp=function(){this.g&&this.b.hideControls()};
h.O=function(){rS(this);sS(this);this.Xf();this.g=!1;this.M.dispose();this.H=-1;this.X=null;this.ba=!1;this.I=null;this.D=-1;this.Y=this.b=this.A=null;this.o=!1;this.U="";pS.L.O.call(this)};
ba("onYouTubeIframeAPIReady",function(){nS=!0;E(oS,function(a){a()});
nb(oS)},window);y(tS,I);tS.prototype.b=!1;tS.prototype.connect=function(){for(this.b=!0;!lb(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};
tS.prototype.send=function(a,b,c){this.b?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};
y(uS,mc);uS.prototype.getOrigin=function(){return this.A};
uS.prototype.toString=function(){return""};y(vS,tS);vS.prototype.sendMessage=function(a,b,c){null!=this.$c&&null!=this.$c.postMessage&&this.$c.postMessage(Kea(this,a,b,c),"*");null!=this.$c&&null==this.$c.postMessage&&RN.getInstance().b(11)};
vS.prototype.O=function(){this.o.dispose();vS.L.O.call(this)};
vS.prototype.receive=function(a){a=a.b;var b=wS(a.data);if(xS(this,b)){if(null==this.$c)this.$c=a.source,this.b||this.connect();else if(this.$c!=a.source)return;xS(this,b)&&this.V(new uS(b.name,b.type,b.data||{},b.sid,a.origin))}};y(yS,I);yS.prototype.send=function(a){var b=a.b;this.b.hasOwnProperty(b)&&this.b[b].send(a.type,a.Gc,a.Md)};
yS.prototype.O=function(){this.g.dispose();for(var a in this.b)Nb(this.b[a]);yS.L.O.call(this)};
yS.prototype.B=function(a){a=a.b;var b=wS(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.b.hasOwnProperty(c)){var d=b.sid;AS(this,c,d,a.source);this.V(new zS(b.name,b.type,b.data||{},d,a.origin,c))}}};
y(zS,uS);y(CS,ym);
CS.prototype.C=function(a){var b=a.getOrigin(),c=Fg("//imasdk.googleapis.com"),b=Fg(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.b)AS(this.b,a.b,a.sp,sf().parent),null!=this.b&&this.b.send(a);else if(c=a.Md,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.Gc,"isGptPresent"==c?d=BS():"isConsolePresent"==c&&(d=null!=DS());else if(BS())if("pubads"==b||"companionAds"==b){d=a.Gc;var e,f=sf().googletag;if(null!=f&&null!=f[b]&&(f=f[b](),null!=f&&(d=f[d],null!=d)))try{e=d.apply(f,c)}catch(k){}d=e}else if("console"==
b){if(f=a.Gc,e=DS(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){e=a.Gc;d=sf();if(kb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{f=e.apply(d,c)}catch(k){}d=f}n(d)&&(a.Md.returnValue=d,this.A.send(a))}};
CS.prototype.B=function(a){this.A.send(a)};ES.prototype.isPharma=function(){return this.G};var FS={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+Oa(" ",Number(c)-a.length):Oa(" ",Number(c)-a.length)+a},
f:function(a,b,c,d,e){d=a.toString();(0,window.isNaN)(e)||""==e||(d=(0,window.parseFloat)(a).toFixed(e));var f;f=0>Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(d=f+d);if((0,window.isNaN)(c)||d.length>=Number(c))return d;d=(0,window.isNaN)(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+Oa(" ",a):f+Oa(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,m){return FS.f((0,window.parseInt)(a,10),b,c,d,0,f,k,m)}};
FS.i=FS.d;FS.u=FS.d;y(HS,I);h=HS.prototype;h.O=function(){this.o.dispose();null!==this.A&&(this.A.dispose(),this.A=null);qg(this.C.kc(!1),function(a){a.dispose()});
this.C.clear();Bf(this.g);HS.L.O.call(this)};
h.Nx=function(a){var b=a.Md,c=Qq(this.g),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.Gc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!eu||CN()||0==window.document.webkitIsFullScreen)this.g.blur(),window.focus();this.g.dispatchEvent(d)};
h.cy=function(a){var b=a.Md,c=Qq(this.g),d=window.document.createEvent("TouchEvent");d.initTouchEvent(a.Gc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,IS(this,b.touches),IS(this,b.targetTouches),IS(this,b.changedTouches),b.scale,b.rotation);this.g.dispatchEvent(d)};
h.Zx=function(a){if(null!=this.b){var b=a.Md;switch(a.Gc){case "startTracking":this.b.Qi();break;case "stopTracking":this.b.Xf();break;case "exitFullscreen":this.b.Gl();break;case "play":this.b.play();break;case "pause":this.b.pause();break;case "load":this.b.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.b.Wf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions;this.b.Im(new ES(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma,a.useAutoplayFlag));break;case "setVolume":this.b.setVolume(b.volume)}}};
h.or=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.b.gf();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.b.getCurrentTime();b.duration=
this.b.rd();break;case "volumeChange":a="volumeChange";b.volume=this.b.Ld();break;case "loadedmetadata":a=a.type;b.duration=this.b.rd();break;case "abort":case "canplay":case "canplaythrough":case "durationchange":case "emptied":case "loadstart":case "loadeddata":case "progress":case "ratechange":case "seeked":case "seeking":case "stalled":case "suspend":case "waiting":a=a.type;break;default:return}this.B.send("videoDisplay",a,b)};
h.Kx=function(a){switch(a.Gc){case "showVideo":null!=this.A?gR(this.A):(this.A=new dR,this.o.N(this.A,"click",this.jD));eR(this.A,KS(this.D));a=this.D;null!=a.b&&a.b.show();break;case "hide":null!==this.A&&(this.A.dispose(),this.A=null),this.D.da()}};
h.jD=function(){this.B.send("displayContainer","videoClick")};
h.wx=function(){qg(this.C.kc(!1),function(a){a.$c=Kf(this.g);a.connect()},this);
this.F=!0};JS.prototype.initialize=function(){this.G=!0;null!=this.b&&this.b.initialize()};
JS.prototype.destroy=function(){Nb(this.b);Nb(this.D);Nb(this.C);Bf(this.g)};
JS.prototype.da=function(){null!=this.b&&this.b.da()};
JS.prototype.setSize=function(a,b){var c=this.g;null!=c&&(-1==a?(c.style.right="0",c.style.left="0"):c.style.width=a+"px",-1==b?(c.style.bottom="0",c.style.top="0"):c.style.height=b+"px");null!=this.D&&(c=this.D,c.g.width=-1==a?"100%":a,c.g.height=-1==b?"100%":b)};var LS="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");y(NS,I);y(OS,NS);OS.prototype.start=function(){this.b.start()};
OS.prototype.stop=function(){this.b.stop()};
OS.prototype.O=function(){OS.L.O.call(this);this.A.dispose();this.b.dispose()};
OS.prototype.o=function(){if("currentTime"in this.g&&!(0,window.isNaN)(this.g.currentTime)){var a=this.currentTime;this.currentTime=this.g.currentTime;a!=this.currentTime&&this.V(new mc("currentTimeUpdate"))}else this.V(new mc("contentWrapperError")),this.stop()};y(QS,I);QS.prototype.g=null;QS.prototype.O=function(){delete this.b;RS(this);bd(this.g);QS.L.O.call(this)};
QS.prototype.B=function(){PS(this)&&(RS(this),bd(this.g),this.g=null,this.o=!0,this.V("ifload"))};y(SS,I);y(TS,mc);TS.prototype.getError=function(){return this.A};US.prototype.Wb=function(){return this.C};
US.prototype.ac=function(){return this.g};
US.prototype.clone=function(){var a=new US(this.F,this.D);if(null!=this.g)VS(a,this.ac(),this.B,this.A,this.b);else{var b=this.Wb(),c=this.B,d=this.A,e=this.o,f=this.b;a.C=b;a.g=null;a.B=c;a.A=d;a.o=e;a.b=f||[]}return a};y(XS,SS);ca(XS);h=XS.prototype;h.O=function(){this.g&&this.g.dispose();XS.L.O.call(this)};
h.initialize=function(){if(!this.o){var a;var b=Uf(new ef);try{q("googletag"),YS([b,b.top]),a=!0}catch(c){a=!1}a?kT(this):(this.o=!0,this.A="not_available")}};
h.Pq=function(){0<this.B&&D()>=this.B?(this.o=!0,gT(this),jT(this)):kT(this)};
h.$D=function(a){var b=zi(a.adSizes,function(a){return new bf(a.adWidth,a.adHeight)});
return new US(a.slotId,b)};
h.zw=function(a){var b={};b.slotId=a.F;b.adContent=a.Wb();b.adWidth=a.B;b.adHeight=a.A;b.friendlyIframeRendering=a.o;null==a.g&&lb(a.b)||(b.onAdContentSet=w(this.IA,this,a));return b};
h.IA=function(a,b){if(null!=a.g){var c=Gf(b);c||(c=window.document.createElement("div"),b.appendChild(c));var d=a.ac();c.appendChild(d);lT(this,a,c)}else c=a.o?b.querySelector("iframe"):(c=Gf(b))?Gf(c):null,(c=c&&"IFRAME"==c.tagName?c:null)&&Pea(this,c,a)};
h.HA=function(a){this.V(new TS("companion_click",null,a))};
h.ng=function(a){qN(this.impressionUrls,a)};y(mT,mc);mT.prototype.getError=function(){return this.b};y(nT,mc);var Rea={IMAGE:"Image",hv:"Flash",ALL:"All"},Qea={xK:"Html",IFRAME:"IFrame",jN:"Static",ALL:"All"},Sea={BK:"IgnoreSize",TM:"SelectExactMatch",UM:"SelectNearMatch"},Tea={FJ:"DisallowResize",KM:"ResizeSmaller"};y(zT,N);zT.prototype.toString=function(){return BT(this,zT.L.toString.call(this))};
zT.prototype.I=function(){return""};
zT.prototype.F=function(){return""};
zT.prototype.clone=function(){return new zT(this.toString())};var dfa=["ai","sigh"],efa=["xai","sig"];XT.prototype.Kb=function(){return this.A};
y(ZT,XT);WT.prototype.isEmpty=function(){return this.b.isEmpty()};y(iU,gU);jU.prototype.parse=function(a){a=Gf(a);var b=LT(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw tN(fqa);a=a.getAttribute("offset");a=eU(a);if("skippable"==c&&null==a)throw tN(eqa);return new iU(c,a)};y(kU,gU);y(lU,gU);y(mU,gU);mU.prototype.Pb=function(){return this.g};h=nU.prototype;h.og=function(a){this.X=a};
h.Ol=function(){return null};
h.Nl=function(){return null};
h.Wa=function(){return this.H};
h.Di=function(){for(var a=[this],b=this.H.g;b;){var c=qU(this,b)||qU(this,b,!0);null!=c&&a.push(c);b=b.g}return a};y(sU,nU);h=sU.prototype;h.Wb=function(){return Mf(this.ac())};
h.eh=function(){return!1};
h.Pl=function(){return this.eh()?Mf(this.ac(!0)):""};
h.nc=function(){return this.ia};
h.sc=function(){return this.za};
h.Ta=function(){return this.sc().width};
h.getHeight=function(){return this.sc().height};
h.Ol=function(){return"VPAID"==this.G?this.o:null};
h.Nl=function(){return"VPAID"==this.G&&"Flash"==this.Y?this.o:null};
h.td=function(){return this.ba};h=tU.prototype;h.Wb=function(){return this.b.Wb()};
h.ac=function(){return this.b.ac()};
h.nc=function(){return this.b.nc()};
h.Ta=function(){return this.b.Ta()};
h.getHeight=function(){return this.b.getHeight()};
h.Wa=function(){return this.b.Wa()};y(wU,F);wU.prototype.D=function(){this.o=D()};
wU.prototype.G=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.g&1&&c.push("nm="+this.B);this.g&2&&c.push("nb="+this.C.get(b));if(this.g&8){var d=Qq(this.A);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.g&16&&null!=this.o&&c.push("clkt="+(D()-this.o));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
wU.prototype.F=function(){this.B++};
wU.prototype.O=function(){wU.L.O.call(this);this.b.dispose()};CU("d");DU("d");EU("d");var L$=CU("f");DU("f");EU("f");var mX=CU("i");DU("i");EU("i");CU("j");DU("j");EU("j");CU("u");DU("u");EU("u");CU("v");DU("v");EU("v");var M$=CU("b");DU("b");EU("b");var dX=CU("e");DU("e");EU("e");var eX=CU("s");DU("s");EU("s");CU("B");DU("B");EU("B");CU("x");DU("x");EU("x");CU("y");DU("y");EU("y");CU("g");DU("g");EU("g");CU("h");DU("h");EU("h");CU("n");DU("n");EU("n");CU("o");DU("o");EU("o");var mfa=[0,2,1],HU=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){HU=a},!0);
window.mb=function(a){if(a){var b=IU();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=xU(a.href,"mb",b,void 0)))}};y(JU,F);JU.prototype.D=function(){this.C=D()};
JU.prototype.G=function(a,b){var c=a.element;1==(this.g&1)&&(0==this.o&&this.o++,this.b.nm=this.o);2==(this.g&2)&&(this.b.nb=a.Qw);if(8==(this.g&8)){var d=Qq(this.B);this.b.nx=Math.round(b.clientX-d.x);this.b.ny=Math.round(b.clientY-d.y)}16==(this.g&16)&&null!=this.C&&(d=D()-this.C,this.b.clkt=d);512==(this.g&512)&&(d=IU())&&(this.b.mb=d);"A"==c.tagName.toUpperCase()&&df(c,ofa(this,c.href))};
JU.prototype.F=function(){this.o++};var pfa=qf?'javascript:""':"about:blank";y(KU,sU);KU.prototype.F=function(a){null==this.g||z(A(this.td()))||(this.g.N(a,"click",this.P),this.U.push(a))};
KU.prototype.ac=function(a){a?(null==this.Z&&(this.Z=this.ae(a),yf(this.Z,PU(this))),a=this.Z):(null==this.A&&(this.A=this.ae(),yf(this.A,PU(this))),a=this.A);null!=this.g&&this.g.N(a,"creativeview",this.Ga);return a};
KU.prototype.$k=function(){var a=this.Wa().A;a&&a.Gb("cleanup_text_overlay_spam_signals");return 2};
KU.prototype.Di=function(){for(var a=[this],b=this.Wa().g;b;){var c=this.B?qU(this,b)||qU(this,b,!0):QU(this,b)||QU(this,b,!0);null!=c&&a.push(c);b=b.g}return a};y(RU,KU);var sfa=new bf(300,250);RU.prototype.wa=function(){this.C=Math.max(0,this.C-1);ZU(this)};
RU.prototype.Aa=function(){this.C=Math.min(this.ga-3,this.C+1);ZU(this)};
RU.prototype.ae=function(){return this.ca};$U.prototype.Ta=function(){return this.C};
$U.prototype.getHeight=function(){return this.B};y(aV,nU);aV.prototype.td=function(){return this.A};
aV.prototype.il=function(a){var b="";Ph(this.K,function(c){var d=c.g;return!z(A(a))&&a!=c.b||null==d||z(A(d))?!1:(b=d,!0)},this);
return b};
aV.prototype.Ol=function(){return cV(this,"javascript")};
aV.prototype.Nl=function(){return cV(this,"x-shockwave-flash")};h=eV.prototype;h.nc=function(){if(null!=YV(this))return"application/javascript";if(null!=ZV(this))return"application/x-shockwave-flash";var a=this.b,b="";if(null===a)return b;if(a instanceof aV)a=a.ea,null===a||(b=A(a.b));else if(a instanceof KU)switch(a.J){case "IFrame":case "Html":case "Static":b=A(a.Y)}return b};
h.getExtension=function(a){return this.D.get(a)};
h.tb=function(){return this.ea?this.Sa:TV(this)?!0:gV(this,NV)?"video"==this.Ca:QV(this,"linear")};
h.isSkippable=function(){return null!=VV(this)};
h.qz=function(){return this.U};
h.Ta=function(){return this.tb()?0:this.Y.width};
h.getHeight=function(){return this.tb()?0:this.Y.height};
h.toString=function(){return"Ad: "+this.ca};y(cW,I);cW.prototype.oo=function(){return!0};
cW.prototype.cf=function(){return null};y(eW,cW);h=eW.prototype;h.O=function(){this.destroy();eW.L.O.call(this)};
h.destroy=function(){null!=this.B&&this.B.dispose();this.o=null;E(this.A,function(a){WS(a)},this);
this.g=null};
h.oo=function(){return this.C};
h.GC=function(){null!=this.D&&(this.D.stop(),this.D.dispose(),this.D=null);if(null!=this.b){var a=ZS(this.b);null!=a&&(this.A=a)}this.F=!0;null!=this.o&&fW(this);this.V(new mc("initialized"))};
h.JA=function(a){jW(this,a.getError())};
h.FA=function(a){if(null!=a.b){var b=a.b;"companion_slot_init"==a.type?od(function(){null!=this.g&&this.g.V(new nT("companion_impression"))},this):"companion_click"==a.type&&(qN(b.b),null!=this.g&&this.g.V(new nT("companion_click")))}};
h.cf=function(){return this.b};h=kW.prototype;h.Zk=function(){return KS(this.b)};
h.Ei=function(){return this.b.A};
h.Hd=function(){return this.b.A};
h.Mi=function(){var a=this.b.C;return null!=a?a:new pS};
h.ah=function(){var a=this.b;null!=a.b&&a.b.show()};
h.yd=function(){};
h.Pk=function(){return null!=this.b.o};
h.Ni=function(){return this.b.B};
h.Bl=function(){return!1};
h.bh=function(){return this.b.F};
h.setSize=function(a,b){this.b.setSize(a,b)};
h.da=function(){};
h.Zo=function(){return null};
h.es=function(){};y(lW,mc);y(nW,mc);ca(oW);var Ofa=/iu\=\/(\d+)\//;oW.prototype.start=function(a){this.g&&this.A.set(a,D())};
oW.prototype.end=function(a,b){if(this.g&&ug(this.A,a)){var c=D()-this.A.get(a),d=pW(this,a,c,b);nN(d);this.A.remove(a);this.o+=c}};
oW.prototype.sendMessage=function(a,b,c){this.g&&(a=pW(this,a,b,c),nN(a))};qW.prototype.start=function(a,b){this.B=a;this.D=b;Rfa(this);this.C.F?this.G():Fm(this.g,this.C,"initialized",this.G,this)};
qW.prototype.G=function(){var a=this.C.cf(),b;b=a.o?"retrieved"!=a.A?void 0:a.D:void 0;a=Nea(a);null!=b&&(this.o.B=b);null!=a&&(this.o.D=a);Qfa(this)};y(sW,I);var tW=null;sW.prototype.destroy=function(){this.H.qa(this.g,"activityMonitor",this.J);this.g=null};
sW.prototype.J=function(a){var b=a.Md;switch(a.Gc){case "appStateChanged":Xda(OQ.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":xW(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":vW(b.queryId,b.viewabilityString);break;case "pageSignals":this.I=b.pageSignals;break;case "viewableImpression":wW(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;uW().o=b;uW().G=D();break;case "viewability":a=b.eventId;window.clearTimeout(a);
var c=this.b.get(a);c&&(this.b.remove(a),c(b.viewabilityData));break;case "viewabilityMeasurement":OQ.getInstance();KO.getInstance();break;case "engagement":a=b.eventId;window.clearTimeout(a);c=this.b.get(a);if(RN.getInstance().g){var d=-1;this.D&&(d=D()-this.D);var e=!1;c||(e=!0);$b(b,"loggingId")&&RN.getInstance().b(43,{step:"receivedResponse",time:D(),timeout:e,logid:b.loggingId,timediff:d})}c&&(this.b.remove(a),c(b.engagementString))}};
ba("ima.bridge.getNativeViewability",function(a,b){uW();b({})},void 0);
ba("ima.bridge.getVideoMetadata",function(){var a=uW().F;return ia(a)?a():{}},void 0);
ba("ima.bridge.triggerViewEvent",wW,void 0);ba("ima.bridge.triggerMeasurableEvent",vW,void 0);ba("ima.bridge.triggerExternalActivityEvent",xW,void 0);y(AW,Wfa);y(DW,yW);DW.prototype.A=function(){return new zW(this.b,null,Zfa(this))};y(HW,gU);IW.prototype.parse=function(a){if(null==a)return null;var b,c,d;E(Ef(a),function(a){switch(a.nodeName){case "AdFormat":b=a.getAttribute("ad_system"),c=a.getAttribute("ad_type"),d=a.getAttribute("instream_type")}},this);
return null!=b&&null!=c&&null!=d?new HW(b,c,d):null};y(KW,gU);KW.prototype.isPharma=function(){return this.D};LW.prototype.parse=function(a){var b;MT(a,"config",function(a){null!=b||(b=cga(this,a))},this);
return b};MW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,m,l=!1,p=!1;E(Ef(a),function(a){switch(a.nodeName){case "AttributionText":c=LT(a);break;case "AttributionUrl":d=LT(a);break;case "ConversionUrl":f=LT(a);break;case "CustomTracking":null!=Ef(a)&&(e=fU(a));break;case "is_pharma":a=KT(a,"bool");p=PT(A(a));break;case "CheckedEvents":a=Ef(a);b=zi(a,function(a){return KT(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":LT(a);break;case "VisibleUrl":k=LT(a);break;case "UI":m=(new LW).parse(a);break;case "ShowYouTubeAnnotations":var u=LT(a);l=PT(A(u),!1);case "QueryId":LT(a)}},this);
null!=m||(m=new JW);return new KW(c,d,f,0,k,m,l,0,p,e,b)};NW.prototype.parse=function(a){if(null==a)return null;var b;E(Ef(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Ef(a)&&(b=fU(a))}});
a=null;null!=b&&0<$T(b,"skip").length&&(a="Generic");return new kU(a,b)};OW.prototype.parse=function(a){if(null==a)return null;var b,c;E(Ef(a),function(a){switch(a.nodeName){case "SkippableAdType":b=LT(a);break;case "CustomTracking":null!=Ef(a)&&(c=fU(a))}});
return new kU(b,c)};PW.prototype.parse=function(a){if(null==a)return null;var b;E(Ef(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Ef(a)&&(b=fU(a))}},this);
return new gU(b)};var dga=[202,1009],jga=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],iga={MOAT_INIT:["://yts.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"],MOAT_VIEWABILITY:["://[^.]*.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],IAS_VIEWABILITY:["://[^.]*.adsafeprotected.com","://[^.]*.test-adsafeprotected.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],DV_VIEWABILITY:["://[^.]*.yt.srs.doubleverify.com","://pagead2.googlesyndication.com/pagead/gen_204",
"://pubads.g.doubleclick.net"],GOOGLE_VIEWABILITY:["://pubads.g.doubleclick.net"]};var N$,O$,P$,Q$,cX,kX,R$,S$,T$,U$,V$,W$,X$,lX,Y$;YW.prototype.Na=function(a){return AU(this.b,a?a.b:null)};
HV.prototype.Na=function(a){return AU(this.b,a?a.b:null)};
HV.prototype.Kb=function(){var a=this.b.type;return null!=a?a:0};
var kga=new $W,nqa=new JV;HV.prototype.B=function(){var a=this.b.website_card;return a?new JV(a):nqa};
var oqa=new IV;HV.prototype.o=function(){var a=this.b.placement;return a?new IV(a):oqa};
HV.prototype.A=function(){return zU(this.b,"action")};
HV.prototype.g=function(a){return new LV(yU(this.b,"action")[a])};
IV.prototype.Na=function(a){return AU(this.b,a?a.b:null)};
LV.prototype.Na=function(a){return AU(this.Sd,a?a.Sd:null)};
LV.prototype.Kb=function(){var a=this.Sd.type;return null!=a?a:0};
LV.prototype.getId=function(){var a=this.Sd.id;return null!=a?a:""};
LV.prototype.setTitle=function(a){this.Sd.title=a};
ZW.prototype.Na=function(a){return AU(this.b,a?a.b:null)};
ZW.prototype.Kb=function(){var a=this.b.type;return null!=a?a:0};
$W.prototype.Na=function(a){return AU(this.b,a?a.b:null)};
var lga=new aX;TU.prototype.Na=function(a){return AU(this.b,a?a.b:null)};
JV.prototype.Na=function(a){return AU(this.b,a?a.b:null)};
var mga=new aX;aX.prototype.Na=function(a){return AU(this.b,a?a.b:null)};var pX;
pX={event:{type:{TYPE_IMPRESSION_ENDCAP:8,TYPE_IMPRESSION:1,TYPE_ACTION:6,TYPE_ACTION_ENDCAP:9,TYPE_COLLAPSE:3,TYPE_DISMISS_ENDCAP:11,TYPE_HEADLINE_CLICK:5,TYPE_COLLAPSE_ENDCAP:10,TYPE_DISMISS:4,TYPE_NONE:0,TYPE_IMPRESSION_GALLERY:7,TYPE_EXPAND:2}},action:{type:{TYPE_SUBSCRIPTION:6,TYPE_VIDEO:3,TYPE_HELPOUTS:15,TYPE_INLINE_APPLICATION_STORE:19,TYPE_PLAYLIST:7,TYPE_RESULTS:11,TYPE_COLLAPSE:17,TYPE_FUNDRAISING:10,TYPE_MERCH:9,TYPE_CHANNEL:2,TYPE_APPLICATION_STORE:4,TYPE_LETTERMAN:14,TYPE_RESPONSE:12,TYPE_IRDB:8,
TYPE_NONE:0,TYPE_HEADLINE:1,TYPE_VOTE:18,TYPE_EXTERNAL:16,TYPE_INTERNAL:13,TYPE_ATTRIBUTION:5}},card:{prominence:{PROMINENCE_FEATURE:2,PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0},type:{TYPE_LOCATION:5,TYPE_WEBSITE:4,TYPE_PRODUCT:1,TYPE_VOTE:3,TYPE_NONE:0,TYPE_APP:2}},ad_card:{attribution_position:{POSITION_BOTTOM_LEFT:0,POSITION_BOTTOM_RIGHT:3,POSITION_TOP_LEFT:1,POSITION_TOP_RIGHT:2}}};y(nX,gU);oX.prototype.parse=function(a){var b=gA(a);if(z(A(b)))return null;var c;if(this.b){c=qX;if(!N$){var d={};N$={Nb:d};if(!O$){var e={};O$={Nb:e};e.type=dX;if(!P$){var f={};P$={Nb:f};f.major_version=mX;f.minor_version=mX}e.version=FU(P$);e.priority=mX;e.start_time_ms=CU("j");e.end_time_ms=CU("j");e.action=GU(hX());e.event=GU(gX());V$||(f={},V$={Nb:f},f.headline=eX,f.description=eX,f.attribution_icon_url=eX,f.skippable_seconds=mX,f.attribution_position=dX);e.ad_card=FU(V$);if(!R$){f={};R$={Nb:f};f.headline=
eX;f.image=FU(fX());f.description=eX;f.rating=L$;f.review_text=eX;if(!S$){var k={};S$={Nb:k};k.merchant=eX;k.price=eX;k.shipping=eX;k.shipping_tax=eX;k.condition=eX;k.unit_price=eX;k.energy_label=eX;k.description=eX;k.rating=L$;k.review_text=eX;k.action=GU(hX());k.event=GU(gX())}f.offer=GU(S$)}e.product_card=FU(R$);T$||(f={},T$={Nb:f},f.app_id=eX,f.app_name=eX,f.icon=FU(fX()),f.price=eX,f.rating_image=eX,f.review_count=mX,f.app_store_logo=FU(fX()),f.button_text=eX,f.screenshots=GU(fX()),f.rating=
L$,f.back_button_text=eX,f.screenshots_text=eX,f.cover_photo=FU(fX()));e.app_card=FU(T$);U$||(f={},U$={Nb:f},f.headline=eX,f.description=eX,f.icon=FU(fX()));e.website_card=FU(U$);e.prominence=dX;W$||(f={},W$={Nb:f},f.call_to_action_text=eX);e.social_card=FU(W$);X$||(f={},X$={Nb:f},f.vote_line_1=eX,f.vote_line_2=eX,f.confirm_line_1=eX,f.confirm_line_2=eX);e.vote_card=FU(X$);e.sponsored=M$;e.teaser_text=eX;Q$||(f={},Q$={Nb:f},f.hide_in_drawer=M$,f.show_in_endcap=M$,f.show_in_companion=M$,f.show_in_cta=
M$,f.override_clickthrough=M$);e.placement=FU(Q$);Y$||(f={},Y$={Nb:f},f.latitude_e6=mX,f.longitude_e6=mX,f.address=eX,f.image=FU(fX()),f.headline=eX);e.location_card=FU(Y$)}d.card=GU(O$);d.event=GU(gX())}a=c(this,a,N$);a=c=new YW(a);d=new WT;for(e=0;e<zU(a.b,"card");e++)if(f=bX(a,e),MV(f.o()))for(k=0;k<zU(f.b,"event");k++){var m,l=k;m=new ZW(yU(f.b,"event")[l]);l=null;switch(m.Kb()){case 9:l="video_card_endcap_action";break;case 10:l="video_card_endcap_collapse";break;case 11:l="video_card_endcap_dismiss";
break;case 8:l="video_card_endcap_impression"}l&&(m=m.b.base_url,bU(d,l,rX(l,null!=m?m:"")))}a=d}else a=nga(this,a);return new nX(b,c,a)};y(sX,gU);sX.prototype.Gd=function(){return this.g};tX.prototype.B=function(a){var b={};E(this.g,function(a){b[a]=[]});
var c=new RegExp("^"+this.A);E(Ef(a),function(a){"config"!=a.nodeName||E(Ef(a),function(a){"params"!=a.nodeName||E(Ef(a),function(a){var d=this.A?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=LT(a));null!=a.getAttribute("learn_more")&&(e+="|");kb(this.g,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};y(vX,gU);y(xX,tX);xX.prototype.parse=function(a){if(null==a)return null;a=uX(this,a);var b=a.UI;return new vX(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
xX.prototype.o=function(a){var b=[],c=0;E(Ef(a),function(a){if("SurveyOption"==a.nodeName){var e,f;E(Ef(a),function(a){switch(a.nodeName){case "DisplayName":e=LT(a);break;case "URL":f=LT(a)}},this);
null!=e&&null!=f&&(b.push({label:e,url:f}),c++)}},this);
return b};y(yX,gU);zX.prototype.b={cw:"Siub",bw:"Scs",Gu:"Bgub",Fu:"Bgp"};zX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;E(Ef(a),function(a){switch(a.nodeName){case this.b.cw:b=LT(a);break;case this.b.bw:c=LT(a);break;case this.b.Gu:d=LT(a);break;case this.b.Fu:e=LT(a)}},this);
return b&&c&&d&&e?new yX(b,c,d,e):null};y(AX,gU);BX.prototype.b={iw:"TEMPLATE_PARAMETERS",jw:"TEMPLATE_URL"};BX.prototype.parse=function(a){if(null==a)return null;E(Ef(a),function(a){switch(a.nodeName){case this.b.iw:oga(this,a)}},this);
return new AX};y(CX,gU);DX.prototype.b={xv:"Line1",yv:"Line2",zv:"Line3",uv:"ImageUrl"};DX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;E(Ef(a),function(a){switch(a.nodeName){case this.b.xv:b=LT(a,!0);break;case this.b.yv:c=LT(a,!0);break;case this.b.zv:d=LT(a,!0);break;case this.b.uv:e=LT(a)}},this);
return new CX(b,c,d,e)};y(EX,gU);FX.prototype.parse=function(a){if(null==a)return null;var b;E(Ef(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),z(A(a))||(b=a)}},this);
return new EX(b)};y(GX,gU);y(HX,tX);var pqa=["menu","got_it","targeting_reason_header"],qqa=[["generic_message_left","generic_message_hypertext","generic_message_right"]];HX.prototype.parse=function(a){if(null==a)return null;a=uX(this,a);var b=a.UI;if(!IX(b,pqa))return null;var c,d=!0,e=!1;E(qqa,function(a){pga(b,a)&&(IX(b,a)?e=!0:d=!1)});
var f=b.targeting_reason;if(!d||!e||0==f.length)return null;null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new GX(b.menu,b.targeting_reason_header,b.targeting_reason,b.got_it,a.CustomTracking,c,b.control)};JX.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Ya(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new lU(a)};y(KX,gU);LX.prototype.parse=function(a){return null!=a?new KX:null};MX.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ya(a):window.NaN;return new mU(a)};y(OX,KU);OX.prototype.ae=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:lN(A(this.o)),width:this.Ta(),height:this.getHeight(),Ab:this.td(),Df:this.vo||!a},b=W.b()&&yT(this.D,"hideMaster")?NX:sga,a=xR(b,a);a.style.width=this.Ta()+"px";a.style.height=this.getHeight()+"px";a.id=this.oa;E(a.getElementsByTagName("object"),this.F,this);E(a.getElementsByTagName("a"),this.F,this);return a};y(PX,KU);PX.prototype.ae=function(){var a=M("div");a.innerHTML=this.o;this.F(a);return OU(this,a)};y(QX,KU);QX.prototype.Wb=function(){var a=QX.L.Wb.call(this);this.B&&(a=a.replace('src=""','src="'+lN(A(this.o))+'"'));return a};
QX.prototype.Pl=function(){var a=QX.L.Pl.call(this);this.B&&(a=a.replace('src=""','src="'+lN(A(this.o))+'"'));return a};
QX.prototype.ae=function(a){var b="";this.B||(b=lN(A(this.o)));b={id:this.oa,url:b,Ab:this.td(),width:this.Ta()+"px",height:this.getHeight()+"px"};a=W.b()&&yT(this.D,"hideMaster")?NX:a?uga:tga;a=xR(a,b);E(a.getElementsByTagName("a"),this.F,this);return a};
QX.prototype.eh=function(){return!0};y(RX,KU);h=RX.prototype;h.sc=function(){return new bf(this.Ta(),this.getHeight())};
h.getHeight=function(){return 63};
h.Ta=function(){return null!=this.C?$q(this.C).width:0};
h.$k=function(a){var b=this.Wa().A;return b&&b.Gb("cleanup_text_overlay_spam_signals")?ee(a,"text-image-link")?9:ee(a,"text-ad-channel")?1:0:ee(a,"text-image")?9:ee(a,"text-ad-channel")?1:0};
h.ae=function(){var a=this.Wa(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.A,e="rtl";null!=d&&(e=z0.test(ke(d,void 0))?"rtl":"ltr");d={title:d,text:c.o+" "+c.B,dir:e,Ab:this.td()};if(c=c.g)d.image=lN(c),a=fb(a.B,function(a){return a instanceof aV}),null!=a&&(d.duration=wT(a.X));
b.g&&(d.os=b.g);this.C=xR(rga,d);E(this.C.getElementsByTagName("a"),this.F,this);this.C.id=this.oa;this.C.style.height=this.getHeight()+"px";return this.C};y(SX,KU);SX.prototype.ae=function(){var a=A(this.o);z(A(this.td()))||(a=new N(a),hh(a,"clickTAG",xa(this.td())),a=a.toString());var b=M("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.nc()&&(b.width=this.Ta());b.setAttribute("src",lN(a));this.F(b);return OU(this,b)};VX.prototype.nc=function(){return null!=this.b?rU[this.b]||"Other":null};WX.prototype.ac=function(){return this.b};
WX.prototype.update=function(a,b){var c=null!=this.D?UT(this.D):0;this.g=0<=this.g?this.g:b;c<=a&&c+this.g>=a?wga(this):S(this.b,!1)};y(XX,yW);
XX.prototype.b={xu:"Ad",dk:"AdParameters",zu:"AdSystem",Au:"AdTitle",OH:"Advertiser",Du:"AltText",Iu:"ClickThrough",Ju:"ClickTracking",Ku:"Companion",Lu:"CompanionAds",Mu:"CompanionClickThrough",Nu:"CompanionClickTracking",Pu:"Creative",wJ:"CreativeExtensions",Qu:"Creatives",Uu:"CustomClick",Xu:"Description",gk:"Duration",ERROR:"Error",ev:"Extension",fv:"Extensions",Wh:"HTMLResource",lv:"Icon",mv:"Icons",nv:"IconClicks",ov:"IconClickThrough",pv:"IconClickTracking",qv:"IconViewTracking",Yh:"IFrameResource",Zh:"Impression",
CK:"InLine",LINEAR:"Linear",Dv:"MediaFile",Ev:"MediaFiles",Lv:"NonLinear",Mv:"NonLinearAds",Nv:"NonLinearClickThrough",Ov:"NonLinearClickTracking",wM:"Pricing",$h:"StaticResource",hw:"Survey",HN:"Tracking",kk:"TrackingEvents",XN:"VAST",lw:"VASTAdTagURI",mw:"VideoClicks",qw:"Wrapper"};
XX.prototype.g={yu:"adSlotID",Cu:"allowMultipleAds",Uh:"apiFramework",Gn:"bitrate",Ru:"creativeType",Wu:"delivery",gk:"duration",bK:"event",jv:"followAdditionalWrappers",cv:"expandedHeight",dv:"expandedWidth",Vh:"height",Xh:"id",Av:"maintainAspectRatio",Cv:"maxBitrate",Hv:"minBitrate",Iv:"minSuggestedDuration",Pv:"offset",Qv:"program",Uv:"required",Xv:"scalable",Rn:"sequence",$v:"skipoffset",co:"type",VERSION:"version",ow:"codec",ai:"width",rw:"xPosition",tw:"yPosition"};
XX.prototype.A=function(){return new zW(this.o,zga(this),null)};y(fY,yW);fY.prototype.A=function(){return new zW(this.g,null,Sga(this))};h=jY.prototype;
h.clone=function(){var a=new jY;"auto"==this.nf?a.nf="auto":"click"==this.nf&&(a.nf="click");a.b=this.b;a.We=hc(this.We);a.g=this.g;a.B=this.B;a.Fb=hc(this.Fb);a.C=this.C;a.location=this.location;a.referrer=this.referrer;a.F=this.F;a.language=this.language;a.Tf=this.Tf;a.Sf=this.Sf;a.Uc=this.Uc;a.Tc=this.Tc;a.Hc=this.Hc;a.tj=this.tj;a.Li=this.Li;a.Lm=this.Lm;a.A=this.A;a.o=this.o;a.Eh=this.Eh;a.Ki=this.Ki;a.afcRmFallback=this.afcRmFallback;a.H=this.H;a.G=this.G;a.If=this.If;this.D&&(a.D=tb(this.D));
a.Gb=this.Gb;a.Fi=this.Fi;a.pl=this.pl;a.bq=this.bq;return a};
h.We=null;h.Fb=null;h.nf="unknown";h.bq=0;h.Tf=0;h.Sf=0;h.Uc=0;h.Tc=0;h.If=!1;h.Hc=null;h.tj=!1;h.Li=!1;h.Lm=!0;h.Gb=function(){return!1};
h.Fi=function(){return window.NaN};
h.pl=function(){return""};
h.Eh=0;h.Jo=!0;h.Ki=null;h.afcRmFallback=!1;kY.prototype.F=function(){return this.o(this.B()).toString()};
kY.prototype.C=function(){var a;a=1;KN()&&(a+=4);if(!W.b()){var b=0;eN(cN(),41351017)&&(b+=7168);a+=b}return a};var LY={NN:"ultrahigh",tK:"high",Fv:"medium"},dha={jI:1E3,kI:1001,lI:1002,mI:1003,nI:1004,oI:1005,pI:1006},eha={Bv:1,gv:2},fha={qJ:"content",ZM:"site",$M:"site_content"};h=qY.prototype;h.ci="high";h.Jl=!1;h.mk=1;h.nk=null;h.adType="video";h.adBlock=1;h.Kl=null;h.tk=!0;h.uk=null;h.Mk=null;h.Rg=null;h.experimentIds=null;h.gender=null;h.host=null;h.hostTierId=null;h.Ll=!1;h.language=null;h.Ip=null;h.Hp=null;h.Zi=1E5;h.$i=null;h.Kp=null;h.Jp=null;h.jm=0;h.jg=null;h.ij=null;h.oj=null;h.targeting=null;
h.tagForChildDirectedTreatment=-1;h.url=null;h.Ri=null;h.Wm=null;h.Ml=null;h.cn=null;h.$m=null;h.an=null;h.bn=null;h.Ak=null;var aha=(new Date).getTime();var bha={VI:"bumpervideo",hv:"flash",IMAGE:"image",eN:"skippablevideo",hN:"standardvideo",kN:"staticimage",TEXT:"text",VIDEO:"video"},DY=["flash","image","staticimage"],cha=[new bf(200,200),new bf(250,250),new bf(300,250),new bf(336,280),new bf(450,50),new bf(468,60),new bf(480,70),new bf(728,90)];y(MY,kY);var gha=["bumpervideo","skippablevideo","standardvideo","video"];MY.prototype.D={Bu:"allow",av:"exclude",HM:"require"};MY.prototype.C=function(){var a=MY.L.C.call(this);W.b()&&this.b.oj&&(a|=this.b.oj);return a};
MY.prototype.o=function(a){var b=new N(this.g.b),c=new N("//"+b.g+b.A),b=a.La();E(b,function(b){hh(c,b,a.get(b))});
Yg(c,"https");return c};
MY.prototype.B=function(){var a=new sg;a.set("sdkv",pY(this));a.set("sdki",this.C().toString(16));a.set("video_product_type",null!=this.b.jg?W.b()?5:va(this.b.jg,"ca-games-")?4:va(this.b.jg,"ca-video-")?0:-1:-1);a.set("correlator",this.G.b);a.set("client",this.b.jg);W.b()&&!z(A(this.b.url))?a.set("url",this.b.url):a.set("url",this.g.location?this.g.location:this.g.referrer);null!=this.g.Hc&&a.set("adk",this.g.Hc);a.set("num_ads",NY(this));a.set("channel",iha(this));a.set("output","xml_vast3");this.b.Jl&&
a.set("adtest","on");uT&&a.set("flash",VO);CY("alternate_ad_url",this.b.uk,a);CY("cpm",this.b.Mk,a);tY(a,this.g);W.b()||Vb(LY,this.b.ci)&&a.set("adsafe",this.b.ci);this.b.host&&(a.set("host",this.b.host),CY("ht_id",this.b.hostTierId,a),null!=this.b.A&&CY("h_ch",this.b.A.join("+"),a));CY("hl",this.b.language,a);CY("cust_age",this.b.Kl,a);CY("cust_gender",this.b.gender,a);-1!=this.b.tagForChildDirectedTreatment&&CY("tfcd",this.b.tagForChildDirectedTreatment,a);CY("slotname",this.b.nk,a);if(xY(this.b)&&
(a.set("ea","0"),null!=this.g.Uc&&null!=this.g.Tc)){var b=yY(this.b,this.g.Uc,this.g.Tc,this.g.If);a.set("image_size",b);z(b)&&(this.b.b=FY(this.b.b,this.b.adType,!0),this.b.adType=this.b.b.join("_"))}a.set("ad_type",this.b.adType);b=gN(cN());z(A(b))||a.set("eid",b);uY(a);sY(a,this.G,this.g.B||this.b.Rg);a.set("unviewed_position_start","1");b=this.b.mk;a.set("videoad_start_delay",null!=b?b:1);nY(this,a);oY(this,a);lY(this,a);hha(this)&&a.set("video_format",null!=this.b.Ri&&W.b()?this.b.Ri:Xl&&fu(6)||
hu&&fu(4)||kI&&FN(JN,2.3)?43:18);b=null!=this.b.ij?this.b.ij:kb(this.b.adType.split("_"),"text")?this.D.Bu:this.D.av;a.set("t_pyv",b);CY("min_ad_duration",this.b.jm,a);0<this.b.Zi&&a.set("max_ad_duration",OY(this.b.Zi,NY(this)));0<this.b.$i&&a.set("sdmax",OY(this.b.$i,NY(this)));zY(a,this.H);W.b()&&(b=iR(this.b.Rg),null!=b&&a.set("video_doc_id","yt_"+b));CY("description_url",this.b.Rg,a);W.b()&&(CY("lact",vY(this.g),a),CY("loeid",this.b.Ml,a),CY("lsv",this.b.Ll,a),this.b.tk||CY("scs","false",a),CY("targeting",
this.b.targeting,a),CY("video_cpm",this.b.Wm,a),CY("yt_pt",this.b.cn,a),CY("ytdevice",this.b.$m,a),CY("ytdevicever",this.b.an,a),CY("yt_vis",wY(this.g),a),CY("dbp",this.b.bn,a),CY("avo",this.b.Ak,a));null!=a.get("ms")||CY("ms",this.b.o,a);mY(a);AY(this.g,a,!1);null!=this.g.We&&CY("loc",this.g.We.page_location,a);return a};y(PY,kY);PY.prototype.o=function(a){var b=new N(this.g.b);E(a.La(),function(c){z(a.get(c))?b.b.remove(c):hh(b,c,a.get(c))});
Yg(b,"https");return b};
PY.prototype.B=function(){var a=new sg;a.set("sdkv",pY(this));oY(this,a);lY(this,a);mY(a);null!=this.g.Hc&&a.set("adk",this.g.Hc);return a};y(QY,kY);QY.prototype.B=function(){return new sg};
QY.prototype.o=function(){var a=new zT(this.g.b),b=pY(this);b&&AT(a,"dc_sdkv",[b]);(b=this.C().toString(16))&&AT(a,"dc_sdki",[b]);(b=this.A.F)&&AT(a,"dc_submodel",[b]);null!=this.g.Hc&&AT(a,"dc_adk",[this.g.Hc]);b=new sg;nY(this,b);oY(this,b);lY(this,b);mY(b);ug(b,"js")&&AT(a,"dc_js",[b.get("js")]);ug(b,"msid")&&AT(a,"dc_msid",[b.get("msid")]);ug(b,"frm")&&AT(a,"dc_frm",[b.get("frm")]);ug(b,"osd")&&AT(a,"dc_osd",[b.get("osd")]);ug(b,"sdr")&&AT(a,"dc_sdr",[b.get("sdr")]);AT(a,"dcmt",["text/xml"]);
ug(b,"vpa")&&AT(a,"vpa",[b.get("vpa")]);ug(b,"mpt")&&AT(a,"mpt",[b.get("mpt")]);ug(b,"mpv")&&AT(a,"mpv",[b.get("mpv")]);Yg(a,"https");return a};y(RY,kY);RY.prototype.o=function(a){a=new N(a.get("adTagUrl"));Yg(a,"https");return a};
RY.prototype.F=function(){var a=A(this.B().get("adTagUrl"));return a=a.replace(/^http:/i,"https:")};
RY.prototype.B=function(){var a=new sg;a.set("adTagUrl",this.g.b);a.set("adsResponse",this.g.g);return a};y(SY,kY);SY.prototype.o=function(a){return new N(a.get("adTagUrl"))};
SY.prototype.B=function(){var a=new sg;a.set("adTagUrl",this.g.b);a.set("adsResponse",this.g.g);return a};y(TY,kY);TY.prototype.o=function(a){var b=new N(this.g.b);E(a.La(),function(c){z(a.get(c))?b.b.remove(c):hh(b,c,a.get(c))});
Yg(b,"https");return b};
TY.prototype.B=function(){var a=new sg,b=gN(cN());z(A(b))||a.set("eid",b);a.set("sdkv",pY(this));a.set("sdki",this.C().toString(16));a.set("correlator",this.A.B);a.set("scor",this.A.b);null!=this.g.Hc&&a.set("adk",this.g.Hc);nY(this,a);oY(this,a);lY(this,a);mY(a);var b=(new N(this.g.b)).b,c=new qY;c.g=JY(c.g,b.get("overlay"));a.set("afvsz",yY(c,this.g.Uc,this.g.Tc,this.g.If));b=this.A.o;null!=b&&(this.A.o=null,a.set("fbidx",b));b=this.A.M;null!=b&&a.set("ppid",b);b="null";c=this.A.g;null!=c?b=c:UY(this.g.location)?
b=this.g.location:UY(this.g.referrer)&&(b=this.g.referrer);a.set("url",b);b=this.A.F;null!=b&&a.set("submodel",b);b=this.A.D;null==b||W.b()||(b=jha(b),a.set("ciu_szs",b));a.set("impl","");a.set("unviewed_position_start","1");return a};y(VY,TY);VY.prototype.o=function(a){a=VY.L.o.call(this,a);this.G||lha(this,a);return a};y(WY,QY);WY.prototype.o=function(a){a=WY.L.o.call(this,a);this.G||nha(this,a);return a};y(XY,kY);var oha=["CPN","MT","LACT","VIS","TSLA"];XY.prototype.o=function(){var a=new N(TM(this.g.b,pha(this)));Yg(a,"https");return a};
XY.prototype.B=function(){return new sg};bZ.prototype.Kd=function(){return null!=this.b&&this.b.Kd()?!0:0<this.ads.length&&this.g<this.ads.length-1};
bZ.prototype.H=function(a,b){return this.B?0<a.length?a:b:vb(b,0,1)};
bZ.prototype.A=function(a,b,c){var d;if(!(d=null!=a.b)){var e=this.C;d=e.Uc||0;e=e.Tc||0;gV(a,NV)&&!a.U?QV(a,"nonlinear")?$Y(a,d,e):aZ(a):QV(a,"linear")?aZ(a):QV(a,"nonlinear")&&$Y(a,d,e);d=null!=a.b}d?(this.D++,b(a)):(b=lb(a.B)?tN(iY):a.tb()?tN(vZ):tN(hqa),d=VW(b,a),yT(wfa(a),"rm")?b.A=!1:qN(a.Ga,d),c(b))};
bZ.prototype.F=function(a,b,c){var d=this.C.clone();d.g="";d.b=a.Fa;d.Hc=MS(d.b,d.Ki);dZ(this,a,d,b,c)};y(iZ,bZ);iZ.prototype.Kd=function(){return null!=this.b&&this.b.Kd()?!0:0<this.ads.length&&this.g<this.ads.length-1&&0==this.D};
iZ.prototype.H=function(a,b){return b};
iZ.prototype.A=function(a,b,c){var d;d=null==this.b?DV(a):DV(this.ads[this.g]);this.J.o=d;iZ.L.A.call(this,a,b,c)};
iZ.prototype.F=function(a,b,c){this.J.o=-1;iZ.L.F.call(this,a,b,c)};jZ.prototype.fetch=function(a,b,c){z(A(a.g))?GT(a.b)&&null!=this.b&&!this.b.F?this.b.start(a,w(function(){lZ(this,a,b,c)},this)):lZ(this,a,b,c):Eha(this,a,b,c)};
jZ.prototype.g=function(a,b,c,d){var e=qha(a,this.o).F(),e=yca(e,d);d=a.Li&&iN(bqa,e)?"POST":"GET";uha(this.A,e,w(function(d){kZ(this,d,a,b,c)},this),w(function(b,d){var e;
e=8==b?tN(nZ):5==b||6==b?tN(cqa):tN(dqa,d);c(e);e="third_party";DT(a.b)?e="adsense":FT(a.b)?e="dart":GT(a.b)&&(e="xfp");e={rt:e,ec:b};RN.getInstance().b(18,e,!0)},this),this.C,d);
Gha(a)};mZ.prototype.reset=function(a){this.b=a+D()};y(qZ,I);var rqa={NORMAL:"normal",jk:"fullscreen"};y(wZ,F);h=wZ.prototype;h.dh=!1;h.yp=1E3;h.fq=30;h.gq=45E3;h.wr=15E3;h.qs=!1;h.Kk=function(){var a=xZ(this);this.b.appendChild(this.H);yZ(this.H);this.play();return a};
h.fa=function(){null==this.J&&(this.J=this.Kk());return this.J};
h.play=function(){null==this.g&&(this.g=$d(function(){this.dh||(this.da(),this.qs=!0);this.g=null},this.qs?this.wr:this.gq,this))};
h.stop=function(){null!=this.g&&(ae(this.g),this.g=null)};
h.show=function(){ar(this.fa(),1);null!=this.A&&(ae(this.A),this.A=null)};
h.da=function(){ar(this.fa(),this.fq/100);null==this.A&&(this.A=$d(function(){this.P();this.A=null},400,this))};
h.Dy=function(){this.show();this.dh=!0;this.C=$d(function(){this.dh&&this.stop();this.C=null},this.yp,this)};
h.tE=function(){null!=this.C&&(ae(this.C),this.C=null);this.dh&&this.play();this.dh=!1};
h.O=function(){wZ.L.O.call(this);this.stop();Nb(this.pd)};y(zZ,wZ);h=zZ.prototype;h.Kk=function(){var a=xZ(this);J(a,"ima-container-rotator");this.F=M("div");this.b.appendChild(this.F);E(this.I,function(a,c){J(a,"ima-container-highlight");var d=63/this.I.length*(c+.5)-5,e=M("div",{id:Xa(),"class":"ima-container-selector"});e.style.top=d+"px";this.pd.N(e,"click",function(a){this.mg(a.target)});
this.M.set(e.id,a);this.D.appendChild(e)},this);
this.mg(Gf(this.D));this.play();return a};
h.play=function(){null==this.o&&(this.o=new Yd(this.K),this.pd.N(this.o,"tick",this.UD));zZ.L.play.call(this);this.o.start()};
h.stop=function(){null!=this.o&&this.o.stop();zZ.L.stop.call(this)};
h.UD=function(){var a=this.B;this.mg((n(a.nextElementSibling)?a.nextElementSibling:Ff(a.nextSibling))||Gf(this.B.parentNode))};
h.mg=function(a){this.B&&he(this.B,"ima-container-active");J(a,"ima-container-active");var b=this.M.get(a.id);Cf(b,this.F);this.B=a;this.F=b;yZ(b)};y(AZ,wZ);AZ.prototype.da=r;AZ.prototype.Kk=function(){var a=xZ(this);E(this.o,function(a){J(a,"ima-container-highlight");this.b.appendChild(a);yZ(a)},this);
this.play();return a};y(BZ,vA);h=BZ.prototype;h.play=function(){if(this.Ya())return!1;this.bj();this.Cc("play");this.startTime=D();this.b=1;if(Vpa())return Gq(this.g,this.D),this.o=$d(this.Dx,void 0,this),!0;this.Km(!1);return!1};
h.Dx=function(){Zq(this.g);hr(this.g,this.C);Gq(this.g,this.A);this.o=$d(w(this.Km,this,!1),1E3*this.B)};
h.stop=function(){this.Ya()&&this.Km(!0)};
h.Km=function(a){Gq(this.g,"transition","");ae(this.o);Gq(this.g,this.A);this.endTime=D();this.b=0;a?this.Cc("stop"):this.gc();this.hh()};
h.O=function(){this.stop();BZ.L.O.call(this)};
h.pause=function(){};y(EZ,I);h=EZ.prototype;h.start=function(){this.El();this.A=0;FZ(this);this.g=!0;this.B.start()};
h.play=function(){this.g||(FZ(this),this.g=!0,this.B.start())};
h.pause=function(){this.g&&FZ(this)};
h.stop=function(){this.g&&FZ(this);this.V("end")};
h.El=function(){};
h.qC=function(){this.A+=.2;this.Dl(this.A,this.H);this.V("timeUpdate");0>=this.H-this.A&&this.stop()};
h.Dl=r;h.O=function(){this.g=!1;this.G.dispose();EZ.L.O.call(this)};y(HZ,I);HZ.prototype.C=function(){this.b?this.V("videoUnmuteClicked"):this.V("videoMuteClicked")};
HZ.prototype.O=function(){this.B.dispose();this.B=null;HZ.L.O.call(this)};y(IZ,I);h=IZ.prototype;h.O=function(){null!=this.G&&(this.G.dispose(),this.G=null);null!=this.H&&(this.H.dispose(),this.H=null);LZ(this);null!=this.B&&(Bf(this.B),this.B=null);null!=this.g&&(this.g=null);null!=this.b&&(Bf(this.b),this.b=null);this.J.dispose();this.J=null;this.D.dispose();this.D=null;this.M=!1;IZ.L.O.call(this)};
h.update=function(a,b){this.P=b;if(!(0>=this.P||null==this.A.skipOffset||0>UT(this.A.skipOffset))){var c=UT(this.A.skipOffset);c>=this.P||3==this.o||(0>a?this.o=1:a<=c?(2!=this.o&&(KZ(this,0),CZ(this.B,.5,"ease-out",0,1).play(),S(this.B,!0)),this.o=2):(3!=this.o&&(S(this.b,!0),this.H=new BZ(this.B,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.G=CZ(this.b,.5,"ease-out",0,1),this.H.play(),this.G.play(),this.g.autofocus&&
this.g.focus(),this.D.N(If(this.b),"mouseover",this.QD),this.D.N(If(this.b),"mouseout",this.Vr),this.Vr()),this.o=3,this.V("skipshown")))}2==this.o&&KZ(this,a)};
h.skip=function(){return null==this.A.skipOffset||3!=this.o||this.K?!1:(this.K=!0,this.V("PUBLISHER_INVOKED_SKIP"),!0)};
h.jE=function(a){W.b()||a.stopPropagation();3!=this.o||this.K||(this.K=!0,this.V("skip"))};
h.Vr=function(){var a="4.4.4"===(kI?EN(JN):""),a=!eN(cN(),420706003)||!a;null==this.C&&a&&(this.C=$d(function(){this.M=!0;CZ(this.b,.5,"ease-in",1,.5).play();this.C=null},this.M?5E3:15E3,this))};
h.QD=function(){ar(this.b,1);LZ(this)};y(PZ,I);h=PZ.prototype;h.show=function(){null!=this.g&&S(this.g,!0)};
h.skip=function(){var a;if(a=null!=this.o)a=this.o,a=null!=a.A.skipOffset&&3==a.o;return a?this.o.skip():!1};
h.O=function(){null!=this.g&&(Bf(this.g),this.g=null);QZ(this);E(this.M,function(a){gR(a)});
this.M=[];this.B=null;this.A.dispose();this.A=null;this.ka=!1;PZ.L.O.call(this)};
h.update=function(a,b,c,d,e){this.ka=!0;null!=this.g&&(null!=this.ca&&Yha(this,a,c,d,e),null!=this.X&&Wq(this.X,a/c*100+"%"),null!=this.ia&&Wq(this.ia,b/c*100+"%"),0<c&&null!=this.b.skipOffset&&null!=this.o&&(VT(this.b.skipOffset,c),this.o.update(a,c)),this.b.F&&0<c&&5>c-a&&J(this.P,"videoAdUiTopBarNoFade"),E(this.wa,function(b){b.update(a,c)},this))};
h.Dw=function(){this.V("videoAuthorIconClicked")};
h.Ew=function(){this.V("videoAuthorClicked")};
h.$p=function(){this.V("videoLearnMoreClicked")};
h.gE=function(){this.V("videoShareClicked")};
h.rE=function(){this.V("videoTitleClicked")};
h.Wy=function(a){a.preventDefault()};
h.Ej=function(){this.V("click")};
h.fE=function(){J(this.P,"videoAdUiTopBarTransitions")};
h.DD=function(){var a=Tf(this.g,"html5-video-player"),b=this.b.C;null!=a&&(b.o=new ym(b),b.g=new I,b.g.qg(this),b.C=a,b.qr(),b.g.V("why_this_ad_url"));null!=this.o&&MZ(this.o,!1)};
h.zE=function(){null!=this.o&&MZ(this.o,!0)};h=UZ.prototype;
h.qr=function(){var a={heading:"",targetingReasons:[],learnMore:"",Wk:"",control:"",mute:""};if(null!=this.B){a.heading=this.B.B;var b=this.B.g;if(b&&3==b.length){var c=b[1],d=b[2],b=DR(Y(b[0])+hS()+Y(c)+DR("</a>")+Y(d));a.Wk=b}a.targetingReasons=tb(this.B.C);a.close=this.B.A}else a.Wk=iS(),a.close="Got It";null!=this.A&&(a.mute=this.A.o);WZ(this,Gea,a);VZ(this,"videoAdUiWhyThisAdCloseButton",this.si);VZ(this,"videoAdUiWhyThisAdControl",this.Io);VZ(this,"videoAdUiWhyThisAdMute",this.CD);a=this.Io;
b=lf("videoAdUiWhyThisAdGenericMessage",this.b);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&this.o.N(b,"click",a))};
h.si=function(){null!=this.o&&(this.o.dispose(),this.o=null);NZ(this)&&null!=this.b&&(null!=this.g&&(this.g.V("why_this_ad_got_it"),this.g.dispose(),this.g=null),this.b.parentElement.removeChild(this.b),this.b=null)};
h.Io=function(){null!=this.g&&this.g.V("why_this_ad_settings_url")};
h.CD=function(){if(null!=this.A){this.g.V("mute_interaction_url");var a,b=wX(this.A);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},WZ(this,Iea,a),VZ(this,"videoAdUiMuteCancel",this.qr),VZ(this,"videoAdUiMuteConfirm",this.Uw);else{this.g.V("mute_url");a={heading:this.A.A,undo:this.A.C,question:this.A.B,options:[],confirm:"SEND",cancel:"CLOSE"};var c;c=this.A?(c=$T(this.A.b,"mute_undo_url"))&&0<c.length:!1;c||(a.undo="");for(c=0;c<b;c++)a.options.push(this.A.g[c].label);
WZ(this,Hea,a);VZ(this,"videoAdUiMuteUndo",this.sE);VZ(this,"videoAdUiMuteConfirm",this.mE);VZ(this,"videoAdUiMuteCancel",this.Hk)}}};
h.Uw=function(){this.g.V("mute_url");this.Hk()};
h.sE=function(){this.g.V("mute_undo_url");this.si()};
h.mE=function(){if(null!=this.A){for(var a=wX(this.A),b=!1,c=0;c<a;c++){var d=lf("videoAdUiMuteOption"+c,this.b);if(null!=d&&d.checked){b=!0;nN(this.A.g[c].url);break}}if(!b)return}this.Hk()};
h.Hk=function(){this.g.V("MUTE_AD");this.si()};y($Z,EZ);h=$Z.prototype;h.start=function(){this.El();this.o.update(0,this.I);CZ(this.b,this.F.g,"ease-out",0,1).play();this.G.N(this.o,"skip",this.yw);$Z.L.start.call(this)};
h.El=function(){var a=Zq(this.b);if(1==this.D){var b=400>=(0,window.parseInt)(Jq(this.b,"width"),10)||400>=a.width;K(this.b,"videoAdUi-mobile",b)}else if(2==this.D){var c=Gf(this.b),d=Zq(c),e=65>=(a.height-d.height)/2;K(this.b,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;K(this.b,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
h.yw=function(){this.pause();this.V("skip")};
h.Dl=function(a,b){this.o.update(a,b);if(this.C){var c=DZ({Ag:ZZ(b-a)});Lf(this.C,c)}};
h.O=function(){this.o&&this.o.dispose();zf(this.b);$Z.L.O.call(this)};y(a_,F);a_.prototype.b=function(a){if(W.g){var b=$Q(WQ(),a.type,this.C);this.I(a.type,b)}else Vfa(uW(),a.type,this.C,w(this.I,this,a.type))};
a_.prototype.I=function(a,b){var c=hc(b||{});if("timeout"==(c.viewability||"")){var d=this.G[a];null!=d&&(c.viewability=d)}null!=c.viewability&&(d=c.viewability,null!=d&&(this.g.VIEWABILITY=d));"impression"==a&&!this.H&&null!=this.D&&0<this.D.length&&(d=kb(this.F,"impression"),b_(this,this.D,{},d),this.H=!0);if(aia(this,a)){var d=W.D&&kb(this.F,a),e=cU(this.o,a);0<e.length&&(b_(this,e,c,d),this.A.set(a,!0))}this.g.VIEWABILITY="na"};y(c_,I);c_.prototype.A=function(a){switch(a.type){case "companion_impression":this.V(new SM("companionImpression",this.b));break;case "companion_click":this.V(new SM("companionClick",this.b))}};y(d_,I);h=d_.prototype;h.rh=function(){var a=jb(this.ads,this.H);-1!=a&&++a<this.ads.length?j_(this,this.ads[a]):j_(this,null)};
h.Dr=function(){if(!e_(this)){if(lb(this.ads))throw uN(vZ);j_(this,this.ads[0]);if(null==this.H.b)throw tN(vZ);}};
h.ha=function(a,b){var c=e_(this)?h_(this):null;this.V(new SM(a,c,b))};
h.GA=function(){};
h.rm=function(){};
h.destroy=function(){this.dispose()};
h.O=function(){e_(this)&&(wV(this.H,null),this.H=null);Nb(this.F);this.D=this.F=null;this.aa=!1;W.g?aR(WQ(),this.Y):this.ra&&(uW().F=null);d_.L.O.call(this)};
h.he=function(){return[]};
h.wb=function(){return this.ads[0]};
h.init=function(a){r_(this);this.Pi(a);this.Aa=!0;this.ih();W.g?i_(this)||(WQ().B=this.Y):this.ra&&(uW().F=this.Y)};
h.ih=function(){this.ha("loaded")};
h.ng=function(a){e_(this)&&W.b()&&qN(sV(h_(this)),a)};
h.Nr=r;h.ld=function(a,b,c){if(!this.aa){if(null==a)throw uN(lS,null,"displayContainer");if(null!=c){var d=new tk(Yb(this.o));if(!Cg(Yb(c),d.contains,d))throw uN(lS,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.o;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.$g&&(c.$g=[]);dia(c.$g);if(!ha(c.ne)||0>=c.ne)c.ne=15E3;kc(d,c)}this.content=b;this.A=a;this.Dr();this.b=this.A.Mi(bia(this));this.aa=!0}};
h.ue=function(a){a=yT(fV(a),"rm")?a.H:sV(a);E(a,function(a){ob(this.B.D,a)},this)};
h.Pd=function(a,b){E(b,function(b){b=pU(a,b);aU(this.B.o,b)},this)};
h.mh=function(a){if(a instanceof aV){var b=bV(a);E(b.La(),function(a){var d=b.get(a);E(d,function(b){bU(this.B.o,a,b)},this)},this)}};
h.getCurrentTime=function(){return-1};
h.Vc=function(){return-1};
h.ie=function(){return-1};
h.Ya=function(){return null!=this.b?this.b.Ya():!1};
h.qd=function(a,b,c){this.Pi(c)};
h.pause=r;h.resume=r;h.skip=r;h.muteAd=r;h.whyThisAdClicked=r;h.whyThisAdClosed=r;h.start=function(){r_(this);if(!this.Aa)throw tN(g_,null,"Must call init before start.");};
h.stop=function(){this.destroy()};
h.Cl=function(){return null!=this.volume?this.volume:0};
h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&wN(this,lS,null,"volume",String(a));this.volume=a};
h.Pi=function(a){if(!Vb(rqa,a))throw uN(lS,null,"view mode",a);this.I=a};
h.il=function(){return null};
h.vp=function(){return null};
h.wp=function(){return null};
h.Jf=function(){return null};
h.sh=function(){p_(this,"abandon")};
h.zx=function(){return{currentTime:this.getCurrentTime(),duration:this.Vc(),isPlaying:this.Ya(),isVpaid:e_(this)&&null!=YV(h_(this)),isYouTube:W.b(),volume:this.Cl()}};
h.OD=function(a){var b=sb(E$,Xb(G$));xb(b);E(b,function(b){var d=$T(a.b,b);lb(d)||this.zm(b,d)},this);
$ha(this.B,a.H)};
h.zm=function(a,b){E(b,function(a){var b=a.Kb();bU(this.B.o,b,a.b)},this)};y(v_,d_);h=v_.prototype;h.start=function(){v_.L.start.call(this);this.A.yd();this.G=this.A.Hd();if(null!=this.G){p_(this,"show_ad");zf(this.G);var a=this.so();W.g?bea(WQ(),a):Sfa(uW(),a);this.G.appendChild(a);this.pi();E(this.X,function(a){a()});
nb(this.X);this.M=!0}};
h.qd=function(a,b,c){v_.L.qd.call(this,a,b,c);this.pi()};
h.O=function(){Nb(this.g);this.A=this.g=null;this.M=!1;W.g?WQ().C=null:uW().A=null;null!=this.G&&(zf(this.G),this.G=null);v_.L.O.call(this)};
h.so=function(){var a=h_(this).b;if(null==a)throw a=uN(vZ),x_(this,a),a;var b=h_(this);NU(a,m_(this));LU(a,this.Gx);a.B||MU(a,qa(this.xl,b,a));try{o_(this,b)}catch(d){throw x_(this,d),d;}this.ue(b);var c=WW(b,this.b);this.B.g=c;b.b&&(this.ue(b),(b=b.b)&&this.Pd(b,aqa));this.Pd(a,["start"]);w_(this,a);return this.fi([a.ac()])};
h.xp=function(a,b){return new wZ(a[0],b)};
h.fi=function(a){null!=this.g&&this.g.stop();this.g=this.xp(a,w(this.zi,this));a=this.g.fa();K(a,"autoalign",this.o.po);W.b()&&K(a,"viewmode-fullscreen","fullscreen"==this.I);a.appendChild(this.ea);m_(this).N(a,"click",nc);(e_(this)&&gV(h_(this),NV)||this.o.ls)&&this.xk(this.g.b);return a};
h.xk=function(a){var b=m_(this);this.U=xR(Rha);b.N(this.U,"click",this.Xx);var c=xR(Qha,{close:"\u00d0o\u0301ng"});b.N(c,"click",this.Ii);J(a,"extra-padding");null!=this.ga&&728<=this.ga.Ta()&&J(a,"wide-overlay-ad");a.appendChild(c)};
h.pi=function(a,b){if(null!=this.g){var c=a?a:0,d=b?b:0,e=Zq(this.A.Hd()),f;f=W.b()?Zq(Gf(this.g.b)):Zq(this.g.b);if(f.width+c>e.width||f.height+d>e.height)throw c=uN(gqa,null),x_(this,c),d={},d.pid=oW.getInstance().b,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=h_(this).b.nc(),d.vm=this.I,RN.getInstance().b(38,d,!0),this.stop(),c;}};
h.Gx=function(a){q_(this,"click");nc(a)};
h.Ii=function(){p_(this,"close");this.zi(!0)};
h.xl=function(a,b){MU(b,r);this.M?this.nh(a,b):this.X.push(w(this.nh,this,a,b))};
h.nh=function(a){a=WW(a,this.b);this.B.g=a;q_(this,"impression");p_(this,"creativeview");q_(this,"start")};
h.zi=function(a){null!=this.g&&(this.g.stop(),null!=this.U&&Cf(this.U,this.g.b),a?this.ha("userClose"):this.ha("autoClose"))};
h.Xx=function(a){nc(a);this.g.show();this.g.play();Cf(this.g.b,this.U);$d(function(){S(this.ea,!1)},500,this);
S(this.ea,!0);this.ha("userRecall")};y(y_,v_);h=y_.prototype;h.xp=function(a,b){if(this.P||null==b)b=r;var c;W.b()&&this.P?c=new wZ(a[0],b):1<a.length?A_(this)||"fullscreen"==this.I&&W.b()?c=new AZ(a):(c=new zZ(a),c.K=15E3):c=new wZ(a[0],b);c.yp=100;this.P&&(c.fq=30);c.gq=45E3;c.wr=6E3;K(c.b,"scalable",this.P);K(c.fa(),"yt-text-overlay",W.b()&&this.P);return c};
h.XD=function(a){var b=a.b;null!=b?(null==this.ca&&(this.ca=a.getExtension("AdSense").o),MU(b,qa(this.xl,a,b)),LU(b,qa(this.Hx,a,b)),"Text"==b.nc()&&(this.P=!0),this.K.push(b)):(b=tN(vZ),b=VW(b,a),qN(rV(a),b))};
h.ld=function(a,b,c){y_.L.ld.call(this,a,b,c);this.o.po=!0;a=h_(this);lb(tV(a))?W.b()&&this.ha("companionBackfill"):o_(this,a)};
h.so=function(){null==this.K&&(this.K=[],E(this.ads,this.XD,this));if(0==this.K.length)throw uN(vZ);var a=[];E(this.K,function(b){NU(b,m_(this));"Flash"!=b.nc()||b.Wa().getExtension("TemplateAd")||(b.vo=!0);a.push(b.ac());qfa(b,this.ca.C)},this);
if(0==a.length)throw uN(vZ);eia(this);return this.fi(a)};
h.start=function(){y_.L.start.call(this);!this.Z&&A_(this)&&(this.Z=!0,this.ha("contentPauseRequested"));null!=this.C&&this.C.start();if(this.M){var a=B_(this);RN.getInstance().b(33,a)}};
h.Ii=function(a){y_.L.Ii.call(this,a);E(this.K,function(a){var c=WW(a.Wa(),this.b);this.B.g=c;this.Pd(a,["close"]);p_(this,"close");this.B=new a_},this)};
h.zi=function(a){y_.L.zi.call(this,a);A_(this)&&(null!=this.G&&zf(this.G),this.Z&&(this.Z=!1,this.ha("contentResumeRequested")))};
h.fi=function(a){a=y_.L.fi.call(this,a);if(A_(this)){var b=rY(2);J(this.g.b,b);J(a,b)}return a};
h.xk=function(a){if(A_(this)){var b=If(a);b&&((a=Ef(a)[0])&&Gq(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").o||new JW,this.C=new $Z(b,a,2,z_(this),!0),m_(this).N(this.C,"skip",this.$x),m_(this).N(this.C,"end",this.My))}else y_.L.xk.call(this,a),b=xR(Sha,z_(this)),a.appendChild(b)};
h.xl=function(a,b){this.M?this.nh(a,b):this.X.push(w(this.nh,this,a,b));MU(b,r);this.ha("impression")};
h.nh=function(a,b){var c=WW(a,this.b);this.B.g=c;this.ue(a);this.Pd(b,["creativeview"]);p_(this,"impression");p_(this,"creativeview");q_(this,"start");this.B=new a_};
h.Hx=function(a,b,c){c=Uq(c);a=a.getExtension("AdSense");a=new N(a.A);var d=b.Ta();(0,window.isNaN)(d)&&(d=Zq(b.ac()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=Zq(b.ac()).height);b=cN();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.I,"sdkv=h.0.0.0","eids="+gN(b)];W.b()||(c=Zq(this.A.Hd()),d=this.C?Zha(this.C):new $e(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));oN(a,"elementclick",b);E(this.K,function(a){var b=WW(a.Wa(),this.b);this.B.g=b;w_(this,a);
p_(this,"click");this.B=new a_},this);
this.ha("click")};
h.Pi=function(a){this.I!=a&&(y_.L.Pi.call(this,a),this.ha("expandedChanged"))};
h.pi=function(){y_.L.pi.call(this,this.C?15:0,this.C?65:0)};
h.$x=function(){C_(this,"skip")};
h.My=function(){C_(this,"close")};var D_=["classid","data","movie","type","typemustmatch"];y(E_,AE);h=E_.prototype;h.sk="sameDomain";h.setSize=function(a,b){this.F=v(a)?a:Math.round(a)+"px";this.o=v(b)?b:Math.round(b)+"px";this.fa()&&Xq(F_(this),this.F,this.o);return this};
h.Gf=function(){E_.L.Gf.call(this);for(var a=this.fa(),b=this.g.La(),c=this.g.Ha(),d=[],e=0;e<b.length;e++)d.push(xa(b[e])+"="+xa(c[e]));var b=d.join("&"),f;if(qf&&!Ac(11)){d=this.H;c={allowFullScreen:"true",AllowScriptAccess:this.sk,allowNetworking:"all",bgcolor:"#000000",FlashVars:b,quality:"high",SeamlessTabbing:"false",wmode:"window"};b={"class":"goog-ui-media-flash-object",id:this.getId(),name:this.getId()};fia(b,c);e={allownetworking:"none",allowscriptaccess:"never",movie:d};d={};for(f in e)d[f]=
e[f];for(f in c){var k=f.toLowerCase();k in e&&delete d[k];d[f]=c[f]}c=[];for(f in d)c.push(Te("param",{name:f,value:d[f]}));f=Ue({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);f=Te("object",f,c)}else f={AllowScriptAccess:this.sk,allowFullScreen:"true",allowNetworking:"all",bgcolor:"#000000","class":"goog-ui-media-flash-object",FlashVars:b,id:this.getId(),name:this.getId(),quality:"high",SeamlessTabbing:"false",wmode:"window"},f=Ue({src:this.H,type:"application/x-shockwave-flash",pluginspage:"https://www.macromedia.com/go/getflashplayer"},
{allownetworking:"none",allowscriptaccess:"never"},f),f=Te("embed",f);a.innerHTML=Le(f);this.F&&this.o&&this.setSize(this.F,this.o);this.A.N(this.fa(),Xb(Npa),nc)};
h.Hi=function(){if(null!=this.J&&!(0<=Ua(VO,this.J)))throw Error("Method not supported");var a=this.G.createElement("DIV");a.className="goog-ui-media-flash";this.b=a};
h.O=function(){E_.L.O.call(this);this.g=null;this.A.dispose();this.A=null};y(G_,mc);y(H_,I);var sqa=Ie(ue(ve("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));Ie(ue(ve("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));H_.prototype.dispose=function(){this.b&&this.b.dispose();window[this.g]&&delete window[this.g];ae(this.A)};
H_.prototype.load=function(a,b,c,d,e){window[this.g]=w(this.o,this);this.b=new E_(sqa);this.b.setSize(b,c);this.b.sk="always";this.b.g.set("vpaid",a);this.b.g.set("vpaidEventHandler",this.g);a=this.b;if(a.Wc)throw Error("Component already rendered");a.b||a.Hi();d?d.insertBefore(a.b,null):a.G.b.body.appendChild(a.b);a.B&&!a.B.Wc||a.Gf();this.A=$d(this.B,e,this)};
H_.prototype.o=function(a,b){"AdLoaded"==a&&(ae(this.A),this.G=!0);this.V(new G_(a,b||null))};
H_.prototype.B=function(){this.V("loadError")};y(I_,d_);h=I_.prototype;h.O=function(){this.G=!1;this.C&&this.C.dispose();this.K&&this.ha("contentResumeRequested");this.ha("allAdsCompleted");I_.L.O.call(this)};
h.ie=function(){var a=this.Vb("getAdRemainingTime");return ha(a)?a:-1};
h.Cl=function(){var a=this.Vb("getAdVolume");return ha(a)?a:-1};
h.ld=function(a,b,c){I_.L.ld.call(this,a,b,c);this.K=h_(this).b instanceof aV};
h.init=function(a){I_.L.init.call(this,a);a=ZV(h_(this));z(A(a))?M_(this,Error("Flash VPAID ad url is empty.")):(m_(this).N(uW(),F$,this.Py),this.A.yd(),this.C=new H_,m_(this).N(this.C,"loadError",this.iB),m_(this).N(this.C,"vpaidEvent",this.hB),null===this.A.Hd()?M_(this,Error("Container must be provided for flash VPAID.")):this.C.load(a,this.X,this.U,this.A.Hd(),this.o.ne))};
h.start=function(){if(this.G){I_.L.start.call(this);var a=h_(this);this.B.C=a.J;var b=WW(a);this.B.g=b;if(b=a.b)this.ue(a),this.Pd(b,E$),this.mh(b),t_(this,a);this.A.yd();p_(this,"show_ad");this.g=new Yd(250);m_(this).N(this.g,"tick",this.Vz);this.g.start();this.Vb("startAd");this.K?this.ha("contentPauseRequested"):(this.ha("contentResumeRequested"),K_(this))}else this.ca=!0};
h.stop=function(){this.ea||(this.ea=!0,this.Vb("stopAd"),this.A.da(),null!=this.g&&(this.g.stop(),this.g=null),I_.L.stop.call(this))};
h.qd=function(a,b,c){I_.L.qd.call(this,a,b,c);this.X=a;this.U=b;this.Vb("resizeAd",a,b,c)};
h.pause=function(){null!=this.g&&this.g.stop();this.Vb("pauseAd")};
h.resume=function(){null!=this.g&&this.g.start();this.Vb("resumeAd")};
h.setVolume=function(a){this.Vb("setAdVolume",a)};
h.ih=function(){};
h.tb=function(){return J_(this)};
h.skip=function(){this.Vb("skipAd")};
h.Vc=function(){var a=this.Vb("getAdDuration");if(ha(a))return a;a=this.ie();return 0<=a?this.P/1E3+a:-2};
h.Vz=function(){this.P+=250};
h.Vb=function(a){if(!this.C)return null;var b=this.C.b;if(!b||!F_(b))return null;for(var b=F_(b),c=[],d=0;d<arguments.length;d++)c.push(arguments[d]);var d=c.shift(),e=!1;this.G&&(e=!0);if("handshakeVersion"==d||"initAd"==d)e=!0;if(e)try{if(null!=b[d])return b[d].apply(b,c)}catch(f){}return null};
h.Py=function(a){var b=a.type;if(kb(F$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!G$[b]))return;q_(this,b)}};
h.iB=function(){M_(this,Error("Flash VPAID loader failed to load."))};
h.getCurrentTime=function(){return this.P/1E3};
h.hB=function(a){var b=a.data;switch(a.b){case "flashReady":this.Vb("handshakeVersion","2.0");b=uV(h_(this));this.Vb("initAd",this.X,this.U,this.I,this.o.bitrate,b);break;case "AdLoaded":this.G=!0;b=this.Vb("getAdCompanions");a=v(b)?b:"";b=h_(this);lb(tV(b))&&(a=$X(a,b.b.b),lb(a)||dV(b,a));q_(this,"loaded");this.ca&&(this.ca=!1,this.start());break;case "AdStarted":p_(this,"impression");p_(this,"creativeview");this.ha("start");break;case "AdVideoStart":p_(this,"start");break;case "AdClickThru":b&&
b.playerHandles&&((b=b.url)||(b=A(vV(h_(this)))),null!=b&&mN(b));p_(this,"click");this.ha("click");break;case "AdDurationChange":this.ha("durationChange");break;case "AdRemainingTimeChange":this.ha("durationChange");K_(this);break;case "AdError":a="AdError";b&&(a=b.message);M_(this,Error(a));break;case "AdExpandedChange":this.ha("expandedChanged");break;case "AdImpression":b=h_(this);lb(tV(b))||o_(this,b);this.ha("impression");break;case "AdLinearChange":b=J_(this);!this.K&&b?(this.ha("contentPauseRequested"),
ae(this.Z)):this.K&&!b&&(this.ha("contentResumeRequested"),K_(this));this.K=b;a=this.H;a.ea=!0;a.Sa=b;this.ha("linearChanged");break;case "AdVolumeChange":b=b.volume;b!=this.M&&(b!=this.M&&this.ha("volumeChange"),0==b&&0!=this.M?(p_(this,"mute"),this.ha("mute")):0==this.M&&0!=b&&p_(this,"unmute"),this.M=b);break;case "AdPaused":q_(this,"pause");break;case "AdUserClose":q_(this,"userClose");break;case "AdUserMinimize":p_(this,"collapse");break;case "AdVideoFirstQuartile":q_(this,"firstquartile");break;
case "AdVideoMidpoint":q_(this,"midpoint");break;case "AdVideoThirdQuartile":q_(this,"thirdquartile");break;case "AdVideoComplete":q_(this,"complete");break;case "AdUserAcceptInvitation":this.K?p_(this,"acceptinvitationlinear"):p_(this,"acceptinvitation");break;case "AdStopped":p_(this,"stop");this.stop();break;case "AdSkipped":q_(this,"skip");break;case "AdSkippableStateChange":q_(this,"skippableStateChanged");break;case "AdPlaying":q_(this,"resume");break;case "AdLog":this.ha("log")}};y(N_,SM);P_.prototype.videoCount=0;Q_.prototype.isListed=!0;y(T_,EZ);var S_=Math.ceil(10*3.14);T_.prototype.F=function(a){W.b()||a.stopPropagation();this.V("click")};
T_.prototype.start=function(){T_.L.start.call(this);null==this.b?this.stop():this.C&&(this.I&&780<=Zq(this.J).width&&this.C.Dp(!0),this.C.Bp())};
T_.prototype.Dl=function(a,b){var c=a/b*S_+" "+S_;null!=this.b&&Gq(this.b,"stroke-dasharray",c)};y(U_,F);U_.prototype.show=function(a,b){V_(this);VH&&a?(a.appendChild(this.A),this.b=$d(w(this.g,this,b),2E3)):b()};
U_.prototype.g=function(a){this.b=0;Bf(this.A);a()};
U_.prototype.O=function(){V_(this);U_.L.O.call(this)};y(W_,mc);y(X_,I);Y_.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var lia={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};h=X_.prototype;h.O=function(){Z_(this);X_.L.O.call(this)};
h.GB=function(a){var b=a.b;this.o.G.measurable_impression=null!=b?b.viewabilityString:null;a.b.queryId==this.D&&$_(this,"measurable_impression",!0,!1)};
h.rD=function(a){a=a.b;a.queryId==this.D&&(this.o.G.viewable_impression=null!=a?a.viewabilityString:null,$_(this,"viewable_impression",!0,!0))};
h.fB=function(a){a=a.b;var b=G$[a.eventName];b&&a.queryId==this.D&&(this.o.G[b]=null!=a?a.viewabilityString:null,$_(this,b,!0,!0))};
h.nz=function(){var a=this.b.rd();if(-1!=a){this.b.Qg(.25*a)&&$_(this,"firstquartile",!0,!0);this.b.Qg(.5*a)&&$_(this,"midpoint",!0,!0);this.b.Qg(.75*a)&&$_(this,"thirdquartile",!0,!0);var b=this.o,c=this.b.getCurrentTime();if(!ug(b.A,"skip")){0>b.B&&(ffa(b.o,a),b.B=0);for(var a=$T(b.o,"progress"),d=b.B;d<a.length;d++){var e=a[d];if(UT(e.g)>c)break;b.B=d+1;nN(e.b,b.g)}}}a0(this)};
h.mz=function(){this.H=!0;$_(this,"impression",!0,!0);$_(this,"creativeview",!0,!0);null!=this.I||null!=this.A||this.g.N(this.b,"click",this.Ql);null!=this.I&&(this.C=new dR,this.g.N(this.C,"click",this.Ql,!1),eR(this.C,this.I));null!=this.A&&(this.F=new dR,this.g.N(this.F,"click",this.Ql,!1),eR(this.F,this.A));$_(this,"start",!0,!0);(this.b.Uf()||0==this.b.Ld())&&$_(this,"mute",!1,!1)};
h.oz=function(){var a=this.b.Uf(),b=this.b.Ld(),c=this.B;c.mute&&!a||!a&&0==c.volume&&0<b?$_(this,"unmute",!1,!1):this.B.muted(a,b)&&$_(this,"mute",!1,!1);this.B.mute=a;this.B.volume=b};
h.kz=function(){this.b.gf()?b0(this):this.b.Vf()&&!this.b.Cp()&&(this.B.b=!0,$_(this,"pause",!1,!1))};
h.lz=function(){this.B.b&&(this.B.b=!1,$_(this,"resume",!1,!1))};
h.gz=function(){b0(this)};
h.Ql=function(){$_(this,"click",!1,!1)};
h.hz=function(){$_(this,"error",!1,!1)};
h.jz=function(){$_(this,"mediaLoadTimeout",!1,!1)};
h.dr=function(){$_(this,"skipshown",!0,!1)};
h.vx=function(a){$_(this,a.type,!1,!1)};
h.fD=function(a){this.V(a)};
h.qD=function(){$_(this,"videoShareShown",!0,!1)};
h.Mp=function(){$_(this,"skip",!0,!1)};
h.sC=function(){$_(this,"skip",!0,!1)};
h.iz=function(){$_(this,"fullscreen",!1,!1)};
h.eB=function(){$_(this,"exitfullscreen",!1,!1)};y(c0,d_);h=c0.prototype;h.O=function(){g0(this);this.Ca.dispose();e0(this);E(this.ga.Ha(),ae);var a=!1;null!=this.A&&(a=this.A.Ni(),this.A.da(),this.A=null);this.U&&(this.U=!1,this.b.Vf()||this.b.gf()||this.b.pause(),CN()&&!a&&(this.b.Wf(.001),this.b.load("","")),BN()&&this.b.je()&&!a&&this.b.Gl(),this.ha("contentResumeRequested"),this.ha("allAdsCompleted"));c0.L.O.call(this)};
h.muteAd=function(){W.b()&&(p_(this,"mute_interaction_url"),p_(this,"mute_url"),this.ha("MUTE_AD"),d0(this,function(){f0(this)}))};
h.whyThisAdClicked=function(){W.b()&&p_(this,"why_this_ad_url")};
h.whyThisAdClosed=function(){W.b()&&p_(this,"why_this_ad_got_it")};
h.rh=function(){e0(this);c0.L.rh.call(this);e_(this)&&(this.B=new a_,this.K=new X_(this.B),this.Z=!1,this.ha("loaded"))};
h.rm=function(a){c0.L.rm.call(this,a);null!=this.b&&eN(cN(),9419278)&&this.b.Em(1)};
h.Ko=function(a,b){b.preventDefault();this.P||(this.P=!0,q_(this,"video_card_endcap_action"));a&&(this.C.pause(),mN(a))};
h.Lo=function(){d0(this,function(){h0(this,"video_card_endcap_dismiss")})};
h.hx=function(){h0(this,"video_card_endcap_collapse")};
h.Az=function(a,b,c){if(!this.ea){this.ea=!0;var d=iR(b);d&&(a.C=d);if(this.o.ms){var d=a.getExtension("AdSense"),e;(e=this.wa)||(e=null===b?!1:"modules"==(new N(b)).F().toLowerCase()||kR(b));e=e||null!=d&&d.F;var d=SV(a)?null:VV(a),f;if(W.b()||IN())f=0;else{if(f=zN()){b:{for(f=0;f<this.ads.length;++f)if(!s_(this.ads[f])){f=!1;break b}f=zN()}f=!f||null==this.A||!this.A.Pk()}f=f||$V(a)||this.o.Vm}if(f||!W.b()&&e)this.o.Tm=!0,this.o.Vm=!0;if(W.b()||this.o.Vm){f=z(A(vV(a)))?!1:this.o.Tm;var k=a.A.Gb("enable_instream_ad_badge"),
m=this.o,l=W.b()||!1,p=W.b();s_(a);d=YZ(e,a.C,d,m);d.o=f;d.K=m.xE;d.M=l;d.J=!0;d.H=p;d.g=k;d.B=m.Sm;d.P=m.Um;d.X=m.yE;d.aa=0;m.Sm&&(d.eg="Truy c\u1eadp v\u00e0o trang c\u1ee7a Nh\u00e0 qu\u1ea3ng c\u00e1o")}else pV(a)?(f=a.C,!z(A(f))&&null!==d&&0<UT(d)&&(e=!0),d=YZ(e,f,d,this.o),d.G=e?Dea:Cea):(d=YZ(e,a.C,d,this.o),d.U=!1,d.D=!1,d.b=!1);e=d;f=this.A.Ei();null===f?f=window.document.body:zf(f);k=h_(this);m=1E3*RV(k);l=k.getExtension("why_this_ad");p=k.getExtension("mute");e.C=new UZ(l,p);NZ(e.C)&&(l=
null!=l?l.o:void 0,p="<span class='videoAdUiAdSettingsShortTooltip'>",p=l?p+Y(l):p+"Click for Ad Settings",l=DR(p+"</span>"),e.Bd=l);this.g=new PZ(e,f,m);f=k.C;null!=f&&(i0(this),e.X&&y0(this,f));e=this.g;e.J&&(e=e.J,f=0==this.M,e.b!=f&&(e.b=f,GZ(e)));this.wa&&(f=a.getExtension("AdSense"),null!=f?(e=this.g,f=A(f.g),null!=e.F&&(S(e.F,!0),f=new N(f),f=(f.g+f.A).replace(/^www\./i,""),z(A(f))?RZ(e):Lf(e.F,f)),null!=e.K&&S(e.K,!0)):RZ(this.g));e=[];d.D&&e.push("adAttribution");d.b&&e.push("countdown")}else d&&
this.o.vk&&(i0(this),y0(this,d));d=this.K;e=this.b;f=this.A.Zk();k=this.g;Z_(d);d.o.C=a.J;d.b=e;d.A=k||null;d.b.Qi();d.B=new Y_(d.b);d.I=f||null;d.g=new ym(d);d.D=a.J;e=W.g?WQ():uW();d.g.N(e,"externalActivityEvent",d.fB);d.g.N(e,"measurable_impression",d.GB);d.g.N(e,"viewable_impression",d.rD);d.g.N(d.b,"timeUpdate",d.nz);d.g.N(d.b,"volumeChange",d.oz);d.g.N(d.b,"pause",d.kz);d.g.N(d.b,"play",d.lz);d.g.N(d.b,"end",d.gz);d.g.N(d.b,"beginFullscreen",d.iz);d.g.N(d.b,"endFullscreen",d.eB);d.g.N(d.b,"skip",
d.Mp);d.g.N(d.b,"skipShown",d.dr);d.g.N(d.b,"start",d.mz);d.g.N(d.b,"error",d.hz);d.g.N(d.b,"mediaLoadTimeout",d.jz);null!=d.A&&(d.g.N(d.A,"urlNavigationRequested",d.fD),d.g.N(d.A,"videoShareShown",d.qD),d.g.N(d.A,"skipshown",d.dr),d.g.N(d.A,"skip",d.Mp),d.g.N(d.A,"PUBLISHER_INVOKED_SKIP",d.sC),d.g.N(d.A,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoTitleClicked videoShareClicked videoUnmuteClicked why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),
d.vx));m_(this).N(this.K,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.lr);m_(this).N(this.b,"loaded",this.oD);m_(this).N(this.b,"cardsStateChange",this.Qy);m_(this).N(this.b,"timeUpdate",this.pr);m_(this).N(this.b,"volumeChange",this.Ty);m_(this).N(this.b,"shareClicked",this.Mr);this.ue(a);d=WW(a,this.b);this.B.g=d;d=a.b;
null!=d&&d instanceof aV&&(this.Pd(d,E$),this.mh(d),d=m_(this),Am(d,this.K,"error",this.Ry,this),Am(d,this.K,"mediaLoadTimeout",this.Sy,this));t_(this,a);a.isSkippable()&&(this.K.G=30);this.b.Im(oia(this,a));this.b.load(b,c)}};
h.ED=function(a,b,c){null!==a.G&&RN.getInstance().b(34,{evt:"filled"},!0);this.ka||(this.ka=!0,this.ha("contentPauseRequested"));this.U=!0;this.Az(a,b,c);p_(this,"show_ad");this.setVolume(this.M);this.g&&(z(A(l0(a)))?(b=this.g,null!=b.B&&(b.A.qa(b.B,"click",b.Ej),Gq(b.B,"cursor","default"))):(b=this.g,null!=b.B&&(b.A.N(b.B,"click",b.Ej),Gq(b.B,"cursor","pointer"))),b=a.b.ka,lb(b)||Xha(this.g,b),this.g.show());this.A.ah();try{o_(this,a)}catch(d){q0(this,n_,d);return}oW.getInstance().end("pi");oW.getInstance().start("bt");
this.Ca.show(this.A.Ei(),w(this.b.play,this.b))};
h.ih=function(){pia(this);this.ha("loaded");this.V(new N_(h_(this)))};
h.skip=function(){e_(this)&&h_(this).isSkippable()&&(null!=this.g?this.g.skip():(p_(this,"skip"),x0(this)))};
h.Nr=function(){q_(this,"skipshown")};
h.start=function(){c0.L.start.call(this);oW.getInstance().start("pi");this.X=[];try{var a=h_(this);this.G=n0(this,a);d0(this,w(c0.prototype.ED,this,a,this.G.g,this.G.b))}catch(b){p0(this,b),this.rh(),e_(this)?(vN(uN,this,r0,b,void 0),this.start()):(this.U?vN(uN,this,r0,b,void 0):(null!=this.D&&iW(this.D,dW()),wN(this,r0,b)),this.stop())}};
h.Cl=function(){r_(this);return this.b.Uf()?0:this.b.Ld()};
h.setVolume=function(a){r_(this);this.U?this.b.setVolume(a):this.M=a};
h.pause=function(){r_(this);this.C?this.C.pause():this.b.pause()};
h.resume=function(){r_(this);this.C?this.C.play():this.b.play()};
h.getCurrentTime=function(){r_(this);var a=this.C?this.C.A:0;return this.b.getCurrentTime()+a};
h.Vc=function(){r_(this);var a=e_(this)?XV(h_(this)):0;return this.b.rd()+a};
h.ie=function(){r_(this);var a=this.Vc(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
h.Jf=function(){return this.b.Jf()};
h.Ry=function(){this.b.getError();q0(this,r0,uN(r0,this.b.getError()))};
h.Sy=function(){tia(this);q0(this,H$,uN(H$,null,(this.o.ne/1E3).toString()))};
h.zm=function(a,b){c0.L.zm.call(this,a,b);t0(this,a)};
h.lr=function(a){switch(a.type){case "start":zia(this);Lfa();this.ha("start");cia(this);break;case "impression":this.ha("impression");break;case "why_this_ad_url":this.Fa=this.b.Vf();o0(this,"why_this_ad_url");this.pause();break;case "pause":this.ha("pause");break;case "why_this_ad_got_it":o0(this,"why_this_ad_got_it");this.Fa||this.resume();break;case "resume":this.ha("resume");break;case "firstquartile":this.ha("firstquartile");break;case "midpoint":this.ha("midpoint");break;case "thirdquartile":this.ha("thirdquartile");
break;case "complete":nia(this)||(this.ha("complete"),p_(this,"instreamAdComplete"),f0(this));break;case "click":this.g&&this.g.b.o?this.b.Vf()?this.resume():this.pause():s0(this);break;case "engagedview":u0(this);this.ha("engagedview");break;case "urlNavigationRequested":this.V(a);break;case "videoAuthorIconClicked":A0(this);break;case "videoAuthorClicked":A0(this);break;case "videoClicked":this.ha("videoClicked");break;case "videoLearnMoreClicked":this.C&&!this.P&&(this.P=!0,q_(this,"video_card_endcap_action"));
this.b.pause();eN(cN(),41351017)&&u0(this);s0(this);break;case "videoShareClicked":via(this);break;case "videoShareShown":wia(this);break;case "videoTitleClicked":xia(this);break;case "videoMuteClicked":this.ia=this.M;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.ia);break;case "skipshown":this.ha("skippableStateChanged");break;case "skip":this.C?this.Lo():x0(this);break;case "MUTE_AD":this.ha("MUTE_AD"),d0(this,function(){f0(this)})}};
h.Mr=function(){var a=v0(this)||w0(this);null!=a&&oN(a,"sharebuttonclicked")};
h.ue=function(a){c0.L.ue.call(this,a);t0(this,"impression")};
h.Pd=function(a,b){c0.L.Pd.call(this,a,b);E(b,function(a){t0(this,a)},this)};
h.mh=function(a){c0.L.mh.call(this,a);a instanceof aV&&(a=bV(a),E(a.La(),function(a){t0(this,a)},this))};
h.vp=function(){if(!e_(this))return null;try{return n0(this,h_(this)).g}catch(a){return null}};
h.il=function(){if(!e_(this))return null;var a=h_(this);if(!l_(a))throw uN(m0);a=a.b.K;return lb(a)?null:a[0].g};
h.oD=function(){this.ha("adCanPlay")};
h.Qy=function(){var a=this.g;null!=a.g&&K(a.g,"ytp-iv-drawer-open",this.b.zp())};
h.pr=function(){var a=this.Vc(),b;r_(this);b=this.C?this.Vc():this.b.Ap();var c=this.getCurrentTime(),d=0,e=0;e_(this)&&(e=h_(this),d=e.o.g,e=e.o.A);if(null!=this.g&&0<=a&&0<=c){if(!this.ca&&3==h_(this).ka){var f=this.b.rd(),k=h_(this),f=Math.abs(f-(null!=k.b?k.b.X:-1));2<f&&(f=uN(iqa,null,Number(f).toFixed(2)),f=VW(f,h_(this),this.b),k=rV(h_(this)),qN(k,f));this.ca=!0}this.g.update(c,b,a,d,e)}};
h.Ty=function(){var a=this.b.Ld();if(a!=this.M&&(this.M=a,this.ha("volumeChange"),0==a&&this.ha("mute"),this.g)){var b=this.g;b.J&&(b=b.J,a=0==a,b.b!=a&&(b.b=a,GZ(b)))}};
h.Ix=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=h_(this);var c=(0,window.encodeURIComponent)(A(vV(a)))+","+(0,window.encodeURIComponent)((v0(this)||w0(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=vV(a)?210:185}else"pause-video"==b.data&&this.pause()};y(B0,mc);y(C0,d_);h=C0.prototype;
h.init=function(a){C0.L.init.call(this,a);m_(this).N(window,"message",this.sD);m_(this).N(this.ca,"tick",this.GD);a=W.g?WQ():uW();m_(this).N(a,F$,this.Uy);if(this.K)this.V(new B0(0,this.P));else{a=YV(h_(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="vi".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.o.Rf&&(a=Xg(a,"v",this.o.Rf));W.b()&&(b=Ug(a,"st"),b=Bia(this,b?b+" yt":"yt"),a=Xg(a,"st",b))}a=A(a)}else{var b=new N(a),c=new N("http://tpc.googlesyndication.com/pagead/js/loader12.html");
"https"==b.o&&Yg(c,"https");this.Fa=b.g;a=bh(c,a||"",void 0).toString()}this.G=M("iframe",{src:lN(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});m_(this).N(this.G,"load",this.Yw);this.A.Hd().appendChild(this.G)}};
h.ld=function(a,b,c){C0.L.ld.call(this,a,b,c);this.C=h_(this).b instanceof aV;this.g=a.Mi(!1);this.ia=$d(this.Vy,this.o.ne,this);this.K||(m_(this).N(this.g,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.xC),m_(this).N(this.g,GS,this.EA))};
h.stop=function(){this.ca.stop();this.A.da();C0.L.stop.call(this)};
h.tb=function(){return 1==this.C};
h.start=function(){C0.L.start.call(this);if(!W.b()){var a={};a.pid=oW.getInstance().b;a.dn=this.Fa;a["if"]=this.K;RN.getInstance().b(29,a,!0)}a=h_(this);this.B.C=a.J;var b=WW(a,this.g);this.B.g=b;if(b=a.b)this.ue(a),this.Pd(b,E$),this.mh(b),t_(this,a);this.g.Qi();p_(this,"show_ad");this.A.yd();null!=this.G&&(this.G.style.display="block");this.Ca=!0;this.C&&this.ha("contentPauseRequested");H0(this)};
h.qd=function(a,b,c){C0.L.qd.call(this,a,b,c);F0(this,"resizeAd",{width:a,height:b,viewMode:c})};
h.pause=function(){this.M||F0(this,"pauseAd")};
h.resume=function(){this.M&&F0(this,"resumeAd")};
h.setVolume=function(a){C0.L.setVolume.call(this,a);F0(this,"setAdVolume",{value:a})};
h.O=function(){this.K&&this.V(new B0(0,this.P));Bf(this.G);this.C&&this.ha("contentResumeRequested");this.ha("allAdsCompleted");this.ga=!1;this.Z=[];ae(this.ia);this.ca.dispose();C0.L.O.call(this)};
h.ih=function(){};
h.Yw=function(){if(!this.K){var a=this.g.ml();lb(a)&&(a=this.o.$g);F0(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}E0(this)};
var Aia={use_ninja_skip_button:"ytexp-ninja-skip",use_dismiss_text:"ytexp-dismiss-text",use_new_style:"new",hide_preskip:"nps",use_sound:"snd"};h=C0.prototype;h.sD=function(a){a=a.b;if(this.K){if(a=wS(a.data),null!=a){try{var b=Vf(a.data)}catch(c){return}null!=b&&b.session==this.P&&I0(this,b)}}else if(a.source==this.G.contentWindow){try{b=Vf(a.data)}catch(c){return}b.session==this.P&&I0(this,b)}};
h.Vy=function(){G0(this,H$,null,(this.o.ne/1E3).toString());this.stop()};
h.Uy=function(a){var b=a.type;if(kb(F$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!G$[b]))return;q_(this,b)}};
h.xC=function(a){switch(a.type){case "timeUpdate":a=this.g.rd();var b=this.g.getCurrentTime();D0(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":J0(this,"ended");break;case "loaded":J0(this,"loadstart");break;case "mediaLoadTimeout":J0(this,"stalled");break;case "play":J0(this,"playing");break;default:J0(this,a.type)}};
h.EA=function(a){a=a.type;"loadedmetadata"==a?D0(this,"wrapperCall",{messageType:"loadedmetadata",duration:this.g.rd()}):J0(this,a)};
h.getCurrentTime=function(){return-1==this.Vc()||-1==this.ie()?-1:this.Vc()-this.ie()};
h.Vc=function(){return this.X};
h.ie=function(){return this.ea};
h.Ya=function(){return!this.M};
h.GD=function(){F0(this,"getAdRemainingTime")};h=K0.prototype;h.Zk=function(){return this.b.Zk()};
h.Ei=function(){return this.b.Ei()};
h.Hd=function(){return this.b.Hd()};
h.Mi=function(a){return this.g?this.b.Zo(a):this.b.Mi(a)};
h.setSize=function(a,b){this.b.setSize(a,b)};
h.Pk=function(){return this.b.Pk()};
h.Ni=function(){return this.b.Ni()};
h.Bl=function(){return this.b.Bl()};
h.bh=function(){return this.b.bh()};
h.da=r;h.ah=r;h.yd=r;h.Zo=function(){return null};
h.es=r;y(L0,I);h=L0.prototype;h.init=function(a,b,c){M0(this,a,b,c);null==this.F&&(this.F=new ym(this),Am(this.F,this.J,"adsLoaderSdkAdError",this.Tz,this));T0(this)};
h.start=function(){this.K=!0;P0(this);0<this.A.length?Y0(this):("always"==W.A&&null!=this.X&&iW(this.X,dW()),vN(tN,this,gY,void 0,void 0),0==this.Yb&&this.V("contentResumeRequested"),Z0(this))};
h.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);V0(this);a1(this);W.A=this.U;this.K=!1};
h.wb=function(){return this.g<this.A.length?this.A[this.g].b[0]:null};
h.Ya=function(){return this.K};
h.pause=function(){null!=this.b&&this.b.pause()};
h.resume=function(){null!=this.b&&this.b.resume()};
h.skip=function(){null!=this.b&&this.b.skip()};
h.sh=function(){null!=this.b&&this.b.sh()};
h.getCurrentTime=function(){return null!=this.b?this.b.getCurrentTime():-1};
h.setVolume=function(a){null!=a&&(this.M=a,null!=this.b&&this.b.setVolume(this.M))};
h.qq=function(a){W.A=this.U;var b=a.o;lb(b)?this.D++:(a=a.A,a.b&&E(b,function(a){a.ga=!1},this),this.P=Dia(this,b),ob(this.A,new Xfa(b,a.b,a.g)),this.D++,this.F.qa(this.J,"adsLoaderSdkAdLoaded",this.qq,!1,this));
T0(this)};
h.Tz=function(){W.A=this.U;vN(tN,this,gY,void 0,void 0);this.D++;if(!N0(this)||2<=this.A.length-this.g){var a=tN(gY);this.V(new RM(a))}T0(this)};
h.WB=function(){V0(this);a1(this);Z0(this)};
h.Uz=function(a){a=a.getError().fb();try{var b={};b.ec=a;RN.getInstance().b(44,b)}catch(c){}this.g++;Y0(this)};
h.Ly=function(){this.V("userClose")};
h.Iy=function(){this.V("autoClose")};
h.Ky=function(){this.g++;Y0(this)};
h.Jy=function(){this.ea||(this.V("contentPauseRequested"),this.ea=!0)};
h.rq=function(a){if("impression"==a.type)try{RN.getInstance().b(44,{imp:!0})}catch(b){}"vpaidEvent"!=a.type&&Eia(this,a.type,a.Wa());this.V(a)};y(b1,mc);y(c1,I);c1.prototype.getCurrentTime=function(){return this.b.currentTime};
c1.prototype.B=function(){if(this.g){var a=this.b.currentTime;if((0,window.isNaN)(a)||0>a)g1(this);else{var b=Iia(this,a);this.C?E(b,function(a){f1(this,!0,a)},this):f1(this,!0,db(b));
f1(this,!1,Jia(this,a))}}};
c1.prototype.D=function(){g1(this)};y(h1,F);h1.prototype.g=function(){return this.b};y(tZ,d_);h=tZ.prototype;
h.ld=function(a,b,c){null!=this.C&&(e1(this.C),this.C.dispose(),this.C=null);tZ.L.ld.call(this,a,b,c);a=this.M.b.La();b=new OS(b);var d=4;c&&0<=c.xm&&(d=c.xm);this.wa=null!=c?c.sr:0;this.C=new c1(b,a,{prefetch:d});Lia(this,a);a=this.M.b.La();Mia(this,a);null!=this.C&&(m1(this),c=m_(this),Am(c,this.C,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Am(c,this.C,"adBreakReady",this.Rz,this),Am(c,this.X,"contentComplete",this.NA,this),this.X.b=!1);null==this.J.get(0)||null!==this.A&&
LN(this.A);try{c={cfg:!0},c.ads=this.ia,RN.getInstance().b(44,c)}catch(e){}};
h.init=function(a){tZ.L.init.call(this,a);a=this.C;a.g||(null==a.o&&(a.o=new ym(a)),a.o.N(a.b,"currentTimeUpdate",a.B,!1),a.o.N(a.b,"contentWrapperError",a.D,!1));a.b.start();a.g=!0;this.C.B();a=ha(0)&&!(0,window.isNaN)(0)?this.M.b.get(0,[]):[];lb(a)&&this.ha("contentResumeRequested")};
h.ih=function(){this.he();this.V(new N_(null))};
h.destroy=function(){this.dispose()};
h.O=function(){this.X.b=!0;if(0<this.J.cb()){var a=this.J.Ha();E(a,this.Ef,this);this.J.clear()}m1(this);o1(this);null!=this.A&&(this.A.da(),this.A=null);tZ.L.O.call(this)};
h.start=function(){tZ.L.start.call(this)};
h.stop=function(){null!=this.g&&(this.Ef(this.g),this.Oi())};
h.qd=function(a,b,c){tZ.L.qd.call(this,a,b,c);this.ea=a;this.ca=b;this.I=c;null!=this.g&&M0(this.g,this.ea,this.ca,this.I)};
h.pause=function(){null!=this.g&&this.g.pause()};
h.resume=function(){null!=this.g&&this.g.resume()};
h.skip=function(){null!=this.g&&this.g.skip()};
h.sh=function(){null!=this.g&&this.g.sh()};
h.setVolume=function(a){tZ.L.setVolume.call(this,a);null!=this.g&&this.g.setVolume(a)};
h.getCurrentTime=function(){return null!=this.g?this.g.getCurrentTime():-1};
h.Vc=function(){var a;null!=this.g?(a=this.g,a=null!=a.b?a.b.Vc():-1):a=-1;return a};
h.ie=function(){var a;null!=this.g?(a=this.g,a=null!=a.b?a.b.ie():-1):a=-1;return a};
h.he=function(){return this.M.b.La()};
h.wb=function(){return null!=this.g?this.g.wb():null};
h.Dr=function(){};
h.handleEvent=function(a){"contentTrackingError"!=a.type&&(io(this.U,a),n1(this))};
h.Oy=function(){this.ha("userClose")};
h.Ny=function(){this.ha("autoClose")};
h.Ef=function(a){a.destroy();this.J.remove(a.Yb);this.g=null;null!=this.F&&(this.F.qa(a,$0,this.V,!1,this),this.F.qa(a,"adError",this.So,!1,this),this.F.qa(a,"allAdsCompleted",this.lq,!1,this),this.F.qa(a,"contentPauseRequested",this.up,!1,this),this.F.qa(a,"contentResumeRequested",this.Oi,!1,this),this.F.qa(a,"adBreakInitialized",this.mq,!1,this))};
h.NA=function(a){this.Z=!0;-1==this.K?a.b=!1:W.b()&&!j1(this)||k1(this);Hia(this.C)};
h.Rz=function(a){var b=a.b;a=0==b;var c=-1==b;this.P?(a?this.ha("contentResumeRequested"):!c||W.b()&&!j1(this)||k1(this),this.P=!1):(c?$d(function(){var a=this.J.get(b);a&&this.Ef(a);W.b()&&!j1(this)||k1(this)},500,this):a&&$d(function(){this.ha("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.V(new SM("adBreakReady",null,a)))};
h.So=function(a){var b=a.getError(),c=b.fb();try{var d={};d.ec=c;RN.getInstance().b(44,d)}catch(e){}W.b()&&b&&"adLoadError"==b.Kb()&&this.V(a)};
h.lq=function(a){this.Ef(a.target);(j1(this)||!W.b()&&this.Z)&&k1(this);this.G=null;n1(this)};
h.up=function(){var a=this.C;a.b.stop();a.g=!1;this.ha("contentPauseRequested")};
h.Oi=function(){this.ha("contentResumeRequested");this.ka||d1(this.C);this.G=null};
h.mq=function(a){this.G=null;a=a.target;var b={};b.adBreakTime=a.Yb;this.V(new SM("prefetched",a.wb(),b));n1(this)};
h.ha=function(a){var b=null;null!=this.g&&(b=this.g.wb());this.V(new SM(a,b))};
h.wp=function(a,b){return this.ga=new h1(a,b)};y(p1,I);p1.prototype.O=function(){null!=this.b&&(this.b.qa("adsManagerLoaded",this.V),this.b.qa("adError",this.V),this.b.qa("adLoadError",this.V),this.b=null);p1.L.O.call(this)};y(r1,xL);h=r1.prototype;h.ed=function(){I9(this.app,!0,this.playerType);this.app.pf(this.playerType)};
h.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
h.fd=function(a,b,c){I9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.seekTo(d.getCurrentTime()+a,b,c,e)};
h.seekTo=function(a,b){I9(this.app,!0,this.playerType);this.app.seekTo(a,b,void 0,this.playerType)};
h.Uj=function(){W9(this.app)};y(s1,gq);s1.prototype.getAdState=function(){return-1};t1.prototype.reset=function(){Xv(this.b);Yv();Zv(!1)};
t1.prototype.g=function(a,b){Qv(a,b,this.b)};
t1.prototype.info=function(a,b){Vv(a,b,this.b)};
t1.prototype.span=function(a,b,c){var d=this.b,e=Sv(d).span,d=Lv(d);b in d&&(e[a]=(c||Bt())-d[b])};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Eq();return b?(b=b.toLowerCase(),b+=$a("hidden"),!n(a)||b in a?b:null):null})();var v1=[2,5];y(O1,F);O1.prototype.O=function(){O1.L.O.call(this);this.b.b()};
O1.prototype.C=function(){this.A++;var a=q("yt.www.watch.ads.isAfcAdVisible");a&&ia(a)&&a()&&this.B++;2<=this.B?this.b.g():5<=this.A?this.b.b("Timed out waiting for MPU to become visible"):this.g.start()};var Y1,Q1=!1,T1=!1,P1=!1;Xi("showCompanionAdLoaded",function(){T1&&(U1(),T1=!1)});
Xi("watchAdsInit",function(){Q1&&(Q1=!1,R1())});var Wia={eI:0,cI:1,bI:2,dI:3,aI:4,WH:5,ZH:6,$H:7,YH:8,VH:9,gI:10,UH:11,XH:12,TH:13,fI:14,SH:15},Xia={GK:0,HK:1,JK:2,IK:3,EK:4,FK:5,CJ:6};y(a2,kk);h=a2.prototype;h.cancel=function(){this.C&&this.R("dragend",0,0,null);this.A&&this.R("hoverend",0,0,null);qr(this.b);$1(this)};
h.xs=function(a){qr(this.b);this.b.S(this.g,b2("move"),this.vs);this.b.S(this.g,b2("out"),this.ws);this.b.S(this.g,"touchstart",this.gn);this.B&&this.b.S(this.g,b2("down"),this.fn);var b=km(a);a=nm(a);this.A=!0;this.R("hoverstart",a.x,a.y,b);this.R("hovermove",a.x,a.y,b)};
h.vs=function(a){var b=km(a);a=nm(a);if(this.o){var c=mm(this.o),d=nm(this.o);d.x==a.x&&d.y==a.y&&c==b||this.R("hovermove",a.x,a.y,b)}else this.R("hovermove",a.x,a.y,b);this.o=null};
h.ws=function(a){var b=nm(a),c=mm(a);c&&Jf(this.D,c)?(this.o=a,this.R("hovermove",b.x,b.y,c)):(qr(this.b),$1(this),this.A=!1,this.R("hoverend",b.x,b.y,c))};
h.Kz=function(a){this.xs(a);this.fn(a)};
h.fn=function(a){if(!ha(a.button)||0==a.button){qr(this.b);this.b.S(window.document,b2("move"),this.Jz);this.b.S(window.document,b2("up"),this.JE);var b=km(a);if(Bc)this.b.S(this.g,"dragstart",this.cx);else if(om(a),(TG||Dq)&&b)a:{for(var c=b;c;){if(Qf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.C=!0;a=nm(a);this.R("dragstart",a.x,a.y,b);this.R("dragmove",a.x,a.y,b)}};
h.cx=function(a){om(a)};
h.Jz=function(a){var b=km(a);b==window.document&&(b=null);a=nm(a);this.R("hovermove",a.x,a.y,b);this.R("dragmove",a.x,a.y,b)};
h.JE=function(a){qr(this.b);this.C=!1;var b=lm(a),c=km(a);a=nm(a);b&&Jf(this.D,b)?(this.b.S(this.g,b2("move"),this.vs),this.b.S(this.g,b2("out"),this.ws),this.b.S(this.g,b2("down"),this.fn),this.b.S(this.g,"touchstart",this.gn),this.R("dragend",a.x,a.y,c)):($1(this),this.A=!1,this.R("dragend",a.x,a.y,c),this.R("hoverend",a.x,a.y,c))};
h.gn=function(a){var b=a.changedTouches[0];b&&(qr(this.b),this.b.S(this.g,"touchmove",this.KE),this.b.S(this.g,"touchend",this.ys),this.b.S(this.g,"touchcancel",this.ys),this.F=b.identifier,a=km(a),this.A||(this.A=!0,this.R("hoverstart",b.pageX,b.pageY,a)),this.R("hovermove",b.pageX,b.pageY,a),this.B&&(this.C=!0,this.R("dragstart",b.pageX,b.pageY,a),this.R("dragmove",b.pageX,b.pageY,a)))};
h.KE=function(a){var b=c2(this,a);b&&(om(a),a=km(a),this.R("hovermove",b.pageX,b.pageY,a),this.B&&this.R("dragmove",b.pageX,b.pageY,a))};
h.ys=function(a){var b=c2(this,a);if(b){qr(this.b);$1(this);this.A=!1;var c=km(a);this.B&&(this.G||om(a),this.C=!1,this.R("dragend",b.pageX,b.pageY,c));this.R("hoverend",b.pageX,b.pageY,c)}};
h.O=function(){this.B&&(Bc&&this.D.removeAttribute("draggable"),this.D.style.removeProperty("touch-action"));qr(this.b);a2.L.O.call(this)};h2.prototype.update=function(a,b,c,d){this.width=b;this.A=c;this.B=d;this.b=b-c-d;this.o=Ve(a-c,0,this.b);this.position=this.o+c;this.g=this.o/this.b};y(j2,kk);j2.prototype.Lc=function(){return this.adSystem+"_"+this.adType};
j2.prototype.ee=function(){return this.Lc()};
j2.prototype.wb=function(){return this.g?this.g.wb():null};
j2.prototype.Yj=r;y(l2,Q);l2.prototype.O=function(){l2.L.O.call(this);this.o&&(n2(this.B.app,this.o),this.o=null);o2(this);zf(m2(this));zf(p2(this));this.D=this.C=null;delete this.B};y(w2,F);w2.prototype.start=function(){(0,window.isNaN)(this.b)&&(this.A=D(),this.b=$d(this.B,this.o-this.g,this))};
w2.prototype.stop=function(){(0,window.isNaN)(this.b)||(this.A=this.g=0,ae(this.b),this.b=window.NaN)};
w2.prototype.pause=function(){(0,window.isNaN)(this.b)||(this.g=D()-this.A,ae(this.b),this.b=window.NaN)};
w2.prototype.O=function(){(0,window.isNaN)(this.b)||ae(this.b)};y(y2,j2);y2.b=15;h=y2.prototype;h.Yj=function(){u2(this.B,13);this.J||this.g.destroy();this.C=this.F=!1;D2(this)};
h.Lc=function(){var a;a=this.wb();var b=lV(a);if(4==k2(b).g)return b;if(iV(a))a=3;else if(a.isSkippable())a=jV(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
h.ee=function(){return this.adSystem+"_"+this.adType};
h.show=function(){var a=this.b,b=x2(a);a5(a.app,b);this.B.A=Bt();this.D=this.b.xa();this.o.subscribe("progresssync",this.pq,this);this.b.g.X&&Bf(lf("video-ad-status-bar",this.D));fe(this.D,["ad-showing","ad-interrupting"]);this.b.subscribe("resize",this.vn,this);try{this.A.N(this.g,"adError",this.mG),this.A.N(this.g,"click",this.lG),this.A.N(this.g,"complete",this.KA),this.A.N(this.g,"engagedview",this.dB),this.A.N(this.g,"pause",this.Dt),this.A.N(this.g,"start",this.Et),this.A.N(this.g,"skip",this.pG),
this.A.N(this.g,"MUTE_AD",this.Yj),this.A.N(this.g,"skippableStateChanged",this.NC),this.A.N(this.g,"youTubeChannelMetadata",this.JB),this.A.N(this.g,"companionInitialized",this.nG),this.A.N(m2(this.b.C),"mouseup",this.oG),this.vn(),this.J||this.g.start()}catch(c){E2(this,c)}a=H1(this.b);this.b.g.A&&a.experiments.$("ad_info_icon_in_card")&&V4(this.b,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
h.Gt=function(a,b,c){if("newdata"==a&&this.videoData!=c){a={video_id:c.videoId};b=new Yia;b.isSkippable=this.M;b.skip=w(this.g.skip,this.g);b.muteAd=w(this.g.muteAd,this.g);b.whyThisAdClicked=w(this.g.whyThisAdClicked,this.g);b.whyThisAdClosed=w(this.g.whyThisAdClosed,this.g);b.sendAdsPing=Wp;b.skipShown=w(this.g.Nr,this.g);var d=this.wb();if(d){b.clickThroughUrl=vV(d)||"";var e;(e=this.b.g.Aa)||(e=c.lengthSeconds,(d=VV(d))?(VT(d,e),e=UT(d)):e=null);b.skipTime=e||0;b.adSystem=this.adSystem;if(d=G2(this))b.whyThisAdInfo=
d;if(e=H2(this))b.muteAdInfo=e;var f=H1(this.b);this.b.g.A&&f.experiments.$("ad_info_icon_in_card")&&(f={showAdInfoIcon:!0},f.whyThisAdInfo=d,f.muteAdInfo=e,V4(this.b,"onAdMetadataAvailable",f))}b.videoId=c.videoId;b.videoId||(b.videoUrl=v2(this)||"");c.spacecastModule=this.P;B2(this.b,-1,a,b)}this.videoData=c};
h.Ft=function(a){a=a.state;U(a,1)||this.G.pause();U(a,128)?E2(this,Error(a.b.message||"Video player error.")):U(a,1)&&this.G.start()};
h.Et=function(){this.H=!0;this.C=!1;if(!this.F){this.F=!0;var a=this.B;s2(a);var b=t2(a);if((0,window.isNaN)(a.A))s2(a);else{var c=Bt()-a.A;b.ad_stl=c}r2(a,4,b);C2(this.b,1);A2(this,!1);(a=P("ADS_INSTREAM_FIRST_PLAY"))&&V4(this.b,"onAdAnnounce",a)}B2(this.b,1);this.R("adPlay",this)};
h.Dt=function(){this.H&&(this.H=!1,B2(this.b,2))};
h.KA=function(){if(!this.C){var a=this.B;s2(a);var b=t2(a),c=F2(a.b);c?b.ad_fmt=c:s2(a);r2(a,5,b);D2(this);this.C=this.F=!1}};
h.dB=function(){var a=this.B;a.b.R("AD_LOGGING_EVENT",777,t2(a))};
h.pG=function(){this.C=!0;var a=this.B,b=t2(a),c=F2(a.b);c?b.ad_fmt=c:s2(a);r2(a,14,b);D2(this)};
h.NC=function(){var a=P("ADS_INSTREAM_SKIPPABLE");a&&V4(this.b,"onAdAnnounce",a)};
h.JB=function(){var a=this.wb();if(a){var b=a.ba,a=a.X,c=H1(this.b),d=G2(this),e=H2(this);if(a&&b)f={},f.videoTitle=b.title,f.channelThumbnailUrl=a.b,f.channelTitle=a.authorName,f.channelVideoCount=a.videoCount,f.showAdInfoIcon=this.b.g.A&&c.experiments.$("ad_info_icon_in_card"),f.whyThisAdInfo=d,f.muteAdInfo=e,V4(this.b,"onAdMetadataAvailable",f);else if(this.b.g.A&&c.experiments.$("ad_info_icon_in_card")){var f={showAdInfoIcon:!0};f.whyThisAdInfo=d;f.muteAdInfo=e;V4(this.b,"onAdMetadataAvailable",
f)}}};
h.nG=function(a){a=a.event;var b=a.b;b&&b instanceof I&&this.R("adCompanionInitialized",a.Wa(),b)};
h.mG=function(a){var b={};try{b.error_code=a.event.getError().fb()}catch(c){b.error_code=900,b.error_message=c.toString()}u2(this.B,32,b);E2(this,a.event.getError())};
h.lG=function(){var a=this.B;s2(a);var b=t2(a);if(a.g){var c=T4(a.o);b.ck_xy=Math.round(a.g.x-c.left)+"x"+Math.round(a.g.y-c.top);b.ck_wh=c.width+"x"+c.height}r2(a,15,b);this.g.pause();this.R("select")};
h.pq=function(){};
h.Ct=function(){this.g.sh();A2(this,!0)};
h.O=function(){this.b.ya("control_toggle_play_pause",this.Ht,this);this.b.ya("control_play",this.wm,this);this.b.ya("control_pause",this.um,this);this.b.ya("resize",this.vn,this);lA(this.A);this.o.ya("statechange",this.Ft,this);this.o.ya("internalAbandon",this.Ct,this);this.o.ya("internalvideodatachange",this.Gt,this);this.o.ya("progresssync",this.pq,this);this.J||this.g.destroy();this.I&&(zf(this.I),this.I=null);this.K&&(Bf(this.K),this.K=null);this.D&&(ie(this.D,["ad-showing","ad-interrupting"]),
this.D=null);this.C=!1;b5(this.b);this.G.dispose();this.G=null;y2.L.O.call(this)};
h.Ht=function(){this.H?this.um():this.wm()};
h.wm=function(){this.g.resume();this.Et()};
h.um=function(){this.g.pause();this.Dt()};
h.vn=function(){Xq(m2(this.b.C),this.b.app.D.Da())};
h.oG=function(a){n(a.b)||bm(a);var b=a.b;n(a.g)||bm(a);this.B.g=new $e(b,a.g)};y(K2,j2);h=K2.prototype;
h.show=function(){if(!this.C||!g5(this.b)){J(this.b.xa(),"ad-showing");this.A=m2(this.b.C);var a=this.g.wb().getHeight();this.A.style.height=Lq(a,!0);J(this.A,"ad-overlay");this.o.N(this.A,"mouseup",this.sG);try{this.o.N(this.g,"autoClose",this.mA),this.o.N(this.g,"userClose",this.gD),this.o.N(this.g,"userRecall",this.hD),this.o.N(this.g,"click",this.rG),this.o.N(this.g,"impression",this.tB),this.o.N(this.g,"adError",this.qG),L2(this,"normal"),this.D||this.g.start(),this.wn(),this.b.subscribe("resize",
this.$j,this),this.b.subscribe("presentingplayerstatechange",this.It,this),this.R("adEnd",this)}catch(b){this.R("adError",b)}}};
h.O=function(){lA(this.o);this.b.ya("resize",this.$j,this);this.b.ya("presentingplayerstatechange",this.It,this);he(this.b.xa(),"ad-showing");this.g&&(this.D||this.g.destroy(),this.g=null);this.A&&he(this.A,"ad-overlay");this.A=null;this.C=!1;K2.L.O.call(this)};
h.gD=function(){this.A&&this.g&&this.g.wb()&&(this.A.style.height=Lq(0,!0));this.C=!0;var a=this.B;a.g=D();var b=J2(a);I2(a,6,b);this.b.R("overlay_ad_close")};
h.mA=function(){this.b.R("overlay_ad_close")};
h.hD=function(){this.b.R("overlay_ad_open")};
h.rG=function(){this.b.pauseVideo();var a=this.B;a.g=D();var b=J2(a);if(a.A){var c=T4(a.B);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}I2(a,100,b)};
h.tB=function(){var a=P("ADS_OVERLAY_IMPRESSION");a&&V4(this.b,"onAdAnnounce",a);this.b.R("overlay_ad_open")};
h.sG=function(a){this.B.A=a.target==a.currentTarget?null:new $e(a.pageX,a.pageY)};
h.qG=function(a){a=a.event.getError();this.R("adError",a)};
h.It=function(a){U(a.state,16)&&L2(this,"normal")};
h.$j=function(){};
h.wn=function(){var a=this.B;a.o=D();var b=J2(a);I2(a,3,b)};y(M2,F);M2.g="rm";M2.b=10;M2.B=200;M2.A=200;M2.o=190;h=M2.prototype;
h.load=function(){var a;a=this.b.app.D.Da();var b;this.b.g.b?b=!1:(b=0<(this.C&3)?190:200,b=200>a.width||a.height<b);if(b){b=this.A;var c=L1(b);c.ck_wh=a.width+"x"+a.height;U4(b.b,14,c);Z1();this.Sc(Error("The player size is too small."))}else if(this.B=this.b.I)a=this.A,M1(a.b,9,L1(a)),a=J1(this.b),(b=this.b.g.serverPrefetchedVast)&&0<(this.C&3)?(a.g=b,this.b.g.serverPrefetchedVast=void 0):a.b=this.Gd(),this.B.N("adsManagerLoaded",this.Bt,!1,this),this.B.N("adError",this.At,!1,this),this.mj(this.B,
a)};
h.Yk=function(){var a=G1(this.b.g,H1(this.b),I1(this.b));a.surveyCreativeData=this.b.g.surveyCreativeData;a.IE=this.Gg();return a};
h.Gg=function(){return this.P};
h.Bt=function(a){if(a.A===this){Qv("aml");try{var b=this.Yk(),c=a.b}catch(d){this.qe(d);return}this.o.N(c,"companionBackfill",w(this.jG,this,c));this.o.N(c,"loaded",w(this.iG,this,c));this.o.N(c,"adError",w(this.hG,this,c));this.o.N(c,"allAdsCompleted",r);this.o.N(c,"contentPauseRequested",r);this.o.N(c,"contentResumeRequested",r);c=mW(a,this.b.H,{},b);try{c.init("normal")}catch(d){c.destroy(),this.qe(d)}}};
h.iG=function(a,b){Gm(this.o);var c=b.Wa(),d=c.tb(),e=this.A,f=d?"instream":"overlay",k=L1(e);k.ad_man=f;M1(e.b,12,k);e=a.il();switch(d?this.Qf(a,c,e):this.Jd(a,c)){case 0:W2(this);break;case 1:a.destroy();this.Sc(Error("Unable to create a display state."));break;case 2:c=this.A;U4(c.b,21,L1(c));a.destroy();this.Sc(Error("Fallback to next ad."));break;case 3:this.Sc(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
h.hG=function(a,b){Gm(this.o);a.destroy();this.qe(b.getError())};
h.At=function(a){var b=a.getError();"adLoadError"==b.Kb()&&a.b===this&&this.qe(b)};
h.jG=function(){R2(this)};
h.Qf=function(a,b,c){var d=I1(this.b)&&I1(this.b).spacecastModule;if(d&&c&&!this.J.test(c)||!this.b.g.$a&&!this.J.test(c))return 3;P2(this,xV(b));O2(this,new y2(this.Gg(),this.b,a,b.isSkippable(),void 0,d));return 0};
h.Jd=function(a,b){P2(this,xV(b));O2(this,new K2(this.Gg(),this.b,a));return 0};
h.qe=function(a){if(a){var b=this.A,c=L1(b);a&&C1(a,c);U4(b.b,32,c);this.Sc(a)}};
h.Sc=function(){H3(this.F)};
h.O=function(){this.B&&(this.B.qa("adsManagerLoaded",this.Bt,!1,this),this.B.qa("adError",this.At,!1,this));Gm(this.M);Gm(this.o);M2.L.O.call(this)};
h.mj=function(a,b){try{q1(a,b,this),Qv("ar")}catch(c){this.qe(c)}};y(S2,j2);h=S2.prototype;h.show=function(){H1(this.b).experiments.$("fix_vmap_afc_mpu_api_stats_ads")?P1?this.mp():(R1(),V1(),W1().then(w(this.kG,this),w(this.mp,this))):(R1(),this.A=Ni(w(this.Ux,this),1E3))};
h.O=function(){X2(this);S2.L.O.call(this)};
h.Ux=function(){var a=q("yt.www.watch.ads.isAfcAdVisible");this.o++;var b={};b.at=this.ee();a&&a()&&this.B++;2<=this.B?(b.format=this.Lc(),X2(this),this.R("AD_LOGGING_EVENT",3,b),this.R("adEnd",this)):5<=this.o&&(X2(this),this.R("AD_LOGGING_EVENT",2,b),this.R("adEnd",this))};
h.kG=function(){var a={};a.at=this.ee();a.format=this.Lc();this.R("AD_LOGGING_EVENT",3,a);this.R("adEnd",this)};
h.mp=function(){var a={};a.at=this.ee();this.R("AD_LOGGING_EVENT",2,a);this.R("adEnd",this)};y(Y2,M2);Y2.prototype.Yk=function(){var a=Y2.L.Yk.call(this);a.mo=0==this.H;a.Aw=g5(this.b)?a.mo:!0;return a};
Y2.prototype.Gd=function(){var a;var b=this.D;a=Q2(this);(b=4==this.C&&b.b.afvInvideoAdTag?b.b.afvInvideoAdTag:b.b.afvAdTag)?(va(b,"http:")&&(b=b.substr(5)),a=Jj(b,{videoad_start_delay:a})):a="";return a};
Y2.prototype.Jd=function(a,b){if(this.b.g.b)return 1;1==this.g.b&&(N2(this),M1(this.b,1));return Y2.L.Jd.call(this,a,b)};
Y2.prototype.Sc=function(a){var b=this.b.g;b.b?Y2.L.Sc.call(this,a):b.ba||this.C&4?(O2(this,new S2(this.b)),W2(this)):Y2.L.Sc.call(this,a)};Z2.prototype.b=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.D,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.D,d.push("480x361"));b&12&&d.push("480x70");var e=[],f,k;b&12&&(e.push("300x250"),f="watch-channel-brand-div",k=1);0<(b&3)&&(e.push("300x60"),f="watch-longform-ad",k=1);var m=k;k=ic(this.G);c&&(k.pos=c);m&&null==k.tile&&(k.tile=m.toString());f&&null==k.kmyd&&(k.kmyd=f);e&&0<e.length&&this.o&&null==k.ciu_szs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";
if(this.F||null==k.ord){if(!this.g||this.F)this.g=Math.floor(999999999*Math.random()).toString();k.ord=this.g}d&&d.length&&null!=k.sz&&"WIDTHxHEIGHT"==k.sz&&ec(k,"sz");e=Ej(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.A,"pfadx",this.B,";",e,"?"].join("")};$2.prototype.b=function(a,b){if(0<(b&3)){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new N(this.g),f=e.b,k=f.get("scp",""),k=k?k+"&":"";-1==k.indexOf("pos")&&f.set("scp",k+("pos="+c));f.set("vpos",d);return e.toString()}return this.g};y(U2,K2);U2.prototype.$j=function(){};
U2.prototype.Lc=function(){return"1_3"};
U2.prototype.wn=function(){1==this.G?this.R("AD_LOGGING_EVENT",2,{}):U2.L.wn.call(this)};y(a3,M2);a3.prototype.Gd=function(){return this.U.b(x1(this.g),this.C)};
a3.prototype.Jd=function(a,b){P2(this,xV(b));var c=fV(b);if(E1(c,"rm"))return 1==this.C||g5(this.b)||Z1(),a.ng(),this.b.g.H?(O2(this,new S2(this.b)),0):2;if(E1(c,"blockAllAds"))return a.ng(),O2(this,new U2(this.b,a,1)),0;if(E1(c,"hideMaster"))return O2(this,new U2(this.b,a,0)),0;if(this.b.g.b)return 1;O2(this,new K2(this.Gg(),this.b,a));return 0};y(b3,a3);var eja={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};h=b3.prototype;h.Gd=function(){if(this.b.g.Ga){var a=new $2(this.b.g.dynamicAllocationAdTag);return a.b(x1(this.g),this.I)}a=new Z2(this.b.g.dynamicAllocationAdTag,this.b.g,this.H);return a.b(x1(this.g),this.I)};
h.mj=function(a,b){if(this.G){b.A=F1(this.G);var c=this.b.g.ga;c&&(b.o=c);b.Eh=Q2(this)}b3.L.mj.call(this,a,b)};
h.Qf=function(a,b,c){c3(this,a);return 1!=this.D&&2!=this.D?1:b3.L.Qf.call(this,a,b,c)};
h.Jd=function(a,b){c3(this,a);switch(this.D){case 1:return b3.L.Jd.call(this,a,b);case 2:var c;this.b.g.b?c=1:(1==this.g.b&&(N2(this),M1(this.b,1)),P2(this,xV(b)),O2(this,new K2(2,this.b,a)),c=0);return c;default:return 1}};
h.Gg=function(){return this.D||0};
h.Sc=function(a){var b=this.b.g;b.b?b3.L.Sc.call(this,a):b.ba||this.G&4?(O2(this,new S2(this.b)),W2(this)):b3.L.Sc.call(this,a)};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
d3.prototype.cancel=function(a){if(this.b)this.A instanceof d3&&this.A.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.F--,0>=b.F&&b.cancel())}this.J?this.J.call(this.I,this):this.G=!0;this.b||(a=new n3,h3(this),f3(this,!1,a))}};
d3.prototype.H=function(a,b){this.D=!1;f3(this,a,b)};
d3.prototype.li=function(a){h3(this);f3(this,!0,a)};
d3.prototype.then=function(a,b,c){var d,e,f=new Bd(function(a,b){d=a;e=b});
i3(this,d,function(a){a instanceof n3?f.cancel():e(a)});
return f.then(a,b,c)};
yd(d3);y(g3,ua);g3.prototype.message="Deferred has already fired";g3.prototype.name="AlreadyCalledError";y(n3,ua);n3.prototype.message="Deferred was canceled";n3.prototype.name="CanceledError";m3.prototype.g=function(){delete l3[this.oa];throw this.b;};
var l3={};y(o3,M2);o3.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";o3.A="43";o3.b=function(a){var b=new d3;Sj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,wc:function(){var c=Error(a+" timed out");h3(b);f3(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);h3(b);f3(b,!1,c)},
ab:function(a){b.li(a)}});
return b};
o3.prototype.Gd=function(){return""};
o3.prototype.mj=function(a,b){var c=this.C;c&1||c&4||c&8?this.D?c&8?Tia(this.D):("goo.gl"==Hg(this.D)?(c=o3.b("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.D),j3(c,function(a){a=Vf(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new N(a.longUrl);hh(a,"video_format","43");return o3.b(a.toString())},this)):c=o3.b(this.D),j3(c,function(c){b.g=c.responseText;
q1(a,b,this)},this),i3(c,null,this.qe,this)):this.qe(Error("Invalid empty URL")):this.qe(Error("Invalid request type: "+c))};y(p3,j2);p3.prototype.show=function(){var a=I1(this.b).videoId;if(a){var b=this.g.wb();sH(H1(this.b).H,a,{Ye:aW(b)||null,vg:bW(b)||null});a={};a.format=this.Lc();a.at=this.ee();D1(b,a);this.R("AD_LOGGING_EVENT",3,a)}};y(q3,M2);q3.prototype.Gd=function(){return this.b.g.Pa||""};
q3.prototype.Jd=function(a,b){P2(this,xV(b));O2(this,new p3(this.b,a));5!=this.g.b&&R2(this);return 0};
q3.prototype.Qf=function(){return 1};y(r3,q3);r3.prototype.Gd=function(){return this.b.g.forceAdUrl||""};y(T2,K2);T2.prototype.$j=function(){};
T2.prototype.Lc=function(){return"4_3"};y(y3,M2);
y3.prototype.Gd=function(){var a;if(z(this.D)||0!=x1(this.g)){var b=this.G;if(b.b.Z&&b.b.ra){a={};var c="youtube_watch_"+b.g;a.nw="10613";a.asnw=b.b.Z;a.ssnw=b.b.Z;a.caid=b.b.ra;a.vdur=b.C;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.b.za)||(c._fw_d_001=b.b.za);b.b.gender&&(c._fw_d_002=b.b.gender);b.b.ka&&(c["_fwu:10613:lang"]=b.b.ka);b.b.ia&&(c._fw_dbp=b.b.ia);b.b.ca&&(c._fw_distributorvideoassetid=b.b.ca);c._fw_yt_type=x3(b)?"long":"short";if(s3(b)){a.prof=x3(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=t3(b.A)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.B&1&&!b.D){e={};d=v3(b);if(w3(b.A)){var f;if(w3(b.A)){f=0;var k=b.o.A;if(k)for(var k=k.A,m=0;m<k.length&&(w3(k[m])&&f++,k[m].getId()!=b.A.getId());m++);}else f=0;d+=f}e.slid=d;e.ptgt="a";e.slau=v3(b);e.tpos=u3(b.A)?b.C.toString():x1(b.A.jb).toString();d=Ej(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=Ej(e,"&")+";"}b.B&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},
e.tpos=t3(b.A)?"10":u3(b.A)?b.C.toString():x1(b.A.jb).toString(),d+=Ej(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Ej(e,"&")+";");b.B&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Ej(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+Ej(a,"&")+";"+Ej(c,"&")+";"+b}else e="10613:10613_youtube_"+b.g.split("_")[0],a.prof="10613:10613_youtube_"+b.g,a.crtp="vast2s",a.flag="+emcr",d={},b.D||(d.ptgt="a",d.slid=
"preroll",d.slau=v3(b),d.w="480",d.h="360",d.tpos="0",d.tpcl="preroll",d.envp=e,d.cd="1440,900"),a="//2975c.v.fwmrm.net/ad/g/1?"+Ej(a,"&")+";"+Ej(c,"&")+";"+Ej(d,"&")}else a=""}else a=this.D;return a};
y3.prototype.Qf=function(a,b){return y3.L.Qf.call(this,a,b,null)};
y3.prototype.Jd=function(a,b){var c=fV(b);if(E1(c,"rm"))return this.F.B=hc(a),2;if(this.b.g.b)return 1;if(E1(c,"hideMaster")){if(a.D&&a.D.cf()){var c=a.D.cf(),d;d=a.wb();if(W.b()){var e=d.H;d.H=[];d=e}else d=[];c.impressionUrls=d}O2(this,new T2(this.b,a));return 0}return y3.L.Jd.call(this,a,b)};z3.prototype.Kb=function(){return this.A};
z3.prototype.create=function(a,b){switch(this.A){case 1:return new Y2(a,b,this.b);case 2:return new a3(a,b,this.b);case 3:return new b3(a,b,this.b,this.g);case 5:return new y3(a,b,this.b);case 4:return new o3(a,b);case 7:return new q3(a,b,this.b);case 8:return new r3(a,b,this.b);default:return null}};y(A3,kk);h=A3.prototype;h.getId=function(){return this.oa};
h.show=function(){this.F?this.b instanceof K2&&L2(this.b,"normal"):(this.F=!0,this.b instanceof y2&&E3(this.A,"bs"),this.b.subscribe("adEnd",this.oq,this),this.b.subscribe("adError",this.xt,this),this.b.subscribe("AD_LOGGING_EVENT",this.Iq,this),this.b.subscribe("select",this.wt,this),this.b.subscribe("adCompanionInitialized",this.zt,this),this.b.show(),G3(this,!0))};
h.oq=function(){this.g&&(I3(this),W4(this.A));V2(this)};
h.xt=function(a){if(a){var b={};C1(a,b);F3(this,b);U4(this.A,32,b)}I3(this);V2(this)};
h.Iq=function(a,b){F3(this,b);M1(this.A,a,b)};
h.wt=function(){this.D=!1};
h.zt=function(a,b){this.R("adCompanionInitialized",a,b)};
h.O=function(){I3(this);this.b=null;null!=this.B&&(this.B.dispose(),this.B=null);A3.L.O.call(this)};var N3=[new w1(1)];var lja={Bv:"m",gv:"f"};y(O3,F);O3.prototype.B=function(a){a=null!=a.Wa()?a.Wa().C:null;if(null!=a){var b=this.C;b.B&&b.B.getVideoData().videoId==a?(a=b.B,a.A?(b=a.A,a=KB(b,"engage"),a.A=1,b=CK(b.b),a=qa(DB,a.ba,FB(a),CB(a),b)):a=null):a=null;this.b=a}};
O3.prototype.o=function(){this.A&&this.b&&this.b()};y(Q3,F);Q3.prototype.M=function(){this.A=window.NaN};
Q3.prototype.I=function(){if(U(Xz(this.b.b),8)){if(S3(this)){this.C=this.C||D()/1E3;this.F&&(this.B+=D()/1E3-this.F);var a=this.b.getCurrentTime(1);0!=this.g&&Math.abs(a-this.g)>this.P?(this.g=this.b.getCurrentTime(1),Z3(this,"seek"),this.B=0,this.o.push(D()/1E3)):(0,window.isNaN)(this.A)&&0!=this.g&&(Z3(this,"pause"),this.B=0,this.o.push(D()/1E3));O(this.A);this.A=window.NaN;this.g=0}}else U(Xz(this.b.b),4)&&0==this.g&&S3(this)&&(this.g=this.b.getCurrentTime(1),this.A=Mi(w(this.M,this),1E3*this.K),
this.F=D()/1E3)};
Q3.prototype.O=function(){O(this.A);this.A=window.NaN;this.g=0;this.b.ya("applicationplayerstatechange",this.I,this)};y(b4,F);h=b4.prototype;h.ds=function(){this.b.subscribe("beginseeking",this.ri,this)};
h.Xr=function(a,b){return a.g&&w3(a)?b+this.o+this.A:b};
h.Wr=function(a,b){var c=0x7ffffffffffff==b,d=0x8000000000000==b;return!a.g||u3(a)||c||d?b:b+this.o+this.A};
h.ho=function(a){if(a.g&&w3(a)&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=D3(a)+this.o,b=new dq(c,c+this.A-1,b);this.B[a.getId()]=b;this.b.ob([b])}};
h.Lt=function(a){a.g&&w3(a)&&(f4(this,a.getId()),this.ri())};
h.ri=function(){(0,window.isNaN)(this.g)||(O(this.g),this.g=window.NaN);var a=Z4(this.b);h4(this,a,this.b.app.Oa.Db()/100);LH(a,"transition","");LH(a,"opacity","1")};
h.Mt=function(a){var b=D3(a)+this.o+this.A,b=50>=1E3*this.b.getCurrentTime(1)-b;a.g&&w3(a)&&b&&(a=.001*(D3(a)+this.D),this.b.R("command_seek",a),0>=this.C||(a=Z4(this.b),LH(a,"opacity","0"),h4(this,a,0),Mi(w(this.tG,this),0)))};
h.tG=function(){var a=Z4(this.b);LH(a,"transition","opacity "+String(this.C)+"ms linear");LH(a,"opacity","1");g4(this,a,this.C,1)};
h.Kt=function(a,b,c){if(!(0,window.isNaN)(this.g)){var d=Math.max(1,b-D()),d=Math.max(0,a.b.volume+-1*a.b.volume*c/d);h4(this,a,d);this.g=0<d?yq(w(this.Kt,this,a,b,c),c):window.NaN}};
h.Jt=function(a,b,c){if(!(0,window.isNaN)(this.g)){var d=Math.max(1,b-D()),e=this.b.app.Oa.Db()/100,d=Math.min(e,a.b.volume+(e-a.b.volume)*c/d);h4(this,a,d);this.g=d<e?yq(w(this.Jt,this,a,b,c),c):window.NaN}};
h.O=function(){this.ri();this.b.ya("beginseeking",this.ri,this)};y(i4,b4);h=i4.prototype;h.ds=r;h.Xr=function(a,b){return b};
h.Wr=function(a,b){return b};
h.ho=r;h.Lt=r;h.Mt=r;h.O=r;y(j4,F);j4.prototype.o=function(){var a=this.b.g.g;if(this.B&&!(0>=a)){var b=this.b.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Pb(this.D.o,function(a){a.isDisposed();if(a.isVisible&&!(0>=l4(this,a))){var f;f=a.getId();f=this.D.D[f];if(l4(this,a)>b){var l=!m4(this,a);l!=f.visible&&(f.visible=l,c.push(f));l||(f=l4(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&this.b.b.ob(c,1);if(d){var f=0;0<this.A&&(f=D()/1E3-this.A);nja(this,a-f-e+2)}else k4(this)}};
j4.prototype.g=function(){return this.A};
j4.prototype.O=function(){k4(this);this.b.ya("endseeking",this.o,this)};y(n4,F);h=n4.prototype;h.fg=function(a){a.ya("adBreakComplete",this.fg,this);a.ya("adCompanionInitialized",this.sm,this);this.M=Mi(w(this.Qz,this,a),0)};
h.sm=function(a,b){Nb(this.H);this.H=new O3(this.b,b)};
h.Qz=function(a){var b=pja(this,a),c=b.previous,b=b.next;this.M=window.NaN;var d,e=!1;switch(a.jb.b){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&ha(b.jb.g)?D3(b)-1:0x7ffffffffffff}0==a.oa&&(E3(this.b,"bl"),C3(a)||E3(this.b,"fb"));"loaded"!=a.o||0==a.oa&&C3(a)&&b&&1E3*this.b.b.getCurrentTime()>=D3(b)?(c&&B3(c)&&!e&&(b=d,d=D3(c),d>b&&(b=d),q4(this,c),p4(this,c,b)),this.bf(a)):(this.o[a.getId()]=a,p4(this,a,d),kq(this.b));Ub(this.o)==this.A.length&&this.B.o();o4(this)};
h.bf=function(a){a.ya("adBreakComplete",this.fg,this);this.g&&a==this.g&&(this.g=null,null!=this.H&&a.g&&(this.H.A=!0));q4(this,a);qb(this.A,a);delete this.o[a.getId()];Nb(a)};
h.Cr=r;h.Zj=function(a){return this.o[a]};
h.lm=function(a){if(a.g){if(!u3(a)&&a.D){var b=this.b;d5(b);pq(b);this.C.Mt(a)}else C3(a)&&!a.D?(b=this.b,d5(b),pq(b)):d5(this.b);this.bf(a);a=this.B.g();a=0<a?Math.floor(D()/1E3-a):0;s4(this.b,"set_previous_ad_end_time",{tfla:a});a=this.B;a.B&&0<a.b.g.g&&(a.A=D()/1E3,a.o());for(;!lb(this.K);)t4(this,this.K.shift())}else a.isVisible||this.bf(a)};
h.O=function(){O(this.M);Nb(this.C);Nb(this.B);Nb(this.ca);E(this.A,this.bf,this);n4.L.O.call(this);Nb(this.H)};y(u4,n4);h=u4.prototype;h.Zj=function(a){a=u4.L.Zj.call(this,a);if(!a)return null;if(!a.G)return a;var b;b=null;if(this.F.length){var c=b=this.F.shift();c.jb=a.jb;c.oa=a.getId()}b&&"loaded"==b.o?(a.ya("adBreakComplete",this.fg,this),this.o[a.getId()]=b,this.A[this.A.indexOf(a)]=b,Nb(a)):(this.hg(),b&&(Nb(b),b=null,this.bf(a)));b&&!b.g&&this.hg();return b};
h.fg=function(a){var b;if(b=!t3(a))b=!(2==a.jb.b&&10==x1(a.jb));b||"loaded"==a.o&&a.g||this.hg();u4.L.fg.call(this,a)};
h.lm=function(a){a.g&&10<this.P?w4(this):this.hg();u4.L.lm.call(this,a)};
h.hg=function(){if(!this.isDisposed())for(v4(this);this.I.length&&this.J.length+this.F.length<this.X;){var a=this.I.shift();a.subscribe("adBreakComplete",this.nq,this);this.J.push(a);H3(a)}};
h.Cr=function(){w4(this)};
h.nq=function(a){a.ya("adBreakComplete",this.nq,this);qb(this.J,a);this.F.push(a)};
h.O=function(){v4(this);E(this.J,Nb);E(this.F,Nb);E(this.I,Nb);u4.L.O.call(this)};y(x4,n4);x4.prototype.vh=function(a){this.Z=a};
x4.prototype.getVideoData=function(){return this.Z};
x4.prototype.Y=function(a){"loaded"==a.o&&this.I.push(a);a.ya("adBreakComplete",this.Y,this)};
x4.prototype.P=function(){if(null!=this.g&&0<this.I.length){var a=this.I.shift();delete this.o[x1(a.jb)];var b=Math.floor(D()/1E3)-this.aa;this.aa=null;a.ya("adBreakComplete",this.P,this);this.bf(a);this.g=null}0<this.J?(this.J--,y4(this)):(a=this.U,d5(a),pq(a),(0,window.isFinite)(b)&&(this.X?this.F.seekTo(window.Infinity,!0):this.F.seekTo(this.F.getCurrentTime()+b,!0)))};var f5=["9412857","9412859"];y(B4,F);B4.prototype.D=function(){this.b||(this.b=A4(this.A.he()));this.g.b.ob(Xb(this.b),1)};
B4.prototype.B=function(){var a=this.g.g.g;if(!(0>=a)&&this.b){var b=this.g.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;E(this.A.he(),function(a){var f=this.b[a];if(f){var l=this.A.J.get(a);l&&l.Yb>b?(a=!i1(this.F,l),a!=f.visible&&(f.visible=a,c.push(f)),a||(f=l.Yb-b,f<e&&(e=f,d=l))):!l||l.Ya()?(OL(this.g.b,[f],void 0),delete this.b[a]):!f.visible&&l&&(f.visible=!0,c.push(f))}},this);
0<c.length&&this.g.b.ob(c,1);if(d){var f=0;0<this.C&&(f=D()/1E3-this.C);sja(this,a-f-e+2)}else C4(this)}};
B4.prototype.O=function(){B4.L.O.call(this);this.g.ya("endseeking",this.B,this);C4(this)};y(E4,F);h=E4.prototype;h.Yo=function(){return 4};
h.wj=function(a){return a};
h.ur=function(){return!1};
h.jo=r;h.Qh=r;h.Nt=r;h.Ot=r;h.Pt=r;y(F4,F);h=F4.prototype;h.Yo=function(){return 4-this.o/1E3};
h.wj=function(a){return $b(this.A,1E3*a)?this.A[1E3*a]/1E3:a};
h.ur=function(a){var b=!1,c={};E(Ef(a),w(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?z4(e):null)b=b||tja(a),c[e]=a},this));
if(!b||0==Ub(c))return!1;a=zi(Yb(c),function(a){return(0,window.parseInt)(a,10)});
if(!wja(this,a))return!1;Pb(c,w(function(a,b){var c=(0,window.parseInt)(ac(this.A,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",uja(c))},this));
return!0};
h.jo=function(a){if(!(0>=this.G)){var b=[];E(a,w(function(a){if($b(this.A,1E3*a)){var d=new dq(1E3*this.wj(a)+this.o,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.B[a]=d;b.push(d)}},this));
this.b.ob(b)}};
h.Nt=function(a){if($b(this.A,1E3*a)){var b=Z4(this.b);null!==b&&(a=Math.max(0,1E3*a-1E3*this.b.getCurrentTime(1)),LH(b,"transition","opacity "+String(a)+"ms linear"),LH(b,"opacity","0"),H4(this,b,a,0))}};
h.Ot=function(a){G4(this,1E3*a)&&(this.B[a]&&(OL(this.b.b,[this.B[a]],void 0),delete this.B[a]),this.Qh())};
h.Vt=function(){U(Xz(this.b.b),4)&&this.Qh()};
h.Qh=function(){var a=Z4(this.b);null!==a&&(null!=this.g&&(O(this.g),this.g=null),I4(this,a,this.b.app.Oa.Db()/100),LH(a,"transition",""),LH(a,"opacity","1"))};
h.Pt=function(a){if($b(this.A,1E3*a)){var b=1E3*a;200>=1E3*this.b.getCurrentTime(1)-b&&(this.b.R("command_seek",this.wj(a)+this.F/1E3),0>=this.C||(a=Z4(this.b),null!==a&&(LH(a,"opacity","0"),I4(this,a,0),null!=this.g&&O(this.g),this.g=yq(w(this.zG,this),0))))}};
h.zG=function(){var a=Z4(this.b);null!==a&&(LH(a,"transition","opacity "+String(this.C)+"ms linear"),LH(a,"opacity","1"),H4(this,a,this.C,1))};
h.Ut=function(a,b,c){if(null!==this.g){var d=Math.max(1,b-D()),d=Math.max(0,a.b.volume+-1*a.b.volume*c/d);I4(this,a,d);0<d?this.g=yq(w(this.Ut,this,a,b,c),c):this.g=null}};
h.Tt=function(a,b,c){if(null!==this.g){var d=Math.max(1,b-D()),e=this.b.app.Oa.Db()/100,d=Math.min(e,a.b.volume+(e-a.b.volume)*c/d);I4(this,a,d);d<e?this.g=yq(w(this.Tt,this,a,b,c),c):this.g=null}};
h.O=function(){this.Qh();this.b.ya("applicationplayerstatechange",this.Vt,this);F4.L.O.call(this)};y(J4,F);var Bja={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4,"YT:SHOPPING":14,SHOPPING:14,GOOGLEADS:14};h=J4.prototype;
h.load=function(a){if(this.G=this.b.I){var b=this.b.g;this.B=b.applyFadeOnMidrolls?new F4(this.b):new E4;var c=J1(this.b);c.g=yja(this,a);c.Ki=this.b.H.A;c.Fb.TSLA=Sia(this);c.Fb.GET_MIDROLL_POSITION_IN_SEC=w(this.B.wj,this.B);if(a=J3(b).get(3))if(y1(H1(this.b),["9418778","9417893","9417894","9417895","9419817"])||(c.A=F1(a)),b=b.ga)c.o=b;this.G.N("adsManagerLoaded",this.Rt,!1,this);this.G.N("adError",this.Qt,!1,this);q1(this.G,c,this)}};
h.Rt=function(a){if(a.A===this){var b={};Object.defineProperty(b,"currentTime",{get:w(function(){return this.b.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:w(function(){return this.b.b.getVideoData().lengthSeconds},this),
enumerable:!0});try{var c=zja(this);this.g=mW(a,this.b.H,b,c)}catch(d){P4(this,d);return}if(this.D=this.g.wp(b,this.b.g.g)){this.B.jo(this.g.he());this.J=new Q3(this.b,this.D);this.F=new B4(this.b,this.g,this.D);G(this,this.F);Mi(w(this.F.D,this.F),0);kb(this.g.he(),0)||O4(this);this.C.N(this.g,"companionBackfill",w(this.wG,this));this.C.N(this.g,"prefetched",w(this.Wz,this));this.C.N(this.g,"loaded",w(this.vG,this));this.C.N(this.g,"adError",w(this.uG,this),!1);this.C.N(this.g,"start",w(this.Xz,
this));this.C.N(this.g,"complete",w(this.Sz,this));this.C.N(this.g,"contentPauseRequested",w(this.xG,this));this.C.N(this.g,"contentResumeRequested",w(this.yG,this));this.C.N(this.g,"allAdsCompleted",w(this.bA,this));P3(this.b,this.St,this);try{this.g.init("normal"),this.g.start()}catch(d){s4(this.b,"vmap_ads_manager_init_exception"),this.g.destroy(),this.g=null,P4(this,d)}}}};
h.St=function(){if(U(Xz(this.b.b),16)||U(Xz(this.b.b),32)){var a=this.g;null!=a.C&&(a=a.C,a.b.stop(),a.g=!1)}else a=this.g,null!=a.C&&d1(a.C)};
h.xG=function(a){Q4(this);(this.A=a.Wa())&&this.A.tb()&&(a=L4(this.A),this.o=new y2(a,this.b,this.g,this.A.isSkippable(),!0),r4(this.b),this.B.Ot(this.A.o.b),this.o.show(),K4(this,"show_instream_ads"))};
h.yG=function(a){O4(this);if(this.b.getCurrentTime(1)<this.b.b.getVideoData().lengthSeconds){var b=this.b;d5(b);pq(b);this.A&&this.A.tb()&&this.B.Pt(this.A.o.b)}a=a.Wa();this.H?this.A=null:H1(this.b).experiments.$("fix_vmap_afc_mpu_api_stats_ads")&&!a&&this.o instanceof S2||Q4(this);b=!0;if(a&&a!==this.A&&!a.tb()){b=this.g;if(null!=b.g&&b.g.P&&!this.H){this.H=!0;b=this.F;if(null!=b.b[0]){var c=b.b[0];delete b.b[0];b.b[0]=new dq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.g.b.ob([c,b.b[0]],1);b.g.ob([b.b[0]])}this.A=
a;return}b=Aja(this,a)}this.A&&this.A.tb()&&W4(this.b);this.A&&this.A.tb()?(K4(this,"set_previous_ad_end_time"),b=this.D,0<b.A&&(b.b=D()/1E3),D4(this.F)):a&&a!==this.A&&!a.tb()&&b&&D4(this.F);this.F.D();this.A=a};
h.bA=function(){this.J.G=!0};
h.Xz=function(a){(a=a.Wa())&&this.o&&(a=L4(a),this.o.adSystem=a)};
h.Sz=function(a){a.Wa().tb()||this.A!==a.Wa()||(Q4(this),this.A=null)};
h.Wz=function(a){var b=a.Wa();null!=b&&(this.K[a.b.adBreakTime]=b)};
h.vG=function(a){if(null!=a.Wa()){var b=a.Wa().o;0<b.b&&(this.H=!1);b.o||a.Wa().tb()||O4(this)}};
h.uG=function(a){P4(this,a.getError())};
h.Qt=function(a){var b=a.getError();"adLoadError"==b.Kb()&&a.b===this&&P4(this,b)};
h.wG=function(a){a=a&&a.Wa();N4(this,a)};
h.O=function(){Q4(this);this.G&&(this.G.qa("adsManagerLoaded",this.Rt,!1,this),this.G.qa("adError",this.Qt,!1,this));Gm(this.M);Gm(this.C);this.b.b.removeEventListener("applicationplayerstatechange",this.St,this);this.I=!1;this.g&&(this.g.destroy(),this.g=null);Nb(this.B);Nb(this.J);J4.L.O.call(this)};
h.QB=function(a,b,c){if(H1(this.b).experiments.$("fix_vmap_afc_mpu_api_stats_ads")){if(a){a=a.Yb;var d=1;-1==a?d=3:0<a&&(d=2);c.break_type=d;c.sst=a;c.sidx=0}M1(this.b,b,c)}};y(R4,s1);R4.A=10;R4.g=1E3;R4.b="livead";R4.Va=function(a){return!!a.Oa.getVideoData().adModule};
h=R4.prototype;h.Va=function(){return R4.Va(this.app)};
h.create=function(){R4.L.create.call(this);this.J.S(this.b,"beginseeking",w(this.R,this,"beginseeking"));this.J.S(this.b,"endseeking",w(this.R,this,"endseeking"));this.J.S(this.b,"resize",w(this.R,this,"resize"));this.J.S(this.b,"presentingplayerstatechange",w(this.R,this,"presentingplayerstatechange"));this.J.S(this.b,"webglsettingschanged",w(this.R,this,"webglsettingschanged"));E3(this,"i");this.g=new mja(H1(this),this.b.getVideoData().o||{});this.G=new qja(this,this.b);this.ba=!1;if(this.I)this.I.b.A.B=
ON();else{var a=this.g.X?void 0:p2(this.C),b=new r1(this.app,2),c=m2(this.C);b.g||(b.g=hc(b.A),b.g.addEventListener=w(b.jx,b),b.g.removeEventListener=w(b.kx,b));this.H=new JS(c,void 0,a,b.g,!0);this.H.setSize(-1,-1);this.I=new p1(this.H)}if(this.g.vmap&&!this.g.aa){this.o=new J4(this);try{this.o.load(this.g.vmap)}catch(x){Pi(x),s4(this,"vmap_load_exception"),this.o.dispose(),this.o=null,c5(this,M3(new L3(this)))}}else{try{if(Ki("EXP_QUICK_FETCH_BISCOTTI")&&!this.g.serverPrefetchedVast){var d=Bt(),
e=RH();if(e)this.wq(d,e);else{var f=w(this.wq,this,d),k=w(this.qA,this,d),m;try{var l=q("yt.www.ads.biscotti.getId_"),p;if(l)p=l();else{if(!PH){var t=vr("//googleads.g.doubleclick.net/pagead/id",{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0}).then(Raa),u=Ed(QH,QH,void 0);u.A=!0;Sd(t,u);PH=t}p=PH}m=p}catch(x){m=Gd(x)}this.P=m.then(f,k)}}}catch(x){Pi(x)}c5(this,M3(new L3(this)))}this.G&&(a={},a.allowed=this.G.g,lq(this,{},a))};
h.wq=function(a,b){var c=b?0:2,d=Math.round(Bt()-a);this.log({biscotti:1,dur:d,bstate:c})};
h.qA=function(a){a=Math.round(Bt()-a);this.log({biscotti:1,dur:a,bstate:1})};
h.destroy=function(){this.U&&d5(this);this.app.T.experiments.$("disable_new_pause_state3")||jq(this);b5(this);Ob(this.A,this.B,this.o);this.G=this.g=this.o=this.Y=this.B=this.A=null;o2(this.C);T1=Q1=P1=!1;V1();this.P&&this.P.cancel();this.D&&R4.L.destroy.call(this)};
h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Ia=function(){return this.b.Ia()||this.g.B};
h.Oh=function(){var a;if(this.G){a=this.G;var b={allowed:a.g};a.b.excludedAds&&(b.ex_ad=a.b.excludedAds);a.A&&(b.at=a.A);a=b}else a=R4.L.Oh.call(this);return a};
h.xa=function(){return this.b.xa()};
h.getVideoData=function(){return this.Y};
h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
h.getAdState=function(){return this.M};
h.dc=function(a){R4.L.dc.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.A&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.A,d=c.Zj(b);if(d&&!m4(c.B,d)&&(c=c.C,d.g)){var e=Z4(c.b),d=Math.max(0,D3(d)+c.o+c.A-1E3*c.b.getCurrentTime(1));LH(e,"transition","opacity "+String(d)+"ms linear");LH(e,"opacity","0");g4(c,e,d,0)}}else t4(this.A,b);this.o&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.o,(c=d.K[b])&&c.tb()&&d.B.Nt(b)):0>b?(b=this.I.b,d=new nW("contentComplete"),
b.V(d),d.b&&(eN(cN(),41351033)||b.A.clear(),null!=b.g&&(d=b.g.cf(),null!=d&&eT(d,b.A.b)))):(b=this.o,null!=b.A&&(b=b.g,null!=b.g&&b.g.start())));if("livead"===a.getId()&&null!=X4(this)){b=X4(this);for(a=Math.floor(a.start/1E3);n(b.o[a]);)a++;var d=b.ea++,c=0==a?new w1(1):new w1(2,a),e=b.U,f;f=K3(b.U.g,c.b);d=new A3(e,d,c,f,!1);b.o[a]=d;d.subscribe("adBreakComplete",b.Y,b);H3(d)}};
h.tc=function(a){R4.L.tc.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=1E3*this.getCurrentTime(1);this.A&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.A,(b=c.o[b])&&c.g==b&&!b.g&&b.isVisible&&b.F&&b.b instanceof K2&&L2(b.b,"fullscreen"));this.o&&"ytp-ad-fadeout"==a.style&&this.o.B.Qh();"livead"===a.getId()&&null!=X4(this)&&1E3*this.getCurrentTime(1)>=a.start&&(OL(this.b,[a],1),y4(X4(this)))};
h.re=function(a){this.R(a)};
h.RA=function(a){var b=X4(this);if(null!=b&&null!=b.F){var c=X4(this).F.getCurrentTime();E(a,function(a){0!=c&&a.zd>c&&(a=new dq(1E3*Math.floor(c+Math.random()*Math.max(a.zd-10-c,0)),1E3*a.zd,{id:"livead",priority:2}),this.ob([a],1))},this)}};
h.Td=function(a){switch(a){case "addata":var b=this.g;return{adTag:b.adTag,adTest:b.Za,forceAdType:b.forceAdType,isAfvSkippableInstreamEnabled:b.I,isAfvStandardInstreamEnabled:b.J,isBlazer:b.A,isDoubleClickEnabled:b.G,isForcedAd:b.aa,isFreeWheelEnabled:b.K,isHouseBrandPlayer:b.Sb,isLeanback:b.B,isShortform:b.Ja,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.A instanceof u4?this.A:null,null!=b?b.P:0;case "breakscount":return this.A?
this.A.A.length:0;case "displaystate":return b=null,this.A&&this.A.g&&(b=this.A.g.b),{adFormat:b instanceof j2?b.adType:!1,adSkipped:b instanceof y2?b.C:!1,hasVideoStarted:b instanceof y2?b.F:!1,skippable:b instanceof y2?b.M:!1};case "getContentVideoData":return b=I1(this),{adModule:b.adModule,partnerTrackingToken:b.Y,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.A){a=this.A.o;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].g});return c}return 0}};
h.tf=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};var i5=[];h5.prototype.toString=function(){return this.g.toString()};
h5.prototype.getExtension=function(a){if(this.b){this.A||(this.A={});var b=a.A;if(a.o){if(a.g())return this.A[b]||(this.A[b]=zi(this.b[b]||[],function(b){return new a.b(b)})),this.A[b]}else if(a.g())return!this.A[b]&&this.b[b]&&(this.A[b]=new a.b(this.b[b])),this.A[b];
return this.b[b]}};y(j5,h5);var Cja=[241];j5.prototype.getStatus=function(){return Z(this,59)};
j5.prototype.setVideoId=function(a){175<this.o?this.g[174]=a:this.b[175]=a};
j5.prototype.setTitle=function(a){176<this.o?this.g[175]=a:this.b[176]=a};
j5.prototype.Pb=function(){return Z(this,201)};y(l5,F);h=l5.prototype;h.O=function(){o5(this,new Xy);n5(this);x5(this);this.g.b.removeEventListener("onVolumeChange",this.cj,this);this.g.b.removeEventListener("onCaptionsTrackListChanged",this.Hq,this);var a=this.b;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.b.ya("proxyStateChange",this.Uq,this),this.b.ya("remotePlayerChange",this.jh,this),this.b.ya("remoteQueueChange",this.tm,this));w5(this,this.A);this.C&&this.g.b.qn(this.C);this.b=this.g=null};
h.AG=function(a,b){2==this.b.g||(q5(this)?this.Tx.apply(this,arguments):this.o&&this.Rx.apply(this,arguments))};
h.Rx=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":v5(this,this.g.b.getCurrentTime());break;case "control_seek":v5(this,c[0])}};
h.Tx=function(a,b){if(1081==vo(this.b).b)switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":case "control_seek":return}var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":vo(this.b).Ya()?s5(this):u5(this);break;case "control_play":u5(this);break;case "control_pause":s5(this);break;case "control_seek":this.J=c[0];this.G.Of();break;case "control_subtitles_set_track":k5(this,c[0]);break;case "control_set_audio_track":c=c[0],q5(this)&&
(this.b.zs(r5(this),c),this.C=c)}};
h.cj=function(a){if(q5(this)){this.b.ya("remotePlayerChange",this.jh,this);var b=Math.round(a.volume);a=!!a.muted;var c=vo(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a);this.b.subscribe("remotePlayerChange",this.jh,this)}};
h.Hq=function(){cc(this.A)||w5(this,this.A);this.B=!1};
h.Uq=function(a,b){x5(this);2==b&&this.$r()};
h.jh=function(){if(q5(this)){n5(this);var a=vo(this.b);switch(a.b){case 1:t5(this);o5(this,new Xy(8));break;case 3:o5(this,new Xy(1));break;case 0:o5(this,new Xy(2));this.G.stop();var b=this.g.b;(b=hq(b.app,b.playerType||1))&&b.pg(!0);m5(this,this.g.b.getVideoData().lengthSeconds);break;case 2:o5(this,new Xy(4));m5(this,po(a));break;case -1:o5(this,new Xy);break;case -1E3:b={errorCode:"mdx.remoteerror",message:P("YTP_MDX_PLAYER_ERROR")},o5(this,new Xy(128,b))}0==this.H&&(b=this.g.b,(b=hq(b.app,b.playerType||
1))&&b.pg(!1));this.H=a.b;a=vo(this.b).g;b=this.A;(a||b?a&&b&&a.trackName==b.trackName&&a.languageCode==b.languageCode&&a.languageName==b.languageName&&a.format==b.format&&a.kind==b.kind:1)||(this.A=a,w5(this,a));a=vo(this.b);-1==a.volume||Math.round(this.g.b.Db())==a.volume&&this.g.b.Jc()==a.muted||(this.g.b.removeEventListener("onVolumeChange",this.cj,this),a.muted?this.g.b.mute():this.g.b.unMute(),this.g.b.setVolume(a.volume),this.g.b.addEventListener("onVolumeChange",this.cj,this))}else p5(this)};
h.tm=function(){q5(this)||p5(this)};
h.qE=function(){var a=this.J;n5(this);m5(this,a);-1==vo(this.b).b?v5(this,a):this.b.seekTo(a);o5(this,new Xy(1))};
h.$r=function(){x5(this);n5(this);var a=this.b.o.getReconnectTimeout();2!=this.b.g||(0,window.isNaN)(a)?this.o=!1:this.F=Mi(w(this.$r,this),1E3)};y(y5,s1);var tqa=["play_pause","seek","set_audio_track"],uqa=["captions"];h=y5.prototype;h.Va=function(){return 1<this.M.length};
h.create=function(){y5.L.create.call(this);this.C.push(Xi("yt-remote-before-disconnect",this.pA,this));this.C.push(Xi("yt-remote-connection-change",this.Vq,this));this.Vq();var a=this.b.app.K;this.B&&this.B!=this.o&&1!=a&&3!=a&&this.load()};
h.destroy=function(){Yi(this.C);this.C.length=0;Nb(this.g);this.g=null;y5.L.destroy.call(this)};
h.load=function(){if(!this.loaded){y5.L.load.call(this);this.g&&(this.A=new l5(this,this.g));this.b.pauseVideo();this.R("command_redirect_controls",this,tqa,uqa);var a=Dp();if(0!=a){var b=this.g?vo(this.g).videoId:null;b&&b!=this.b.getVideoData().videoId||Mi(w(function(){this.H=a||0;this.b.R("progresssync",a,void 0)},this),0)}}};
h.unload=function(){this.loaded&&(this.B=this.o,oq(this),Nb(this.A),this.A=null,y5.L.unload.call(this))};
h.O=function(){this.D&&this.destroy();Ob(this.A,this.g);this.g=this.A=null;y5.L.O.call(this)};
h.re=function(a,b){this.A&&this.A.AG.apply(this.A,arguments)};
h.getCurrentTime=function(){return this.H};
h.pA=function(a){1==a&&(this.I=this.g?vo(this.g):null);this.G=a};
h.Vq=function(){var a=Cp();a?(this.g=a,this.G=this.I=null,this.load(),this.A||(this.A=new l5(this,this.g))):(Nb(this.g),this.g=null,this.loaded&&1==this.G&&(this.unload(),(a=this.I)&&a.videoId==this.b.getVideoData().videoId?this.b.mn(a.videoId,po(a)):this.b.mn(this.b.getVideoData().videoId)))};
h.Td=function(a,b){switch(a){case "casting":return!!this.g&&!!this.A;case "receivers":return this.M;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)Ul();else if(this.B=b||this.o,b.key==this.o.key)xp();else{var c=0,d="",e=this.b.Ic();e&&(c=e.Pb(),d=this.b.getVideoData().playlistId);if(e=this.b.Ic()){for(var f=[],k=0;k<e.A;k++)f[k]=e.vb(k).videoId;e=f}else e=[this.b.getVideoData().videoId];c={videoIds:e,listId:d,videoId:this.b.getVideoData().videoId,index:c,currentTime:this.b.getCurrentTime()};
Ap(b,c);Nb(this.A);this.A=null;this.load()}return this.B;case "castSelector":return c=tp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&Ul(),c}};
h.tf=function(){return["casting","receivers","currentReceiver","castSelector"]};y(A5,Aq);A5.C="(max-width: 656px)";A5.B="(min-width: 657px)";A5.o="(min-width: 1294px) and (min-height: 630px)";A5.g="(min-width: 1720px) and (min-height: 980px)";A5.A="(min-width: 1320px) and (min-height: 870px)";A5.b="(min-width: 967px)";h=A5.prototype;h.initialize=function(a){this.J=v(a)?window.document.getElementById(a):a;this.b(this.J)};
h.By=function(){this.G=new fg(0,0,0,0);this.D=new fg(0,0,0,0)};
h.yn=function(a){fe(this.element,arguments)};
h.Je=function(){if(this.o){var a=this.Da();if(!a.isEmpty()){var b=!cf(a,ig(this.D)),c=B5(this);b&&(this.D.width=a.width,this.D.height=a.height);a=this.app.T;(c||b||a.K)&&this.R("resize")}}};
h.FG=function(a,b){D5(this,b)};
h.GG=function(a){a.getVideoData()&&D5(this,a.getVideoData())};
h.Da=function(){var a=this.app.T,b=Uh()==this.element;if(b&&Np())return new bf(window.outerWidth,window.outerHeight);if(b||a.Le){var c;window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.F&&this.F.media==a||(this.F=window.matchMedia(a)),c=this.F&&this.F.matches);if(c)return new bf(window.innerWidth,window.innerHeight)}else if(this.M){if(a.experiments.$("flex_theater_mode")&&this.app.ca||a.experiments.$("player_scaling_360p_to_720p")&&this.ca.matches)return new bf(this.element.clientWidth,
this.element.clientHeight);if(this.M.matches)return new bf(426,240);a=this.app.ca;if((a?this.Y:this.aa).matches)return new bf(1280,720);if(a||this.Z.matches)return new bf(854,480);if(this.ea.matches)return new bf(640,360)}return new bf(this.element.clientWidth,this.element.clientHeight)};
h.Vx=function(){this.o&&z2(this);this.Je()};
h.O=function(){this.C&&(this.C.disconnect(),this.C=null);this.H&&Yi(this.H);this.o=this.B=this.J=null;A5.L.O.call(this)};ca(I5);var Y4=q("yt.player.utils.VideoTagPool.instance")||I5.getInstance();ba("yt.player.utils.VideoTagPool.instance",Y4,void 0);h=I5.prototype;h.No=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=J5(this);this.b.push(c)}}};
h.NG=function(a,b){return this.b.length?this.b.pop():J5(this,a,b)};
h.PD=function(a){if(a&&kb(this.g,a)){Wy(a);for(var b in cm)cm[b][0]==a&&gm(b);qb(this.g,a)}};
h.au=function(a){return this.b.length>=(a||1)};
h.xw=function(){this.b=[];this.au(4)?E(this.g,function(a){a.src||a.load();this.b.push(a)},this):this.No(4)};
I5.prototype.fillPool=I5.prototype.No;I5.prototype.getTag=I5.prototype.NG;I5.prototype.releaseTag=I5.prototype.PD;I5.prototype.hasTags=I5.prototype.au;I5.prototype.activateTags=I5.prototype.xw;y(K5,kk);h=K5.prototype;h.BG=function(a){a=nm(a);if(!af(a,this.A)){var b=2;this.C&&(b|=8);this.A=a;this.rb(b,!0)}};
h.Lz=function(){this.C&&this.rb(8,!0);this.rb(2,!1)};
h.Zt=function(a){var b=nm(a);af(b,this.A)||(this.A=b,(a=km(a))&&this.K(a)&&(this.rb(4,!0),this.b.qa(this.D),this.D=this.b.S(this.o,"mouseout",this.CG)))};
h.CG=function(a){a=mm(a);a&&this.K(a)||(this.A=new $e(window.NaN,window.NaN),this.rb(4,!1),this.b.qa(this.D),this.D=this.b.S(this.o,"mouseover",this.Zt))};
h.vz=function(){this.rb(1,!0)};
h.qx=function(a){a=km(a);a instanceof window.Element&&!(0<a.tabIndex)||this.rb(1,!0)};
h.Yt=function(){this.C=!0;this.b.qa(this.B);this.B=this.b.S(window.document,"mouseup",this.DG)};
h.DG=function(){this.C=!1;this.rb(8,!1);this.b.qa(this.B);this.B=this.b.S(this.o,"mousedown",this.Yt)};
h.$t=function(a){if(a=a.changedTouches[0])this.M=a.identifier,this.b.qa(this.F),this.F=this.b.S(this.o,"touchend",this.EG),this.rb(1024,!0)};
h.EG=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.M){b=d;break}}b&&(this.b.qa(this.F),this.F=this.b.S(this.o,"touchstart",this.$t),this.rb(1024,!1))};
h.rb=function(a,b){this.isDisposed();var c=!this.g;b?(this.g|=a,a&1&&this.G.start(),a&2&&this.H.start()):(this.g&=~a,a&1&&this.G.stop(),a&2&&this.H.stop(),a&512&&this.I.stop());this.g&512&&!(this.g&128)&&this.I.we(this.J);var d=!this.g;c!=d&&this.R("autohideupdate",d)};y(L5,Q);y(M5,Q);M5.prototype.I=function(a,b){O(this.o);this.context&&(this.o=yq(w(this.I,this,a,b),b),a.call(this,new Date-this.H))};
M5.prototype.O=function(){O(this.o);this.context=null;M5.L.O.call(this)};y(O5,M5);O5.prototype.show=function(){O5.L.show.call(this);var a=this.K;this.H=new Date;this.I(a,75)};
O5.prototype.K=function(){var a=1-1/1.5;this.B=(this.B+this.G)%(this.width*a);this.C=(this.C+this.F)%(this.height*a);this.context.drawImage(this.J,-1*this.B,-1*this.C);this.context.fillRect(0,this.D,this.width,75);this.D=(this.D+75+7)%this.height-75};
O5.prototype.da=function(){O(this.o);O5.L.da.call(this)};y(R5,Q);R5.prototype.show=function(){R5.L.show.call(this);this.o&&this.o.show()};
R5.prototype.da=function(){R5.L.da.call(this);this.o&&this.o.da()};
R5.prototype.D=function(a){if(vy(a,this.B,!wy(T(this.B)))){a={as3:!1,html5:!0,player:!0,cpn:this.B.getVideoData().clientPlaybackNonce};var b=this.B;b.va("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.Ia()&&yy(b)}};
R5.prototype.O=function(){R5.L.O.call(this)};y(U5,Q);y(W5,Q);W5.prototype.show=function(){W5.L.show.call(this);this.G()};
W5.prototype.da=function(){W5.L.da.call(this);this.F.stop()};
W5.prototype.G=function(){var a=hq(this.o),b=this.o.getVideoData(),c=this.o.D.o,d=this.o.T,e=jI(d),f=this.o.ga.I.Ha(),k=8*db(f)/1024,m=b.sa&&this.o.T.experiments.showEndToEndLatency,l,p=this.o;l=(p=p.g&&p.g.M)?p.o.Ha():[0];var t=db(l),p=a.Ja.Ha(),u=db(p),t=120<t||0>t?"Uncertain":t.toFixed(1)+" s, "+(b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming"),x=a.F?a.F.b:null,B=x&&x.b,C=window.devicePixelRatio||1,H=b.videoId,L=b.clientPlaybackNonce,R=b.clientPlaybackNonce?
"":"display:none",e=e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.B?dK(a.B):"",ra;a:{if(b.xg&&(ra=b.xg.match(/url=(https?)/))&&2==ra.length){ra=ra[1];break a}ra=""}c={video_id:H,cpn:L,cpn_style:R,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:ra||d.aa,dimensions:c.clientWidth+" x "+c.clientHeight+(1<C?" * "+C:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.o.Oa.Db())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",buffer_health_seconds:u.toFixed(1)+
" s",live_latency_style:m?"":"display:none",live_latency_message:t,drm_style:B?"":"display:none",drm:B?x.b+" / "+x.A:""};b.A&&(d=Cr(b.A)?"yes":"no",d+=" ("+zr(b.A),b.C&&Cr(b.A)&&(d+="/"+zr(b.C)),c.dash=d+")",c.mime=b.A.mimeType,b=b.A.video.fps,1<b&&(c.resolution+="@"+b));b=this.B;f=V5(b,f);sh(b.o.element,f);f=this.D;l=V5(f,l);sh(f.o.element,l);f=this.C;p=V5(f,p);sh(f.o.element,p);this.update(c);this.F.start()};X5.prototype.isDisposed=function(){return!this.A};
X5.prototype.dispose=function(){Y5(this);delete this.A};y(Z5,or);Z5.prototype.H=function(a){this.B&&this.B(a)?this.A=!0:this.g.isActive()?(this.g.stop(),this.o(a),this.A=this.b=!1):(this.C=a,this.g.start(),this.b=!0)};
Z5.prototype.F=function(a){this.A?this.A=!1:this.b&&this.o(a)};
Z5.prototype.D=function(){this.G(this.C);this.b=!0};y($5,Aq);$5.prototype.C=function(){var a=this.B.rf();this.F.style.width=100*g2(new d2(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
$5.prototype.D=function(){2==this.B.getPresentingPlayerType()?this.o||(this.show(),this.o=this.S(this.B,"progresssync",this.C),this.C()):this.o&&(this.da(),this.qa(this.o),this.o=null)};y(a6,Q);a6.prototype.G=function(){this.element.removeAttribute("aria-hidden");this.da()};
a6.prototype.D=function(){this.show();this.B.start()};
a6.prototype.F=function(){this.element.setAttribute("aria-hidden",!0);this.o.start()};y(f6,Q);var Ija={shopping_card_icon_always_visible:["ytp-cards-always-show-teaser-icon"],shopping_card_badge_enabled:["ytp-cards-enable-shop-badge"],shopping_card_icon_with_teaser:["ytp-cards-use-shopping-icon-with-teaser","ytp-cards-icon-teaser-blue"],shopping_card_icon_without_teaser:["ytp-cards-use-shopping-icon-without-teaser"],shopping_card_icon_hover_blue:["ytp-cards-icon-hover-blue"]};f6.prototype.O=function(){this.o&&this.o();f6.L.O.call(this)};
f6.prototype.D=function(){$i("iv-button-mouseover")};
f6.prototype.C=function(a){tz(this.W);var b=ee(this.W.xa(),"ytp-cards-teaser-shown");$i("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.W.Mh(!JL(this.W),a)};y(h6,Aq);h=h6.prototype;h.show=function(){var a=j6(this);h6.L.show.call(this);this.Ca&&(this.ma=this.S(window,"blur",this.kb),this.ra=this.S(window.document,"click",this.nH));a||this.R("show",!0)};
h.da=function(){var a=j6(this);h6.L.da.call(this);i6(this);a&&this.R("show",!1)};
h.vf=function(a,b){this.F=a;this.ea.show();a&&(b&&(this.za=this.S(this.W,"appresize",this.lo),this.lo()),a.getAttribute("aria-haspopup"),a.setAttribute("aria-expanded",!0),window.document.activeElement&&Jf(a,window.document.activeElement)&&this.focus())};
h.lo=function(){O8(this.Y,this.element,this.F)};
h.kb=function(){var a=j6(this);i6(this);this.ea.da();a&&this.R("show",!1)};
h.ye=function(a,b){j6(this)?this.kb():this.vf(a,b)};
h.nH=function(a){var b=lm(a);b&&(Jf(this.element,b)||this.F&&Jf(this.F,b)||!ky(a))||this.kb()};y(l6,h6);h=l6.prototype;h.show=function(){l6.L.show.call(this);this.Ch()};
h.da=function(){l6.L.da.call(this);1>=this.B.length||(this.C.ya("back",this.te,this),vq(this.B[this.B.length-1]),k6(this,this.B[0]),this.B=[this.C],this.C.b(this.element),Gq(this.C.element,"transform","translateX(0)"),Gq(this.C.element,"opacity","1"),this.Ch())};
h.Ch=function(){this.A&&(m6(this),Xq(this.element,this.size))};
h.te=function(){var a=this.B.pop();n6(this,a,this.B[this.B.length-1],!0)};
h.lE=function(a,b,c){this.J.dispose();this.J=null;p6(this,!0,[a,b]);Gq(a.element,"transform","translateX("+c+"px)");Gq(a.element,"opacity","0");Gq(b.element,"transform","translateX(0)");Gq(b.element,"opacity","1");Xq(this.element,this.size);this.H=new be(qa(this.jH,a,b),250,this);this.H.start()};
h.jH=function(a,b){p6(this,!1,[a,b]);vq(a);this.H.dispose();this.H=null};
h.kH=function(a){if(!pm(a))switch(qm(a)){case 27:this.kb();om(a);break;case 37:1<this.B.length&&this.te();om(a);break;case 39:om(a)}};
h.focus=function(){this.C.focus()};
h.O=function(){l6.L.O.call(this);this.J&&this.J.dispose();this.H&&this.H.dispose()};y(q6,Aq);q6.prototype.remove=function(a){qb(this.o,a);a.ya("size-change",this.B,this);a=tb(this.o);this.Mb(a);this.R("size-change")};
q6.prototype.B=function(){this.R("size-change")};
q6.prototype.focus=function(){for(var a=0,b=0;b<this.o.length;b++)if("true"==this.o[b].element.getAttribute("aria-checked")){a=b;break}this.o[a].focus()};y(t6,Aq);t6.prototype.g=function(a,b){t6.L.g.call(this,a,b);this.R("size-change")};y(v6,Aq);v6.prototype.D=function(){this.R("size-change")};
v6.prototype.focus=function(){this.F.focus()};
v6.prototype.I=function(){this.R("back")};y(w6,t6);w6.prototype.o=function(a){pm(a)||39!=qm(a)||(this.element.click(),om(a))};y(y6,t6);y6.prototype.I=function(){z6(this,!this.o);this.R("select",this.o)};
y6.prototype.getValue=function(){return this.o};y(A6,l6);h=A6.prototype;h.da=function(){qr(this.ga);A6.L.da.call(this)};
h.Pz=function(a){ky(a)&&this.o.pauseVideo();this.kb()};
h.PA=function(a){if("gvn"!=T(this.o).b){var b=lm(a);if(!this.A&&(!b||"A"!=b.tagName&&!Tf(b,"ytp-no-contextmenu"))){om(a);this.G||(this.G=!0,this.U=new w6(8),G(this,this.U),r6(this.D,this.U,!0),this.U.N("click",this.qB,this),this.P=new w6(7),G(this,this.P),r6(this.D,this.P,!0),this.P.N("click",this.pB,this),this.M=new w6(6),G(this,this.M),r6(this.D,this.M,!0),this.M.N("click",this.nB,this),this.Z=new y6(P("YTP_LOOP"),5),G(this,this.Z),r6(this.D,this.Z,!0),this.Z.N("click",this.FB,this),this.ca=new t6(u6({href:"{{href}}",
target:"_blank"},void 0,!0),4,P("YTP_REPORT_ISSUE")),G(this,this.ca),r6(this.D,this.ca,!0),this.ca.N("click",this.yC,this),this.aa=new w6(3),G(this,this.aa),r6(this.D,this.aa,!0),this.aa.N("click",this.mB,this),b=new t6(u6(),2,P("YTP_SHOW_VIDEO_INFO")),G(this,b),r6(this.D,b,!0),b.N("click",this.LC,this),b="//"+gI(T(this.o))+"/html5",b=new t6(u6({href:b,target:"_blank"},void 0,!0),1,P("YTP_HTML5_CONTEXT_MENU_LINK")),G(this,b),r6(this.D,b,!0),b.N("click",this.Pz,this),this.S(this.o,"fullscreentoggled",
this.VG),this.S(this.o,"loopchange",this.EB),this.S(this.o,"pageTransition",this.$B),this.S(this.o,"videodatachange",this.WG),this.S(this.K.element,"click",this.QA),C6(this),E6(this,this.o.getVideoData()),B6(this));this.element.style.left="";this.element.style.top="";var c=nm(a);c.x++;c.y++;this.vf();b=Rq(window.document.body);a=this.size;c=c.clone();a=a.clone();if(b){var d=c,e=a,f=5;65==(f&65)&&(d.x<b.left||d.x>=b.right)&&(f&=-2);132==(f&132)&&(d.y<b.top||d.y>=b.bottom)&&(f&=-5);d.x<b.left&&f&1&&
(d.x=b.left);if(f&16){var k=d.x;d.x<b.left&&(d.x=b.left);d.x+e.width>b.right&&(e.width=Math.min(b.right-d.x,k+e.width-b.left),e.width=Math.max(e.width,0))}d.x+e.width>b.right&&f&1&&(d.x=Math.max(b.right-e.width,b.left));d.y<b.top&&f&4&&(d.y=b.top);f&32&&(k=d.y,d.y<b.top&&(d.y=b.top),d.y+e.height>b.bottom&&(e.height=Math.min(b.bottom-d.y,k+e.height-b.top),e.height=Math.max(e.height,0)));d.y+e.height>b.bottom&&f&4&&(d.y=Math.max(b.bottom-e.height,b.top))}b=new fg(0,0,0,0);b.left=c.x;b.top=c.y;b.width=
a.width;b.height=a.height;Mq(this.element,jg(b));this.ga.S(window.document,"contextmenu",this.XA)}}};
h.QA=function(){zq(this.K.element)};
h.XA=function(a){pm(a)||Jf(this.element,lm(a))||this.kb()};
h.VG=function(){this.kb();B6(this)};
h.mB=function(){D6(this,this.o.Oj(!0))&&b6(this.Y.D,'<svg height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><path d="M13.5 24.3L7.2 18.0l-2.1 2.1L13.5 28.5 31.5 10.5l-2.1-2.1L13.5 24.3z" fill="#fff" /></svg>')};
h.nB=function(){D6(this,this.o.Js())&&b6(this.Y.D,th?'<div class="ytp-icon ytp-icon-code"></div>':'<svg height="100%" viewBox="0 0 36 36" width="100%"><path d="M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z" fill="#fff" /></svg>')};
h.qB=function(){D6(this,this.o.getVideoUrl(!0,!0))&&b6(this.Y.D,zh())};
h.pB=function(){D6(this,this.o.getVideoUrl(!1,!0))&&b6(this.Y.D,zh())};
h.EB=function(a){z6(this.Z,a)};
h.FB=function(){var a=this.Z.getValue();s9(this.o.app,a);this.kb()};
h.$B=function(){this.kb()};
h.yC=function(a){var b=this.o,c=hq(b.app);c&&c.Mj(new bw("feedback",!1,{gpu:y9(b.app)}));vy(a,this.o,!wy(T(this.o)))&&(a=this.o,b={as3:!1,html5:!0,player:!0},c=a.ep(),c.debug_error&&(b.player_error=c.debug_error.errorCode,b.player_error_details=c.debug_error.errorDetail),b.debug_text=a.Oj(!0),a.va("onFeedbackStartRequest",b),a.Ia()&&yy(a));this.kb()};
h.LC=function(){this.o.Os();this.kb()};
h.WG=function(a,b){E6(this,b)};y(F6,kr);h=F6.prototype;h.show=function(){this.A||(this.D.S(this.o,"videodatachange",this.C.we,this.C),this.D.S(this.o,"videoplayerreset",this.C.we,this.C));F6.L.show.call(this)};
h.da=function(){qr(this.D);F6.L.da.call(this)};
h.YG=function(a){var b=T(this.o);b.experiments.$("disable_new_pause_state3")&&wy(b)&&(a=gz(a.state)&&!gz(a.b)||DL(this.o)&&U(a.state,2),Gq(this.element,"transition-delay",a?"2s":""));this.C.we()};
h.XG=function(){this.element.style.backgroundImage=""};
h.eu=function(){3==this.o.getPresentingPlayerType()?this.B.show():G6(this.B,this.o,Xz(this.o));this.A&&3!=this.B.b&&this.uE(this.o.Ic(),this.o.getVideoData())};
h.uE=function(a){for(var b=T(this.o),c,d=0;d<arguments.length;d++){var e=arguments[d];if(!(!e||e instanceof ox&&!e.videoId)){c=pF(this.o).Da();var f=c.width,k=c.height;if(900<f||600<k)if(c=e.oc(b,"maxresdefault.jpg"))break;if(430<f||320<k)if(c=e.oc(b,"sddefault.jpg")||e.oc(b,"hqdefault.jpg")||e.oc(b,"mqdefault.jpg"))break;if(c=e.oc(b,"default.jpg"))break}}this.element.style.backgroundImage=c?"url("+c+")":""};y(H6,or);
H6.prototype.C=function(a){var b=!1,c=qm(a),d=lm(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,m=T(this.b);pm(a)?(e=!1,k=!0):m.ub&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName||"INPUT"==d.tagName)b=!0,e=!1;else if(e){var l=d.getAttribute("role");!l||"option"!=l&&"button"!=l&&0!=l.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:l=d.getAttribute("role"),d=38==
c?d.previousSibling:d.nextSibling,"slider"==l?b=!0:e&&("option"==l?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):l&&0==l.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(this.o&&this.o.A&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:f=$6(this.o,c)}m.Sb||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.A+=f,0=="awesome".indexOf(this.A)?(f=!0,7==this.A.length&&(l=this.b.xa(),d=!ee(l,"ytp-color-party"),
K(l,"ytp-color-party",d))):(this.A=f,f=0=="awesome".indexOf(this.A)));if(e&&!f){switch(c){case 32:c6(this.g);Zy(Xz(this.b))?this.b.pauseVideo():this.b.ed();k=f=!0;break;case 37:b6(this.g,th?'<div class="ytp-icon ytp-icon-rewind-five-seconds"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-36" /><path class="ytp-svg-fill" d="M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z" id="ytp-svg-36" /></svg>');
this.b.fd(-5);k=f=!0;break;case 39:b6(this.g,th?'<div class="ytp-icon ytp-icon-forward-five-seconds"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-10" /><path class="ytp-svg-fill" d="m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z" id="ytp-svg-10" /></svg>');
this.b.fd(5);k=f=!0;break;case 38:k=Math.min(this.b.Db()+5,100);d6(this.g,k,!1);this.b.setVolume(k);k=f=!0;break;case 40:k=Math.max(this.b.Db()-5,0);d6(this.g,k,!0);this.b.setVolume(k);k=f=!0;break;case 27:this.G()&&(k=f=!0);break;case 36:this.b.seekTo(0);k=f=!0;break;case 35:this.b.seekTo(window.Infinity),k=f=!0}if("3"!=m.A)switch(c){case 67:zL(this.b.app.B,"captions")&&(f=this.b.zb("captions","track"),EL(this.b),k=this.g,f=f&&f.displayName?P("YTP_SUBTITLES_OFF"):P("YTP_SUBTITLES_ON"),b6(k,Jh(),
f),k=f=!0);break;case 66:L6(this,"background")&&(f=!0);break;case 79:L6(this,"textOpacity")&&(f=!0);break;case 87:L6(this,"windowOpacity")&&(f=!0);break;case 187:L6(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:L6(this,"fontSizeIncrement",!0,!0)&&(f=!0)}var p;48<=c&&57>=c?p=c-48:96<=c&&105>=c&&(p=c-96);null!=p&&(k=this.b.rf(),this.b.seekTo(p/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.B(!0);(b||k)&&this.F.rb(2,!0);(f||e&&J6(this,c,a.shiftKey))&&om(a);m.Ma&&(a={keyCode:qm(a),
altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:pm(a),fullscreen:this.b.Ia()},this.b.va("onKeyPress",a))};
H6.prototype.D=function(a){a=qm(a);this.o&&this.o.A&&a7(this.o,a);9==a&&this.B(!0)};
H6.prototype.B=function(a){K(this.b.xa(),"ytp-keyboard-focus",a);K(this.H.element,"ytp-keyboard-focus",a)};y(N6,Q);N6.prototype.D=function(a){var b=T(this.o);b.experiments.$("disable_new_pause_state3")&&wy(b)&&Gq(this.element,"transition-delay",gz(a.state)&&!gz(a.b)?"2s":"");M6(this,a.state)};y(O6,Q);O6.prototype.C=function(a){vy(a,this.o)&&this.o.pn(this.B)};y(P6,h6);h=P6.prototype;h.show=function(){P6.L.show.call(this);this.B.addEventListener("videodatachange",this.Sh,this);this.B.addEventListener("onPlaylistUpdate",this.Sh,this);this.Sh()};
h.da=function(){P6.L.da.call(this);this.B.removeEventListener("videodatachange",this.Sh,this);this.B.removeEventListener("onPlaylistUpdate",this.Sh,this);Q6(this,null)};
h.Sh=function(){Q6(this,this.B.Ic());var a=this.o.author;this.update({title:this.o.title,subtitle:P(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.o.Pb()+1,PLAYLIST_LENGTH:this.o.A}),playlisturl:this.B.getVideoUrl(!0)});this.Bm()};
h.Bm=function(){var a=this.o.G;if(a==this.G)this.D.element.setAttribute("aria-checked",!1),this.D=this.C[this.o.Pb()];else{for(var b=0;b<this.C.length;b++)this.C[b].dispose();var c=this.o.A;this.C=[];for(b=0;b<c;b++){var d=new O6(this.B,this.o,b);this.C.push(d);d.b(this.H)}this.D=this.C[this.o.Pb()];this.G=a}this.D.element.setAttribute("aria-checked",!0)};
h.WC=function(a){var b=this.B.getVideoUrl(!0);zy(b,this.B,a)};
h.focus=function(){this.D.focus()};
h.O=function(){this.da();P6.L.O.call(this)};y(R6,Q);R6.prototype.B=function(){this.o&&2!=this.C.getPresentingPlayerType()&&400<=pF(this.C).Da().width?(this.update({text:P("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.o.Pb()+1,PLAYLIST_LENGTH:this.o.A}),title:P("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.o.title})}),this.A||(this.show(),x7(this.D))):this.A&&(this.da(),x7(this.D))};
R6.prototype.F=function(){this.o&&this.o.ya("shuffle",this.B,this);(this.o=this.C.Ic())&&this.o.subscribe("shuffle",this.B,this);this.B()};y(S6,Q);S6.prototype.C=function(a){this.Xa(U(a.state,2))};
S6.prototype.B=function(){Xz(this.o);this.o.ed()};y(T6,h6);h=T6.prototype;h.cC=function(a){a=lm(a);Jf(this.I,a)||Jf(this.D,a)||this.ye()};
h.kb=function(){T6.L.kb.call(this);this.C.Cf(this.element)};
h.show=function(){var a=this.A;T6.L.show.call(this);this.ou();a||this.B.va("onSharePanelOpened")};
h.ou=function(){J(this.element,"ytp-share-panel-loading");he(this.element,"ytp-share-panel-fail");var a=this.B.getVideoData(),b=this.B.Ce(),c=b&&this.H.checked;K(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=T(this.B);e.Eb&&(d.authuser=e.Eb);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);Sj(T(this.B).baseYtUrl+"share_ajax",{method:"GET",onError:w(this.nu,this),ab:w(function(a,b){if(b){if(b.actions&&S5(b.actions),!this.isDisposed()){he(this.element,
"ytp-share-panel-loading");U6(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var t=c[e],u=Kja(t.img);if(u){var x=new Q(["a",["ytp-share-panel-service-button","ytp-button"],["span","ytp-share-panel-service-button-icon"],{href:t.url,target:"_blank",title:t.sname}]);sh(x.la["ytp-share-panel-service-button-icon"],u);x.N("click",qa(this.FC,t.url));Mb(x,g6(this.C,x.element));this.o.push(x);d++}}c=new Q(["a",["ytp-share-panel-service-button","ytp-button"],["span",["ytp-share-panel-service-button-icon",
"ytp-share-panel-service-button-more"]],{href:b.more,target:"_blank",title:P("YTP_MORE")}]);sh(c.la["ytp-share-panel-service-button-icon"],th?'<div class="ytp-icon ytp-icon-share-more"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z" fill="#4e4e4f" fill-rule="evenodd" /></svg>');
c.N("click",w(this.LB,this,b.more));Mb(c,g6(this.C,c.element));this.o.push(c);this.g("buttons",this.o)}}else this.nu()},this),
dd:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.g("link",a);this.g("linkText",a);zq(this.G)};
h.nu=function(){he(this.element,"ytp-share-panel-loading");J(this.element,"ytp-share-panel-fail")};
h.FC=function(a,b){if(ky(b)){var c={};c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d=c;d||(d={});var c=window,e;e=a instanceof Ae?a:Ee("undefined"!=typeof a.href?a.href:String(a));var f=d.target||a.target,k=[],m;for(m in d)switch(m){case "width":case "height":case "top":case "left":k.push(m+"="+d[m]);break;case "target":case "noreferrer":break;default:k.push(m+"="+(d[m]?1:0))}m=k.join(",");(tc()||rc("iPad")||rc("iPod"))&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f?(m=c.document.createElement("A"),df(m,e),m.setAttribute("target",f),d.noreferrer&&m.setAttribute("rel","noreferrer"),e=window.document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),m.dispatchEvent(e),c={}):d.noreferrer?(c=c.open("",f,m),e=Be(e),c&&(TG&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=Cj(ve("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Ha(e)+'">'),c.document.write(Le(e)),c.document.close())):
c=c.open(Be(e),f,m);c&&(c.opener||(c.opener=window),c.focus());om(b)}};
h.LB=function(a,b){if(zy(a,this.B,b)){var c=this.B.app,d=c.getVideoData();c.b.va("SHARE_CLICKED",{videoId:d.videoId,listId:d.playlistId,feature:"player_"+c.T.ua})}};
h.yH=function(a){!a&&j6(this)&&this.ye()};
h.focus=function(){this.G.focus()};
h.O=function(){T6.L.O.call(this);U6(this)};y(V6,Q);V6.prototype.B=function(){var a=T(this.o).Ke&&2!=this.o.getPresentingPlayerType();K(this.C,"ytp-share-button-visible",!!this.o.getVideoData().videoId&&300<=pF(this.o).Da().width&&!a)};
V6.prototype.O=function(){V6.L.O.call(this);he(this.C,"ytp-share-button-visible")};y(W6,Q);h=W6.prototype;
h.Bn=function(){var a=GL(this.o).shader;"Spherical"==a||"Spherical3D"==a?this.A||(a=pF(this.o).B,J(this.o.xa(),"ytp-webgl-spherical"),this.show(),this.D=new a2(a,!0,null,!0),this.D.subscribe("dragstart",this.$A,this),this.D.subscribe("dragmove",this.Bq,this),this.D.subscribe("dragend",this.ZA,this),this.C=new a2(this.element,!0),this.C.subscribe("dragstart",this.bC,this),this.C.subscribe("dragend",this.aC,this),this.Z=this.N("keydown",this.BH),this.aa=this.N("keyup",this.wB),this.S(a,"click",this.AH,
this)):this.A&&(Y6(this),he(this.o.xa(),"ytp-webgl-spherical"),this.da(),this.D.dispose(),this.D=null,this.C.dispose(),this.C=null,this.qa(this.Z),this.qa(this.aa))};
h.bC=function(a,b,c){Y6(this);var d=Qq(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?X6(this,0<a?-1:1,0,0):X6(this,0,0<b?-1:1,0)};
h.aC=function(){Y6(this);this.B=2;this.F.start()};
h.$A=function(a,b){Y6(this);this.M=!1;this.Y=new $e(a,b);J(this.o.xa(),"ytp-dragging")};
h.Bq=function(a,b){var c=new $e(a,b),d;d=this.Y;d=new $e(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.M=!0);this.Y=c;var c=GL(this.o),e=c.fov,f=Math.PI*e*.8,k=pF(this.o).Da();d.scale(1/k.width*f,1/k.height*f);Z6(this,c.yaw+d.x,c.pitch+d.y,e,c,D())};
h.ZA=function(a,b){this.Bq(a,b);he(this.o.xa(),"ytp-dragging");this.B=2;this.F.start()};
h.AH=function(a){this.M&&(a.stopPropagation(),this.M=!1)};
h.zH=function(a){var b=GL(this.o),c=b.yaw,d=b.pitch,e=b.fov;if(1==this.B)var f=.003*e*(a-this.K),c=c+f*this.X,d=d+f*this.U,e=e+f*this.P;else if(2==this.B){if(1E-5>Math.abs(this.J)&&1E-5>Math.abs(this.H)){this.B=this.H=this.J=0;return}f=a-this.K;f/=Math.pow(1.013,f);c+=f*this.J;d+=f*this.H}Z6(this,c,d,e,b,a);this.F.start()};
h.BH=function(a){!pm(a)&&$6(this,qm(a))&&om(a)};
h.wB=function(a){a7(this,qm(a))};
h.O=function(){this.C&&(this.D.dispose(),this.D=null,this.C.dispose(),this.C=null);W6.L.O.call(this)};y(c7,Q);h=c7.prototype;h.show=function(){c7.L.show.call(this)};
h.da=function(){this.o.stop();this.C.style.display="none";c7.L.da.call(this)};
h.CH=function(a){b7(this,a.state)};
h.jB=function(){b7(this,Xz(this.B))};
h.jC=function(){this.C.style.display="block"};y(d7,Q);d7.prototype.C=function(){var a=hq(this.o.app);a&&a.g.b.webkitShowPlaybackTargetPicker()};
d7.prototype.B=function(){var a=hq(this.o.app);this.Xa(!!a&&a.Za);(a=hq(this.o.app))&&a.Ua?sh(this.element,th?'<div class="ytp-icon ytp-icon-airplay-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-1" /><path d="m 12,29 12,0 -6,-6 -6,6 0,0 0,0 z M 27,10 9,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 4,0 0,-2 -4,0 0,-12 18,0 0,12 -4,0 0,2 4,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 0,0 z m -16,4 14,0 0,8 -14,0 0,-8 0,0 0,0 z" fill="#fff" id="ytp-svg-1" /></svg>'):
sh(this.element,th?'<div class="ytp-icon ytp-icon-airplay-off"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-0" /><path class="ytp-svg-fill" d="m 12,29 12,0 -6,-6 -6,6 z M 27,10 9,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 4,0 0,-2 -4,0 0,-12 18,0 0,12 -4,0 0,2 4,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z" id="ytp-svg-0" /></svg>')};y(e7,Aq);e7.A=84;e7.o=10;e7.B=72;e7.b=200;e7.g=.555;h=e7.prototype;h.Zw=function(){f7(this,this.C.getVideoData())};
h.lx=function(){this.K.da()};
h.bk=function(){this.B=Math.floor(this.G/Math.min(10,Math.ceil(this.G/72)));this.P=.555*this.B;var a=this.C.rf(),b=Ku(this.o,this.B),b=this.o.b[b].ak(a.current);if(b!=this.M){var c=Math.round(2*this.B),d=Math.round(2*this.P),e=Mu(this.o,b,c),c=i2(this.ea,e,c,d,!0);Mq(this.ca,(this.G-c.width)/2);this.element.style.height=Lq(c.height+84,!0);this.M=b}Lf(this.ga,jy(this.Y?a.current-a.seekableEnd:a.current));nv(this.J);a=w(this.Bj,this);this.J=mv(a,void 0);this.U.Of()};
h.aH=function(a,b){f7(this,b)};
h.Bj=function(){S(this.D,!1);nv(this.J);var a=this.C.rf(),b=this.o.b[0].Wt(),c=this.o.b[0].xn(),a=a.current/(a.seekableEnd-a.seekableStart)*(c-b+1)*this.B-this.G/2,d=Math.floor(a/this.B)+b,c=Math.min(d+Math.min(10,Math.ceil(this.G/this.B)),c),d=Math.max(d,b),e;if(this.H>=d&&this.F<=c){for(e=this.H;e>c;e--)Bf(this.D.children[e-this.F]);for(e=d-1;e>=this.F;e--)Bf(this.D.children[e-this.F]);for(e=this.F-1;e>=d;e--)this.D.insertBefore(g7(this,e),this.D.firstChild);e=this.H+1}else zf(this.D),e=d;for(;e<=
c;e++)this.D.appendChild(g7(this,e));for(e=d;e<=c;e++)Gq(this.D.children[e-d],"transform","translatex("+(-a+(e-b)*this.B)+"px)");this.F=d;this.H=c;S(this.D,!0)};
h.$G=function(){for(var a=this.F;a<=this.H;a++)Ou(this.o,a,2*this.B)};
h.ZG=function(){var a=pF(this.C).Da();this.G!=a.width&&(this.G=a.width,this.o&&(this.bk(),this.Bj()))};
h.bH=function(a){this.element.style.bottom=a+"px"};
h.show=function(){e7.L.show.call(this);K8(this.Z,!1)};
h.da=function(){this.o&&f7(this,null);e7.L.da.call(this);K8(this.Z,!0)};
h.O=function(){f7(this,null);e7.L.O.call(this)};y(h7,Q);h=h7.prototype;h.dH=function(){j7(this,this.o.getVideoData())};
h.eH=function(){this.A||this.D.da()};
h.gH=function(a){U(a.state,32)||U(a.state,16)||U(a.state,1)||this.D.da()};
h.hH=function(a,b){j7(this,b)};
h.fH=function(){var a=Xz(this.o);(U(a,32)||U(a,16))&&i7(this)};
h.cH=function(){this.F=window.NaN;i7(this)};
h.da=function(){this.B&&j7(this,null);h7.L.da.call(this)};y(l7,Q);h=l7.prototype;h.iH=function(){T(this.B).ka?(IL(this.B,this.B.Ia()?"fullscreen_exit":"fullscreen_enter"),yy(this.B)):this.o.ye(this.element,!0)};
h.lB=function(){k7(this);this.o.vf(this.element,!0)};
h.fu=function(){this.Xa(uy(this.B))};
h.Sr=function(a){a?(sh(this.element,th?'<div class="ytp-icon ytp-icon-full-screen-close"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-16" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-17" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-18" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-19" /><path class="ytp-fullscreen-close-button-corner-0" d="m 13.42,13.42 -3.42,0 0,2.28 5.71,0 0,-5.71 -2.28,0 0,3.42 0,0 z" fill="#fff" id="ytp-svg-16" /><path class="ytp-fullscreen-close-button-corner-1" d="m 22.57,13.42 0,-3.42 -2.28,0 0,5.71 5.71,0 0,-2.28 -3.42,0 0,0 z" fill="#fff" id="ytp-svg-17" /><path class="ytp-fullscreen-close-button-corner-2" d="m 20.28,26 2.28,0 0,-3.42 3.42,0 0,-2.28 -5.71,0 0,5.71 0,0 z" fill="#fff" id="ytp-svg-18" /><path class="ytp-fullscreen-close-button-corner-3" d="m 10,22.57 3.42,0 0,3.42 2.28,0 0,-5.71 -5.71,0 0,2.28 0,0 z" fill="#fff" id="ytp-svg-19" /></svg>'),
a=P("YTP_EXIT_FULLSCREEN"),window.document.activeElement==this.element&&this.B.xa().focus()):(sh(this.element,th?'<div class="ytp-icon ytp-icon-full-screen"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow ytp-fullscreen-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-12" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-13" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-14" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-15" /><path class="ytp-fullscreen-button-corner-0" d="m 10,15.71 2.28,0 0,-3.42 3.42,0 0,-2.28 L 10,10 l 0,5.71 0,0 z" fill="#fff" id="ytp-svg-12" /><path class="ytp-fullscreen-button-corner-1" d="m 20.28,10 0,2.28 3.42,0 0,3.42 2.28,0 L 26,10 l -5.71,0 0,0 z" fill="#fff" id="ytp-svg-13" /><path class="ytp-fullscreen-button-corner-2" d="m 23.71,23.71 -3.42,0 0,2.28 L 26,26 l 0,-5.71 -2.28,0 0,3.42 0,0 z" fill="#fff" id="ytp-svg-14" /><path class="ytp-fullscreen-button-corner-3" d="M 12.28,20.28 10,20.28 10,26 l 5.71,0 0,-2.28 -3.42,0 0,-3.42 0,0 z" fill="#fff" id="ytp-svg-15" /></svg>'),
a=P("YTP_FULLSCREEN"));this.g("title",this.o?null:a);x7(this.D.g)};
h.O=function(){this.o||(this.C(),this.C=null);l7.L.O.call(this)};y(m7,Q);m7.prototype.H=function(a){this.D("newdata"==a)};
m7.prototype.D=function(a){var b=this.B.getVideoData(),c=b.J,d=Xz(this.B),d=(Zy(d)||U(d,4))&&0<c.length;this.Xa(d);a&&(this.o=!0);if(d){this.o&&this.F.we();a=null;for(var d="",e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=P("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.oc(T(this.B),"default.jpg")});x7(this.C)}};
m7.prototype.G=function(){M8(this.C,this.element,P("YTP_MORE_CAMERAS_AVAILABLE"));this.o=!1};y(n7,h6);h=n7.prototype;h.show=function(){var a=this.A;n7.L.show.call(this);a||(this.C.S(this.o,"presentingplayerstatechange",this.An),this.C.S(this.o,"videodatachange",this.An),this.An())};
h.da=function(){qr(this.C);n7.L.da.call(this)};
h.An=function(){for(var a=this.o.getVideoData(),b=a.J,c=0;c<b.length;c++){var d=this.B[c];d||(d=new Q(["button",["ytp-multicam-menu-item","ytp-button"],{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},["div","ytp-multicam-menu-item-title","{{cameraName}}"]]),d.N("click",qa(this.AA,c),this),d.b(this.D),this.B[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=iI(T(this.o),f,"default.jpg"));d.element.style.backgroundImage=k?"url("+k+")":""}d.update({cameraName:e.title,
videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.B.length;)this.B.pop().dispose();a=Xz(this.o);Zy(a)||U(a,4)||b.length||!j6(this)||this.ye()};
h.AA=function(a){var b=this.o,c=this.o.getVideoData().J[a];a=hq(b.app,1).getVideoData();if(T(b).experiments.$("legacy_multicam_switch"))b.Vj({videoId:c.id,title:a.title,start:a.sa?null:b.getCurrentTime(),multifeed_metadata_list:a.o.multifeed_metadata_list});else{var d=b.getCurrentTime();if(c.id==a.videoId)c=hq(b.app,1),hq(b.app)!=c&&(a5(b.app,c),a.sa||b.seekTo(d));else{var e=hq(b.app,4);e||(e=new EK(T(b),4,b.app.I,pF(b),w(b.app.J.R,b.app.J)));hq(b.app)!=e&&a5(b.app,e);F9(b.app,{videoId:c.id,title:a.title,
start:a.sa?null:d,multifeed_metadata_list:a.o.multifeed_metadata_list},4)}}};
h.focus=function(){for(var a=this.o.getVideoData(),b=a.J,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.B[c].focus();break}};
h.O=function(){Ob(this.B);n7.L.O.call(this)};o7.prototype.clone=function(){return new o7(this.A,this.D,this.b,this.B,this.g,this.C,this.o,this.F)};
o7.prototype.Na=function(a){return this.A==a.A&&this.D==a.D&&this.b==a.b&&this.B==a.B&&this.g==a.g&&this.C==a.C&&this.o==a.o&&this.F==a.F};y(p7,F);var Z$=new o7(0,0,.4,0,.2,1,1,1);p7.prototype.g=function(){var a=Bt()-this.B,a=a<this.b?a/this.b:1,b;if(0==a)b=Z$.A;else if(1==a)b=Z$.o;else{b=We(Z$.A,Z$.b,a);var c=We(Z$.b,Z$.g,a),d=We(Z$.g,Z$.o,a);b=We(b,c,a);c=We(c,d,a);b=We(b,c,a)}this.A(b);1>a&&this.o.start()};
var Lja=/[0-9.-]+|[^0-9.-]+/g;y(v7,Q);
var Mja=["M",18.78,",",18," C",18.78,",",18," ",18.78,",",18," ",18.78,",",18," l",0,",",0," C",18.78,",",18," ",18.78,",",18," ",18.778,",",18," z"],Nja=["M",21,",",18," C",21,",",16.43," ",20.01,",",15.08," ",18.78,",",14.42," l",0,",",7.16," C",20.1,",",20.92," ",21,",",19.57," ",21,",",18," z"],Oja=["M ",18.78,",",12.04," ",18.78,",",12.04," C",21.35,",",12.8," ",23.22,",",15.18," ",23.22,",",18," ",23.22,",",20.82," ",21.35,",",23.2," ",18.78,",",23.96," L",18.78,",",23.96," C",21.35,",",23.2,
" ",23.22,",",20.82," ",23.22,",",18," ",23.22,",",15.18," ",21.35,",",12.8," ",18.78,",",12.04," z"],Pja=["M ",18.78,",",10.2," ",18.78,",",12.04," C",21.35,",",12.8," ",23.22,",",15.18," ",23.22,",",18," ",23.22,",",20.82," ",21.35,",",23.2," ",18.78,",",23.96," L",18.78,",",25.8," C",22.34,",",24.99," ",25,",",21.8," ",25,",",18," ",25,",",14.2," ",22.34,",",11.01," ",18.78,",",10.2," z"];v7.prototype.G=function(a){this.Xa(300<=a.width)};
v7.prototype.I=function(){T(this.o).U?this.o.Jc()?(IL(this.o,"unmute"),this.o.unMute()):(IL(this.o,"mute"),this.o.mute()):this.M.ye(this.element,!0)};
v7.prototype.U=function(a){u7(this,a.volume,a.muted)};y(y7,Q);y7.prototype.B=function(){var a=hq(this.o.app);a&&(a=a.g,a.b.webkitSetPresentationMode("picture-in-picture"==a.b.webkitPresentationMode?"inline":"picture-in-picture"))};y(A7,Q);A7.prototype.H=function(a){z7(this,a.state)};
A7.prototype.G=function(){K(this.element,"ytp-play-button-playlist",DL(this.o))};
A7.prototype.I=function(){2==this.B?IL(this.o,"pause"):3==this.B?IL(this.o,"replay"):1==this.B?IL(this.o,"play"):4==this.B&&IL(this.o,"stop");Zy(Xz(this.o))?this.o.pauseVideo():this.o.ed()};
A7.prototype.O=function(){this.C&&this.C();A7.L.O.call(this)};y(C7,Q);h=C7.prototype;h.Hg=function(){D7(this);this.G&&(this.qa(this.G),this.G=null);this.H=this.o.getVideoData(1);if(this.B=this.o.Ic())this.B.subscribe("shuffle",this.Hg,this),this.G=this.S(this.o,"progresssync",this.lH);this.F=E7(this);F7(this);this.gu(pF(this.o).Da())};
h.gu=function(a){var b=DL(this.o)||this.C&&Ey(this.o);this.Xa(b&&(this.C||400<=a.width))};
h.mH=function(a){IL(this.o,this.C?"next":"previous");var b=!0;this.J?b=vy(a,this.o):om(a);b&&(this.C?this.o.Rj(!0):this.F?this.o.seekTo(0):this.o.Sj(!0))};
h.lH=function(){var a=E7(this);a!=this.F&&(this.F=a,F7(this))};
h.O=function(){this.D&&(this.D(),this.D=null);D7(this);C7.L.O.call(this)};y(H7,Aq);h=H7.prototype;h.qH=function(a){if(!pm(a)){var b=!1;switch(qm(a)){case 36:this.B.seekTo(0);b=!0;break;case 35:this.B.seekTo(window.Infinity);b=!0;break;case 34:this.B.fd(-60);b=!0;break;case 33:this.B.fd(60);b=!0;break;case 38:this.B.fd(5);b=!0;break;case 40:this.B.fd(-5),b=!0}b&&om(a)}};
h.hu=function(a,b){G7(this,b,"newdata"==a)};
h.Sx=function(){this.hu("newdata",this.B.getVideoData())};
h.pH=function(){O7(this.B.getVideoData())?Xz(this.B).Ya()&&P7(this,!0):P7(this,!1)};
h.oH=function(a){0<QB(a,64)||!O7(this.B.getVideoData())?P7(this,!1):Zy(a.state)&&0>QB(a,64)&&P7(this,!0)};
h.tH=function(a,b,c){var d=Qq(this.element),e=R7(this).b,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=g2(this.o,Number(c.getAttribute("data-position")),0)*e+Qq(this.ib).x);this.za.x=a-d.x;this.za.y=b-d.y;c=R7(this);a=f2(this.o,c.g);d=f||jy(this.wa?a-this.o.b:a);b=this.Ca;c=c.position+this.Fa;f=!!f;3==b.o&&b.qc();1!=b.o&&(b.element.className="ytp-tooltip ytp-bottom",b.o=1,b.J&&b.G.show(),b.C=Mx(b.P.getVideoData()),b.C&&b.C.subscribe("l",b.qu,b));b.update({text:d,title:""});K(b.element,"ytp-text-detail",
!!f);d=-1;b.C&&(d=Ku(b.C,96*b.D),d=b.C.b[d].ak(a));P8(b,d);N8(b,!!f,c);K(this.ca,"ytp-hover-progress-shown",!U(Xz(this.B),64));K7(this)};
h.sH=function(){var a=this.Ca;1==a.o&&a.qc();he(this.ca,"ytp-hover-progress-shown")};
h.rH=function(a,b){Oi(this.F);this.F=window.NaN;this.qb=b;J(this.element,"ytp-drag");(this.ma=Zy(Xz(this.B)))&&this.B.pauseVideo()};
h.uH=function(){this.Z=0;he(this.element,"ytp-pull-ui");he(this.element,"ytp-pulling");if(0<this.H){var a=Bt(),b=this.H,c=R7(this).position;Oi(this.F);this.F=yq(w(this.lu,this,a,b,c),0)}this.B.seekTo(f2(this.o,R7(this).g));he(this.element,"ytp-drag");this.ma&&!U(Xz(this.B),2)&&this.B.ed()};
h.lu=function(a,b,c){var d=1-Math.pow(1-(Bt()-a)/200,3),e=c+d*(this.G*this.D-c);if(0>d||1<d)d=1;Q7(this,(1-d)*b,e,this.G);this.F=1>d?yq(w(this.lu,this,a,b,c),0):window.NaN};
h.vH=function(a,b){var c=!1,d=!1,e=R7(this);3600<=e2(this.o)&&(Q7(this,this.qb-b-10,e.position,e.g),d=!0,c=this.H>.1*(this.I?60:40),e=R7(this));K(this.element,"ytp-pull-ui",d);c&&J(this.element,"ytp-pulling");c=0;e.A&&0>=e.position?c=-1:e.B&&e.position>=e.width&&(c=1);(0,window.isNaN)(this.F)||c&&c==this.Z||O(this.F);c&&(this.F=yq(w(this.ku,this,Bt(),this.M),0));this.Z=c;this.B.seekTo(f2(this.o,e.g),!1)};
h.ku=function(a,b){if(this.Z){var c=this.D*(this.aa-1);this.M=Ve(b+this.Z*(Bt()-a)*.3,0,c);J7(this);this.B.seekTo(f2(this.o,R7(this).g),!1);0<this.M&&this.M<c&&(this.F=yq(w(this.ku,this,a,b),0))}};
h.setPosition=function(a,b,c){this.Fa=a;this.D=b;this.I=c;J7(this)};
h.ju=function(){sh(this.K,vh());sh(this.J,vh());J(this.element,"ytp-clip-hover")};
h.iu=function(){sh(this.K,xh());sh(this.J,wh());he(this.element,"ytp-clip-hover")};
h.ck=function(){this.U=0;this.P=window.Infinity;N7(this);I7(this,this.G,this.ea)};
h.mu=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.Y[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.Y[d]=c;this.ga[d]=e;S7(this,c,e);"ytp-chapter-marker"==c.style?this.yb.appendChild(e):this.ub.appendChild(e)}}else U7(this,c)}};
h.wH=function(a){for(var b=0;b<a.length;b++)U7(this,a[b])};
h.O=function(){O(this.F);this.F=window.NaN;M7(this,!1);H7.L.O.call(this)};y(W7,Q);W7.prototype.C=function(a){V7(this,a.state)};y(X7,Q);
X7.prototype.o=function(){var a=!1;-1!=this.W.Jh().indexOf("remote")&&(a=1<this.W.zb("remote","receivers").length);this.Xa(a&&400<=pF(this.W).Da().width);var b=1;a&&this.W.zb("remote","casting")&&(b=2);if(this.B!=b){this.B=b;switch(b){case 1:sh(this.element,th?'<div class="ytp-icon ytp-icon-cast-desktop-off"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-3" /><path d="M 25.77,10 9.77,10 C 8.8,10 8,10.8 8,11.77 l 0,2.66 1.77,0 0,-2.66 16.00,0 0,12.44 -6.22,0 0,1.77 6.22,0 c .97,0 1.77,-0.8 1.77,-1.77 l 0,-12.44 C 27.55,10.8 26.75,10 25.77,10 l 0,0 z M 8,23.33 8,26 10.66,26 C 10.66,24.52 9.47,23.33 8,23.33 l 0,0 z m 0,-3.55 0,1.77 c 2.45,0 4.44,1.99 4.44,4.44 l 1.77,0 C 14.22,22.56 11.44,19.77 8,19.77 l 0,0 z M 8,16.22 8,18 c 4.41,0 8,3.58 8,8 l 1.77,0 c 0,-5.40 -4.38,-9.77 -9.77,-9.77 l 0,0 z" fill="#fff" id="ytp-svg-3" /></svg>');break;
case 2:sh(this.element,uh())}K(this.element,"ytp-remote-button-active",!!this.W.zb("remote","casting"))}};
X7.prototype.C=function(){IL(this.W,"remote");if(this.W.zb("remote","castSelector"))this.W.Ia()&&yy(this.W),this.W.De("remote","castSelector",!0);else{var a=this.D,b=this.element;j6(a)?a.kb():(r8(a),a.I.open(),a.vf(b))}};y(Y7,y6);Y7.prototype.C=function(){zL(this.W.app.B,"iv-module")&&3!=this.W.getPresentingPlayerType()?this.B||(s8(this.D,this),this.B=!0):this.B&&(t8(this.D,this),this.B=!1);z6(this,OM(this.W.app.B))};
Y7.prototype.F=function(a){OM(this.W.app.B);a?this.W.Qj("iv-module"):this.W.Ps("iv-module")};y(Z7,t6);h=Z7.prototype;h.open=function(){o6(this.o,this.K)};
h.gd=function(a){if(this.H){var b=this.B[this.H];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.B[a].element.setAttribute("aria-checked",!0);this.Mb(this.Qc(a));this.H=a};
h.Tb=function(a){this.gd(a);this.R("select",a)};
h.ZB=function(a){"true"!=this.B[a].element.getAttribute("aria-disabled")&&this.Tb(a)};
h.Qc=function(a){return a.toString()};
h.xH=function(a){pm(a)||39!=qm(a)||(this.open(),om(a))};
h.O=function(){Z7.L.O.call(this);for(var a in this.B)this.B[a].dispose()};y(a8,Z7);a8.prototype.G=function(){var a=this.W.Qs();1<a.length?($7(this,zi(a,this.D)),this.J=Ib(a,this.D,this),this.I.Mb(a.length?" ("+a.length+")":""),this.R("size-change"),this.gd(this.D(this.W.Lh())),this.C||(s8(this.o,this),this.C=!0)):this.C&&(t8(this.o,this),this.C=!1)};
a8.prototype.Tb=function(a){a8.L.Tb.call(this,a);this.W.qn(this.J[a]);this.o.te()};
a8.prototype.D=function(a){return a.toString()};y(b8,y6);b8.prototype.C=function(){var a=this.W.getPresentingPlayerType();if(2!=a&&3!=a&&Ey(this.W))this.D||(s8(this.G,this),this.D=!0,this.B.push(this.S(this.W,"videodatachange",this.C)),this.B.push(this.S(this.W,"videoplayerreset",this.C)),this.B.push(this.S(this.W,"onPlaylistUpdate",this.C)),this.B.push(this.S(this.W,"autonavchange",this.F)),this.F(this.W.getVideoData().autonavState));else if(this.D)for(t8(this.G,this),this.D=!1,a=0;a<this.B.length;a++)this.qa(this.B[a])};
b8.prototype.F=function(a){z6(this,1!=a)};
b8.prototype.H=function(a){this.W.app.b.va("onAutonavChangeRequest",1!=(a?2:1))};y(c8,Z7);c8.prototype.D=function(){var a=this.W.getPresentingPlayerType();if(2!=a&&3!=a){for(var a={},b=kL(hq(this.W.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.J=a;a=this.W.Is();b=this.W.getVideoData().A;if(b=!!b&&!Cr(b))b=this.W.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.D);b&&a.unshift("missing-qualities");$7(this,a);if(a.length){this.G();this.C||(s8(this.o,this),this.C=!0);return}}this.C&&(t8(this.o,this),this.C=!1)};
c8.prototype.G=function(){var a=FL(this.W);this.B[a]&&(this.I=this.W.Pj(),this.gd(a),"auto"==a&&this.Mb(this.Qc(a)))};
c8.prototype.Tb=function(a){"missing-qualities"!=a&&(c8.L.Tb.call(this,a),this.W.Tj(a),this.o.kb())};
c8.prototype.Qc=function(a,b){if("missing-qualities"==a)return["a",{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},P("YTP_MISSING_FORMATS")];var c=["div",null,d8(this,a)],d=FL(this.W);b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(d8(this,this.I,["ytp-menu-label-secondary"])));return c};y(e8,Z7);e8.prototype.G=function(){var a=-1!=this.W.Jh().indexOf("remote")?this.W.zb("remote","receivers"):[];1<a.length&&!this.W.zb("remote","castSelector")?(this.I=Ib(a,this.D,this),$7(this,zi(a,this.D)),a=this.W.zb("remote","currentReceiver"),this.gd(this.D(a)),this.C||(s8(this.o,this),this.C=!0)):this.C&&(t8(this.o,this),this.C=!1)};
e8.prototype.D=function(a){return a.key};
e8.prototype.Qc=function(a){return this.I[a].name};
e8.prototype.Tb=function(a){e8.L.Tb.call(this,a);this.W.De("remote","currentReceiver",this.I[a]);this.o.kb()};y(f8,Z7);h=f8.prototype;h.fl=function(a){return a.toString()};
h.Qc=function(a){return"1"==a?P("YTP_NORMAL_SPEED"):a.toString()};
h.pu=function(){var a=this.W.getPresentingPlayerType();2!=a&&3!=a?this.C||(s8(this.o,this),this.C=!0,this.D=this.S(this.W,"onPlaybackRateChange",this.hC),$7(this,zi(this.W.Nj(),this.fl)),this.gd(this.fl(this.W.app.P))):this.C&&(t8(this.o,this),this.C=!1,this.qa(this.D),this.D=null)};
h.hC=function(a){this.gd(this.fl(a))};
h.Tb=function(a){f8.L.Tb.call(this,a);this.W.Kh((0,window.parseFloat)(a),!0);this.o.te()};y(h8,Z7);h8.prototype.gd=function(a){h8.L.gd.call(this,a)};
h8.prototype.D=function(a){return a.option.toString()};
h8.prototype.Qc=function(a){return g8(this.C[a])};
h8.prototype.Tb=function(a){h8.L.Tb.call(this,a);this.R("settingChange",this.G,this.C[a].option)};y(i8,v6);i8.prototype.H=function(a,b){this.R("settingChange",a,b)};
i8.prototype.focus=function(){this.o.focus()};y(k8,Z7);k8.prototype.D=function(a){return a.languageCode};
k8.prototype.Qc=function(a){return this.C[a].languageName||""};
k8.prototype.Tb=function(a){this.R("select",a);a=this.o;var b=a.B.pop(),c=a.B[0];a.B=[c];n6(a,b,c,!0)};y(l8,Z7);h=l8.prototype;h.En=function(a){return cc(a)?"__off__":a.displayName};
h.Qc=function(a){return"__off__"==a?P("YTP_LANGUAGE_OFF"):"__translate__"==a?P("YTP_AUTO_TRANSLATE"):"__contribute__"==a?P("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.C[a]).displayName};
h.Tb=function(a){"__translate__"==a?this.G.open():"__contribute__"==a?(this.W.pauseVideo(),this.W.Ia()&&yy(this.W),a=this.W.getVideoData(),ty(T(this.W).baseYtUrl+"timedtext_video?ref=player&v="+a.videoId)):(this.W.De("captions","track","__off__"==a?{}:this.C[a]),l8.L.Tb.call(this,a),this.o.te())};
h.hE=function(){o6(this.o,this.D)};
h.Th=function(){var a=-1!=this.W.Jh().indexOf("captions"),b=this.W.getVideoData().wa;if(a||b){var c,d;if(a){var e=this.W.zb("captions","track"),f=this.W.zb("captions","tracklist",{includeAsr:!0}),k=this.W.zb("captions","translationLanguages");this.C=Ib(f,this.En,this);c=zi(f,this.En);if(k.length){d=this.G;var m=k;d.C=Ib(m,d.D,d);$7(d,zi(m,d.D));c.push("__translate__")}d=this.En(e)}else this.C={},c=[],d="__off__";c.unshift("__off__");this.C.__off__={};b&&c.unshift("__contribute__");this.C[d]||(this.C[d]=
e,c.push(d));$7(this,c);this.gd(d);a?(j8(this.D,this.W.ll()),this.I.Mb(f.length?" ("+f.length+")":""),this.R("size-change"),a&&k.length&&this.B.__translate__.element.setAttribute("aria-disabled",!!cc(e))):(this.I.Mb(""),this.R("size-change"));this.J||(s8(this.o,this),this.J=!0)}else this.J&&(t8(this.o,this),this.J=!1)};
h.aD=function(a){var b=this.W.zb("captions","track"),b=hc(b);b.translationLanguage=this.G.C[a];this.W.De("captions","track",b)};
h.EH=function(a,b){if("reset"==a)this.W.zr();else{var c={};c[a]=b;c[a+"Override"]=!0;this.W.Qm(c)}j8(this.D,this.W.ll())};y(o8,Z7);var vqa={0:"YTP_THREED_VIEWMODE_2D",1:"YTP_THREED_VIEWMODE_ANAGLYPH"};o8.prototype.Qc=function(a){return P(vqa[(0,window.parseInt)(a,10)])};
o8.prototype.G=function(){var a=GL(this.W);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.C||(this.D=a.shader,s8(this.o,this),this.C=!0,$7(this,[(0).toString(),(1).toString()])),a=a.displayMode,void 0!=a&&this.gd(a.toString())):this.C&&(t8(this.o,this),this.C=!1)};
o8.prototype.Tb=function(a){o8.L.Tb.call(this,a);HL(this.W,{shader:this.D,displayMode:a});this.o.te();this.W.R("webglsettingschanged",GL(this.W))};y(p8,l6);p8.prototype.vf=function(a){r8(this);0<this.D.o.length&&p8.L.vf.call(this,a)};
p8.prototype.show=function(){p8.L.show.call(this);J(this.o.xa(),"ytp-settings-shown")};
p8.prototype.da=function(){p8.L.da.call(this);he(this.o.xa(),"ytp-settings-shown")};y(u8,Q);u8.prototype.C=function(a){this.Xa(this.D&&400<=a.width)};
u8.prototype.F=function(a){IL(this.W,"settings");this.B.A?this.B.kb():(this.W.Qj("captions"),this.B.vf(km(a)))};
u8.prototype.o=function(){var a=this.W.getPresentingPlayerType(),b=2!=a&&3!=a,c=GL(this.W),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&0==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.W.Pj();K(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);K(this.element,"ytp-4k-quality-badge","hd2160"==b);K(this.element,"ytp-5k-quality-badge","hd2880"==b);K(this.element,"ytp-8k-quality-badge","highres"==b);K(this.element,"ytp-3d-badge-grey",a&&c);K(this.element,
"ytp-3d-badge",a&&!c)};y(v8,Q);v8.prototype.G=function(){IL(this.o,this.o.app.ca?"size_small":"size_large");var a=this.o.app,b=!a.ca;Z9(a,!0,b);a.b.va("SIZE_CLICKED",b)};
v8.prototype.B=function(){this.Xa(this.o.app.Ub&&!this.o.Ia()&&3!=this.o.getPresentingPlayerType());if(this.A){var a=this.o.app.ca;if(this.C!=a){var b=a?th?'<div class="ytp-icon ytp-icon-default-view"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-8" /><path d="m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z" fill="#fff" fill-rule="evenodd" id="ytp-svg-8" /></svg>':th?
'<div class="ytp-icon ytp-icon-theater-mode"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-45" /><path d="m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z" fill="#fff" fill-rule="evenodd" id="ytp-svg-45" /></svg>';T(this.o).P||null==this.C?sh(this.element,b):t7(this.F,this.element,b);a=(this.C=a)?P("YTP_DEFAULT_VIEW"):P("YTP_THEATER_MODE");this.g("title",a);x7(this.D)}}};y(w8,Q);w8.prototype.C=function(){IL(this.B,"subtitles");EL(this.B)};
w8.prototype.o=function(){var a=!!zL(this.B.app.B,"captions");this.Xa(a&&300<=pF(this.B).Da().width);a&&this.g("pressed",!!this.B.zb("captions","track").displayName)};y(x8,Q);h=x8.prototype;h.Ig=function(){var a=pF(this.o).Da().width,b=350<=a&&(!this.C||!U(Xz(this.o),64));this.Xa(b);K(this.element,"ytp-time-display-allow-autohide",b&&400>a);b&&(a=this.o.rf(),b=jy(a.current),this.G!=b&&(this.g("currenttime",b),this.G=b),a=jy(a.duration),this.H!=a&&(this.g("duration",a),this.H=a))};
h.GH=function(a){if(this.F!=a){this.F=a;this.Ig();var b=this.D.element;(b.disabled=a)?this.B&&(this.B(),this.B=null,b.removeAttribute("title")):(b.title=P("YTP_GOTO_LIVE_TOOLTIP"),this.B=g6(this.I,this.D.element))}};
h.HH=function(a,b){this.C=b.sa;K(this.element,"ytp-live",this.C);this.Ig()};
h.FH=function(a){a.target==this.D.element?(IL(this.o,"live"),this.o.seekTo(window.Infinity),this.o.ed()):IL(this.o,"time")};
h.O=function(){this.B&&this.B();x8.L.O.call(this)};y(z8,Q);h=z8.prototype;h.JH=function(){var a=rF(this.G);this.I!=a&&(this.I=a,y8(this,this.o.Db(),this.o.Jc()))};
h.tu=function(a){this.Xa(350<=a.width)};
h.RC=function(a){if(!pm(a)){var b=qm(a),c=null;37==b?c=this.D-5:39==b?c=this.D+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=Ve(c,0,100),0==c?this.o.mute():(this.o.Jc()&&this.o.unMute(),this.o.setVolume(c)),om(a))}};
h.KH=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.o.setVolume(this.D+(0>b?-10:10)):this.o.setVolume(this.D+Ve(b/10,-10,10));om(a)};
h.QC=function(){IL(this.o,"volume");A8(this,this.C,!0,this.B,this.G.I);this.U=this.D;this.o.Jc()&&this.o.unMute()};
h.PC=function(a){a-=Qq(this.P).x;this.o.setVolume(100*Ve(a/(this.I?78:52),0,1))};
h.OC=function(){A8(this,this.C,!1,this.B,this.G.I);0==this.D&&(this.o.mute(),this.o.setVolume(this.U))};
h.LH=function(a){y8(this,a.volume,a.muted)};
h.Do=function(){A8(this,this.C,this.F,this.B,this.G.I)};
h.ru=function(a){A8(this,this.C,this.F,a,this.G.I)};
h.Tr=function(a){K(this.element,"ytp-volume-control-hover",a);A8(this,a,this.F,this.B,this.G.I)};
h.O=function(){z8.L.O.call(this);he(this.M,"ytp-volume-slider-active")};y(B8,Q);B8.prototype.B=function(){var a=!!this.o.getVideoData().videoId;this.Xa(a);a&&(a=this.o.getVideoUrl(!0,!1,!1,!0),this.g("url",a))};
B8.prototype.C=function(a){IL(this.o,"youtube");var b=this.o.getVideoUrl(!ky(a),!1,!0,!0);zy(b,this.o,a)};y(C8,or);h=C8.prototype;h.Cn=function(){if(this.H.g){var a=this.o;L7(a);var b=a.B.getCurrentTime();(b<a.U||b>a.P)&&a.ck();this.D.Ig()}};
h.DH=function(){this.Cn()};
h.vE=function(a){K8(this.b.g,!a)};
h.Dn=function(){var a=rF(this.b),b=pF(this.W).Da(),c=12*(rF(this.b)?2:1),d=Math.max(b.width-2*c,100);if(this.G!=b.width||this.F!=a){this.G=b.width;this.F=a;var e=E8(this);this.g.element.style.width=e+"px";this.g.element.style.left=c+"px";this.o.setPosition(c,e,a);this.b.g.aa=e}c=this.A;b=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(rF(this.b)?72:50))));c.wa=Math.min(570*(a?1.5:1),d);c.Aa=b;c.Ch()};
h.fa=function(){return this.g.element};y(F8,Q);F8.prototype.H=function(a){a=400>a.width&&this.o.Ic()&&2!=this.o.getPresentingPlayerType();this.F.style.display=a?"":"none"};
F8.prototype.M=function(a){IL(this.o,"title");var b=this.o.getVideoUrl(!ky(a),!1,!0);zy(b,this.o,a)};
F8.prototype.K=function(a,b,c){var d=c.user_info;d&&(b=d.channel_logo_url||d.image_url,c=d.channel_title||d.username,d=d.channel_url,b&&d&&c&&wx.test(b)&&G8(this,a,c,d,b))};
F8.prototype.C=function(){H8(this);var a=this.o.getVideoData();this.g("title",a.title);!T(this.o).D&&a.videoId?(this.g("url",this.o.getVideoUrl(!0)),this.B||(this.B=this.S(this.J,"click",this.M))):this.B&&(this.g("url",null),this.qa(this.B),this.B=null)};y(I8,Q);h=I8.prototype;h.OB=function(a){3==this.o&&this.qc();a=a.currentTarget;this.o||(a.removeEventListener("mouseover",this.M),a.addEventListener("mouseout",this.Y),L8(this,a,2))};
h.MB=function(a){(a=mm(a))&&Jf(this.B,a)||this.qc()};
h.qu=function(a,b){if(a<=this.F&&this.F<=b){var c=this.F;this.F=window.NaN;P8(this,c)}};
h.Bz=function(){Ou(this.C,this.F,96*this.D)};
h.qc=function(){switch(this.o){case 2:this.B.removeEventListener("mouseout",this.Y),this.B.addEventListener("mouseover",this.M);case 3:3==this.o&&this.X.stop();this.P.removeEventListener("appresize",this.qc,this);this.K||this.B.setAttribute("title",this.H);this.H="";this.B=null;break;case 1:this.C&&(this.C.ya("l",this.qu,this),this.C=null),this.P.removeEventListener("videoready",this.qc,this),this.U.stop()}this.o=null;this.J&&this.G.da()};
h.Cf=function(a){if(this.B)for(var b=0;b<arguments.length;b++)Jf(arguments[b],this.B)&&this.qc()};
h.O=function(){null!=this.o&&this.qc();I8.L.O.call(this)};y(R8,Q);h=R8.prototype;h.uu=function(a){this.Xa(300<=a.width)};
h.uD=function(){this.B=!0;this.C=!1;Q8(this,1);T(this.o).isMobile&&M8(this.F,this.element);T(this.o).Ma&&this.o.va("WATCH_LATER_VIDEO_ADDED")};
h.MH=function(){IL(this.o,"watchlater");var a=this.o.getVideoData().videoId;if(!this.C){this.C=!0;Q8(this,3);var b=T(this.o);(this.B?Hja:Gja)({videoIds:a,Eb:b.Eb,pageId:b.pageId,onError:this.vD,ab:this.B?this.wD:this.uD,context:this},b.baseYtUrl,!0)}};
h.vD=function(a,b){this.C=!1;var c=P("YTP_ERROR_GENERIC_WITHOUT_LINK");b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);Q8(this,4,c);T(this.o).Ma&&this.o.va("WATCH_LATER_ERROR",c)};
h.wD=function(){this.C=this.B=!1;Q8(this,2);T(this.o).Ma&&this.o.va("WATCH_LATER_VIDEO_REMOVED")};
h.NH=function(){this.C=this.B=!1;Q8(this,2)};
h.O=function(){R8.L.O.call(this);he(this.G,"ytp-watch-later-button-visible")};y(S8,Q);S8.prototype.F=function(a){this.Xa(!U(a.state,2))};
S8.prototype.C=function(){if(this.B.getVideoData().videoId){var a=this.B.getVideoUrl(!0,!1,!1,!0);this.g("url",a);this.o||(this.o=this.N("click",this.D))}else this.o&&(this.g("url",null),this.qa(this.o),this.o=null)};
S8.prototype.D=function(a){var b=this.B.getVideoUrl(!ky(a),!1,!0,!0);zy(b,this.B,a)};y(U8,or);h=U8.prototype;h.cu=function(a,b){if(this.Y!=b.videoId){this.Y=b.videoId;var c=this.B;c.J=b&&0<b.J.length?5E3:3E3;c.rb(512,!0);this.Bh()}};
h.mC=function(){this.cu(0,this.b.getVideoData())};
h.Uk=function(a,b){b?this.K=a:this.K=null;this.wg()};
h.Vk=function(a,b){if(b)this.F.push(a);else for(var c=this.F.length;0<=c;c--)if(this.F[c]==a){this.F.splice(c,1);break}this.B.rb(64,0<this.F.length)};
h.wg=function(){var a=!qF(this),b=a&&tz(this.b)&&!U(Xz(this.b),2);a?(this.aa.show(),this.Z.show()):(this.aa.da(),this.Z.da(),this.g.Cf(this.o.element,this.G.element));b?this.G.B.show():this.G.B.da();K(this.o.element,"ytp-cards-available",b);K(this.b.xa(),"ytp-menu-shown",!a);var b=this.M,c=!a;(b.C=c)?b.da():G6(b.B,b.o,Xz(b.o));this.A&&D8(this.A,!a)};
h.RG=function(a){for(;a&&!Qf(a);)a=a==this.b.xa()?null:If(a);for(var b=a;b;){if(ee(b,"video-ads")){a=null;break}b=b==this.b.xa()?null:If(b)}return!!a};
h.SG=function(a){var b=this.b.xa();K(b,"ytp-autohide",a);a&&(this.g.Cf(this.o.element,this.G.element),this.A&&this.g.Cf(this.A.fa()),this.I=!1,he(b,"ytp-touch-mode"));b=this.b;a=!a;b.va("onVideoAreaChange");b.va(a?"onShowControls":"onHideControls")};
h.CC=function(a){if(T(this.b).experiments.$("preload_touch")&&gz(Xz(this.b))){var b=this.b.getVideoData();b.videoId&&this.b.Ts({video_id:b.videoId})}this.B.g||W8(this,a)||V8(this,lm(a))||(Xz(this.b),om(a));this.I=!0;J(this.b.xa(),"ytp-touch-mode");this.B.rb(2,!0)};
h.Yq=function(a){if(V8(this,lm(a)))return!0;this.B.rb(2,!0);return this.Mo()?!0:gz(Xz(this.b))?(this.b.ed(),!0):!1};
h.Zq=function(a){V8(this,lm(a));var b=Xz(this.b);U(b,2)&&BL(this.b)||W8(this,a)||(c6(this.D),Zy(b)?this.b.pauseVideo():(this.b.ed(),window.document.activeElement==this.M.element&&this.b.xa().focus()))};
h.BC=function(a){V8(this,lm(a))||3!=this.b.getPresentingPlayerType()&&yy(this.b)};
h.TG=function(a){var b=this.b.xa();a?b.parentElement?(b.setAttribute("aria-label",P("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.ba.element,b),b.parentElement.insertBefore(this.X.element,b.nextSibling)):Pi(Error("Player not in DOM.")):(b.setAttribute("aria-label",P("YTP_PLAYER_NORMAL")),vq(this.ba),vq(this.X));this.zn();this.Bh()};
h.zn=function(){var a=rF(this),b=pF(this.b).Da(),c=this.b.Ia(),d=this.b.xa();this.g.D=a?1.5:1;K(d,"ytp-fullscreen",c);K(d,"ytp-small-mode",!a&&480>b.width);K(d,"ytp-big-mode",a);K(this.H.element,"ytp-big-mode",a);this.C&&(a=this.C,a.o&&N5(a.o,b.width,b.height))};
h.UG=function(a){T8(this,a.state);this.Bh()};
h.Bh=function(){var a=!this.b.getVideoData().isListed&&2==this.b.getPresentingPlayerType(),a=!!this.Y&&!AL(this.b)&&!a&&(2==this.b.getPresentingPlayerType()||T(this.b).Ja||this.b.Ia());if(this.ia!=a&&(this.ia=a,K(this.b.xa(),"ytp-hide-info-bar",!a),!a))for(this.g.Cf(this.o.element,this.G.element),a=0;a<this.U.length;a++){var b=this.U[a];j6(b)&&b.kb()}};
h.Mo=function(){return this.H.A?(this.H.kb(),!0):this.F.length?(this.F[this.F.length-1].kb(),!0):this.K?(this.K.kb(),!0):tz(this.b)&&JL(this.b)?(this.b.Mh(!1,!1),!0):AL(this.b)?(CL(this.b,!0),!0):!1};
h.eE=function(a,b){this.ka=b;this.Vk(a,b);this.du()};
h.du=function(){var a=this.ka||j6(this.H);this.ea!=a&&(this.ea=a,this.b.va("onAutonavPauseRequest",this.ea))};
h.rx=function(){X8(this,this.b.xa(),!0).focus()};
h.tx=function(){X8(this,this.b.xa(),!1).focus()};var Ipa={legacy_config:!0,player_response:!0,polymer_player_response:!0},Y8={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};y(b9,F);b9.B="defaultcontext";b9.b={};b9.A="appapi";b9.g="appad";b9.create=function(a,b){try{var c=b9.o(a);if(b9.b[c]){try{b9.b[c].dispose()}catch(e){Pi(e)}b9.b[c]=null}var d=new b9(a,b);Mb(d,function(){b9.b[c]=null});
return b9.b[c]=d}catch(e){throw Pi(e),e.stack;}};
b9.o=function(a){return v(a)?a:"player"+na(a)};
h=b9.prototype;h.gA=function(){this.T.o&&wp()||q9(this,5)};
h.iC=function(a){this.T.o&&wp()||(S9(this),Zy(a.getPlayerState())&&this.pf())};
h.Ur=function(a){var b=this.D.element;K(b,"ytp-ad-overlay-open",a);K(b,"ytp-ad-overlay-closed",!a)};
h.canPlayType=function(a){return!!Wt().canPlayType(a)};
h.getVideoData=function(){return this.C.getVideoData()};
h.Gj=function(){var a=jI(this.T);ta(a,mca(this.B));this.G&&ta(a,this.G.Oh());a.fs=this.b.Ia();a.volume=Math.round(this.Oa.Db());a.mos=this.Oa.Jc()?1:0;return a};
h.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.F.getCurrentTime():(a=hq(this,a))?a.getCurrentTime():0};
h.getPresentingPlayerType=function(){var a;if(a=this.T.o&&this.F)a=this.F,a=!!a.g&&!!a.A;return a?3:hq(this).G};
h.cF=function(a){switch(a.type){case "loadedmetadata":this.I.g("fvb");this.yb.start();break;case "loadstart":this.I.g("gv");break;case "progress":case "timeupdate":!Rv("l2s",this.I.b)&&2<=xH(FH(a.target))&&this.I.g("l2s")}};
h.AB=function(a,b){this.b.va("onLoadProgress",b)};
h.SC=function(){this.b.R("playbackstalledatstart")};
h.pD=function(a,b){this.b.va("onVideoProgress",b)};
h.$E=function(){this.Oa.R("progresssync",void 0,void 0)};
h.iA=function(a){!this.T.experiments.$("disable_live_head_slowdown")&&0<QB(a,1)&&!U(a.state,64)&&S4(this).sa&&fL(this.g)&&1<this.P&&t9(this,1,!0);if(0<QB(a,2)){var b;this.o&&("embedded"==this.T.ua||this.b.Ia())&&Oy(this)?(N9(this,!1,!this.T.experiments.$("legacy_autoplay_flag")),b=!0):b=!1;!b&&ZH(this.T)&&(b=this.g.g,b.b.webkitExitFullScreen&&b.b.webkitExitFullScreen())}U(a.state,128)&&(b=a.state,H9(this),b=b.b,this.b.va("onError",z$[b.errorCode]||5),this.b.va("onDetailedError",b));this.b.R("applicationplayerstatechange",
a);U(a.state,2)&&(a=this.getVideoData(),a.isLiveDefaultBroadcast&&F9(this,{videoId:a.videoId,livemonitor:a.ag}))};
h.ZE=function(a){!U(a.state,32)&&0>QB(a,16)&&(!U(a.state,8)||U(a.state,64)||this.A.b.ended||U(a.state,2)||this.pf());this.b.R("presentingplayerstatechange",a);r9(this,iz(a.state))};
h.fA=function(a){"newdata"==a&&h9(this)};
h.kA=function(a){a==this.C.getVideoData()&&this.b.va("onPlaybackAudioChange",v9(this).Lb.name)};
h.nD=function(a){var b=this.C.getVideoData();a==b&&this.b.va("onPlaybackQualityChange",a.A.video.quality)};
h.jn=function(a,b,c){if("newdata"==a)MM(this.B),this.g==this.C?(this.A.b.loop=this.za,this.A.b.playbackRate=this.P):(this.A.b.loop=!1,this.A.b.playbackRate=1),this.b.R("videoplayerreset",b);else{if(!this.A)return;if("dataloaded"==a)if($H(b.T,c.o),this.C==this.g){this.T.o&&np("embedded"==this.T.ua);var d=this.T.o&&!!wp();if(d||!S4(this).pp||this.T.isMobile){var e=S4(this);if(!Px(e)||d||Dx(this.g.b)){Rx(e);d&&q9(this,6);e=!1;d=R4.Va;!this.G&&d(this)&&(this.G=new R4(this),m9(this,this.G),e=!0);try{var f=
this.G;f&&!f.D&&f.Va(this.Oa)&&f.create()}catch(k){Pi(k),this.g&&this.g.qj("ad")}e&&(f=this.G,d=S4(this),e=hq(this),d.subscribe("cuepointupdated",f.RA,f),f.Y=d,f=X4(f),null!=f&&(f.F=e),this.G.subscribe("overlay_ad_open",qa(this.Ur,!0),this),this.G.subscribe("overlay_ad_close",qa(this.Ur,!1),this));n9(this);l9(this)}else f=e.sa&&!Iw()?"html5.unsupportedlive":"fmt.noneavailable",d="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",C5||Up()||Mp("xbox")&&Mp("trident")||Tp()||(d=Lx(e)?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":
"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),HK(this.g,f,d,"nosupported.1")}else e="YTP_DEVICE_FALLBACK",C5||Up()||Mp("xbox")&&Mp("trident")||Tp()||(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),HK(this.g,"html5.unsupportedads",e,void 0)}else l9(this);1==b.G&&(this.getVideoData().hi?(e=this.A,e.o=!0,e.b.muted=!0):(this.A.o=!1,T9(this,this.U)),this.getVideoData().sa&&!this.T.Ve&&HK(this.g,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),Rx(c)&&(c.ma||c.Ja||c.B.focEnabled||c.B.rmktEnabled||
this.getVideoData().Se)&&(e=this.getVideoData(),D9(this,"part2viewed",1,0x8000000000000),D9(this,"engagedview",Math.max(1,1E3*e.qf),0x8000000000000),e.sa||(e=1E3*e.lengthSeconds,D9(this,"videoplaytime25",.25*e,e),D9(this,"videoplaytime50",.5*e,e),D9(this,"videoplaytime75",.75*e,e),D9(this,"videoplaytime100",e,0x8000000000000),D9(this,"conversionview",e,0x8000000000000))));this.b.R("videodatachange",a,c,b.G)}this.T.Ma&&this.b.va("onVideoDataChange",{type:a,playertype:b.G})};
h.Gk=function(){d9(this,null);this.b.va("onPlaylistUpdate")};
h.sq=function(a){var b=a.getId(),c=S4(this);if("part2viewed"==b)c.Me&&Wp(c.Me),c.Ja&&Wp(c.Ja);else if("conversionview"==b){var d=this.g;d.A&&OB(d.A)}else"engagedview"==b&&Wp(c.ma);c.ka&&(d=a.getId(),d=Jj(c.ka,{label:d}),Wp(d));switch(b){case "videoplaytime25":c.Ud&&Wp(c.Ud);Wp(c.Hw);break;case "videoplaytime50":c.Vd&&Wp(c.Vd);Wp(c.mx);break;case "videoplaytime75":c.Wd&&Wp(c.Wd);Wp(c.xx);break;case "videoplaytime100":c.Ad&&Wp(c.Ad),Wp(c.vw)}(b=this.getVideoData().Se)&&b[a.getId()]&&(c=b[a.getId()],
Wp(c,void 0,Zp(c)),b=b[a.getId()+"gaia"],Wp(b,void 0,Zp(b)));this.g.C.Fh(a)};
h.seekTo=function(a,b,c,d){b=0!=b;if(d=hq(this,d))2==this.K&&f9(this),d.seekTo(a,b,c)};
h.bF=function(a,b){var c=a.getVideoData();if(1==this.K||2==this.K)c.startSeconds=b;2==this.K?f9(this):this.b.R("seekto",b)};
h.Yz=function(){this.b.R("airplayactivechange")};
h.Zz=function(){this.b.R("airplayavailabilitychange")};
h.VE=function(){this.b.R("beginseeking")};
h.WE=function(){this.b.R("endseeking")};
h.Nq=function(){var a=this.o.vb(),b=this.getVideoData();b.Zc||!this.Y?(b=b.Cg,a=E9(this,a),b&&I9(this,a)):a&&J9(this,a)};
h.dA=function(a){this.b.va("onCueRangeEnter",a.getId())};
h.eA=function(a){this.b.va("onCueRangeExit",a.getId())};
h.hA=function(){this.aa||(this.aa=Dv(this.yq,this));u1(this.I,e5(this));if(!this.qb&&"detailpage"==this.T.ua){this.qb=!0;var a=this.g;if(a.Y&&a.Y.b){var b={},c={};a.b.videoId&&(b.docid=a.b.videoId);a.b.playbackId&&(b.plid=a.b.playbackId);b.cpn=a.b.clientPlaybackNonce;b.ad_cpn=a.Y.b;var d=Bt()-a.Y.g;a.Y.A?c.astv=d:c.actv=d;a={v:2,s:"youtube",action:"watch,ad2video_html5"};c.aft=c.pbs=c.astv||c.actv;var d=[],e;for(e in c)"_"!=e.charAt(0)&&d.push(e+"."+Math.round(c[e]));a.rt=d.join(",");for(var f in b)"_"!=
f.charAt(0)&&(a[f]=b[f]);b=Ki("TIMING_INFO",{});"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);Wv(a)}}this.T.experiments.$("html5_playlist_preload")&&Oy(this)&&(b=this.o.vb(ey(this.o)))&&G9(this,b)};
h.yq=function(a){a=a.b;if(!(0,window.isNaN)(a)&&0<a&&this.g){var b=this.g;b.A&&0<a&&(b.A.g.A.aft=[a])}};
h.Jq=function(a){"remote"==a?(2==this.K&&f9(this),q9(this,6),o9(this,this.G)):this.qm()};
h.Kq=function(a){"remote"!=a||this.T.o&&wp()||(this.pf(),this.pauseVideo());this.qm()};
h.qm=function(){this.T.Ma&&this.C?this.b.va("onApiChange",this.C.G):this.b.va("onApiChange")};
h.IB=function(){var a={volume:Ve(Math.floor(100*this.A.b.volume),0,100),muted:this.A.b.muted};this.U=hc(a);this.b.va("onVolumeChange",a)};
h.kB=function(){var a=Uh();V9(this,a==this.D.element?1:0);U9(this,this.T.experiments.$("lock_fullscreen_tag")?Jf(this.D.element,a||null):a==this.D.element)};
h.aF=function(){if(this.A){var a=!1;if(0!=this.A.b.readyState&&this.C){var b=Zq(this.A.b),c=this.getVideoData();cf(c.Re,b)||(c.Re=b,a=!0)}b=oF(this.D);hg(this.Bb,b)||(this.Bb=b,a=!0);a&&(this.C&&mL(this.C,"r"),!this.T.experiments.$("disable_app_resize")&&this.g&&this.g!=this.C&&mL(this.g,"r"),1==this.Pa&&this.wa&&U9(this,!0));a=this.D.Da();this.b.R("resize",a);this.ub&&cf(this.ub,a)||(this.b.R("appresize",a),this.ub=a)}};
h.AC=function(){2!=this.Pa&&V9(this,Uh()==this.D.element?1:0)};
h.YE=function(a){this.b.R("liveviewshift",a)};
h.pf=function(a){(a=hq(this,a))&&(2==this.K?f9(this):!this.T.experiments.$("new_ended_replay")&&U(a.getPlayerState(),2)?this.seekTo(0):hL(a))};
h.pauseVideo=function(a){(a=hq(this,a))&&a.pauseVideo()};
h.getAdState=function(){return this.G?this.G.getAdState():-1};
h.Fs=function(a,b,c){this.sj();this.ra=a;b&&E(b,function(a){this.Z[a]=!0},this);
c&&lca(this.B,a,c)};
h.sj=function(){this.ra=null;this.Z={};NM(this.B)};
h.MC=function(){if(!this.Ua){this.Ua=!0;var a=this.getVideoData(),b={};b.video_id=a.videoId;a.sa||(b.start=hq(this).getCurrentTime());b.autoplay=1;b.reload=1;F9(this,b)}};
h.MA=function(){this.b.va("CONNECTION_ISSUE")};
h.XE=function(a){this.b.va("heartbeatparams",a)};
h.O=function(){this.T.o&&pp();this.g.dispose();this.H&&this.H.dispose();k9(this);Ob(Xb(this.Ja),this.o);this.Aa=null;Cv(this.aa);this.aa=0;b9.L.O.call(this)};ba("yt.player.Application.create",b9.create,void 0);var $$=q("ytcsi.tick");$$&&$$("pe");})(_yt_player);
